Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 106.4 kB / 17.77 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 187.9 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.22/0.22, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001308, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.388, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00244/0.3905, allocations: 0.4939 MB / 0.5193 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007016/0.3913, allocations: 209.4 kB / 0.5195 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.366e-05/0.3913, allocations: 0 / 0.5195 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.3913, allocations: 0 / 0.5195 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.3913, allocations: 0 / 0.5195 GB, free: 3.172 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.3917, allocations: 48.33 kB / 0.5196 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.747e-05/0.3918, allocations: 10.41 kB / 0.5196 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.689e-05/0.3918, allocations: 1.828 kB / 0.5196 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.19e-05/0.3919, allocations: 4.734 kB / 0.5196 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.46e-05/0.3919, allocations: 1.031 kB / 0.5196 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.015e-06/0.3919, allocations: 0 / 0.5196 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.392, allocations: 50.72 kB / 0.5197 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.428e-06/0.3921, allocations: 1.344 kB / 0.5197 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.524e-05/0.3921, allocations: 1.438 kB / 0.5197 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.3923, allocations: 45 kB / 0.5197 GB, free: 3.098 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3923, allocations: 1.094 kB / 0.5197 GB, free: 3.098 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3923, allocations: 4.656 kB / 0.5197 GB, free: 3.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.3923, allocations: 0 / 0.5197 GB, free: 3.094 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002907/0.3926, allocations: 355.5 kB / 0.52 GB, free: 2.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3926, allocations: 11.17 kB / 0.5201 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.3927, allocations: 0.9375 kB / 0.5201 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.922e-05/0.3927, allocations: 161.1 kB / 0.5202 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.3927, allocations: 1.625 kB / 0.5202 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.3928, allocations: 2.281 kB / 0.5202 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.946e-05/0.3929, allocations: 37.45 kB / 0.5203 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.3929, allocations: 192 / 0.5203 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.3929, allocations: 4.641 kB / 0.5203 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.3929, allocations: 1.25 kB / 0.5203 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.427e-05/0.3929, allocations: 1.188 kB / 0.5203 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001233/0.3931, allocations: 144.3 kB / 0.5204 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.947e-05/0.3931, allocations: 21.44 kB / 0.5204 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.243e-05/0.3931, allocations: 6.797 kB / 0.5204 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.3932, allocations: 4 kB / 0.5204 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.041e-05/0.3932, allocations: 62.09 kB / 0.5205 GB, free: 2.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3932, allocations: 0 / 0.5205 GB, free: 2.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002135/0.3934, allocations: 65.77 kB / 0.5206 GB, free: 2.094 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.3935, allocations: 82.98 kB / 0.5206 GB, free: 1.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.712e-05/0.3936, allocations: 89.86 kB / 0.5207 GB, free: 1.898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/0.3936, allocations: 25.7 kB / 0.5207 GB, free: 1.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.282e-05/0.3936, allocations: 81.27 kB / 0.5208 GB, free: 1.785 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.3936, allocations: 4.734 kB / 0.5208 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.3937, allocations: 12.97 kB / 0.5208 GB, free: 1.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.001e-05/0.3937, allocations: 312.7 kB / 0.5211 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.093e-05/0.3938, allocations: 0 / 0.5211 GB, free: 1.453 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.144e-06/0.3938, allocations: 5.156 kB / 0.5211 GB, free: 1.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.449e-05/0.3938, allocations: 65 kB / 0.5212 GB, free: 1.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3938, allocations: 0 / 0.5212 GB, free: 1.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.184e-05/0.3939, allocations: 65.23 kB / 0.5213 GB, free: 1.309 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.3939, allocations: 31.08 kB / 0.5213 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.394, allocations: 5.125 kB / 0.5213 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.394, allocations: 4.688 kB / 0.5213 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.755e-06/0.394, allocations: 5 kB / 0.5213 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.394, allocations: 0 / 0.5213 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.34e-05/0.394, allocations: 1.859 kB / 0.5213 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.394, allocations: 0 / 0.5213 GB, free: 1.266 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.338e-05/0.3941, allocations: 134.8 kB / 0.5214 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.3941, allocations: 9.219 kB / 0.5214 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.627e-05/0.3942, allocations: 12.88 kB / 0.5215 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3942, allocations: 0 / 0.5215 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3942, allocations: 4.641 kB / 0.5215 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3942, allocations: 4.969 kB / 0.5215 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.008e-05/0.3943, allocations: 145 kB / 0.5216 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3943, allocations: 0 / 0.5216 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.044e-06/0.3943, allocations: 1.703 kB / 0.5216 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.3943, allocations: 0 / 0.5216 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.3943, allocations: 5.875 kB / 0.5216 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3943, allocations: 0 / 0.5216 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3943, allocations: 9.109 kB / 0.5216 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.3944, allocations: 88.69 kB / 0.5217 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.313e-05/0.3945, allocations: 77.95 kB / 0.5218 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.3945, allocations: 5.094 kB / 0.5218 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.3945, allocations: 1.156 kB / 0.5218 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.606e-05/0.3946, allocations: 1.688 kB / 0.5218 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.3946, allocations: 0 / 0.5218 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.277e-05/0.3946, allocations: 81.23 kB / 0.5219 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3946, allocations: 0 / 0.5219 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002795/0.3949, allocations: 21.33 kB / 0.5219 GB, free: 0.6133 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004949/0.3954, allocations: 208.2 kB / 0.5221 GB, free: 500 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.3955, allocations: 57.94 kB / 0.5221 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3955, allocations: 0 / 0.5221 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.688e-05/0.3955, allocations: 63.34 kB / 0.5222 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.3957, allocations: 2.781 kB / 0.5222 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001664/0.3958, allocations: 85.36 kB / 0.5223 GB, free: 260 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.3961, allocations: 0.676 MB / 0.5229 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.731e-06/0.3961, allocations: 0 / 0.5229 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.027e-05/0.3961, allocations: 8.406 kB / 0.523 GB, free: 15.55 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3961, allocations: 0 / 0.523 GB, free: 15.55 MB / 398.1 MB Notification: Performance of Templates: time 0.003273/0.3994, allocations: 0.5838 MB / 0.5235 GB, free: 15.43 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches