Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 106.4 kB / 17.78 MB, free: 5.289 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.001723/0.001723, allocations: 187.9 kB / 18.7 MB, free: 4.371 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.418/1.418, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2243/0.2243, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 59.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4351/0.4363, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002136/0.4385, allocations: 0.49 MB / 0.5193 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.4398, allocations: 0.7806 MB / 0.5201 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.011e-05/0.4399, allocations: 0 / 0.5201 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.517e-05/0.4399, allocations: 4 kB / 0.5201 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000238/0.4402, allocations: 3.672 kB / 0.5201 GB, free: 2.758 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007269/0.4409, allocations: 59.97 kB / 0.5202 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.623e-05/0.441, allocations: 7.625 kB / 0.5202 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.257e-05/0.4411, allocations: 2 kB / 0.5202 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.293e-05/0.4411, allocations: 0 / 0.5202 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.4412, allocations: 3.531 kB / 0.5202 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.4412, allocations: 0 / 0.5202 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.4414, allocations: 63.97 kB / 0.5202 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.4414, allocations: 0 / 0.5202 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.875e-05/0.4415, allocations: 1.031 kB / 0.5202 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002099/0.4417, allocations: 58.22 kB / 0.5203 GB, free: 2.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.4417, allocations: 1.859 kB / 0.5203 GB, free: 2.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.4417, allocations: 0 / 0.5203 GB, free: 2.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.4417, allocations: 0 / 0.5203 GB, free: 2.672 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.0004972/0.4422, allocations: 355.6 kB / 0.5206 GB, free: 2.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.594e-05/0.4423, allocations: 9.406 kB / 0.5207 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.523e-05/0.4424, allocations: 2.594 kB / 0.5207 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.4425, allocations: 161.1 kB / 0.5208 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.4426, allocations: 2.406 kB / 0.5208 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.4426, allocations: 4.375 kB / 0.5208 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.4427, allocations: 31.03 kB / 0.5208 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.4427, allocations: 192 / 0.5208 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.4428, allocations: 3.938 kB / 0.5209 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.4428, allocations: 5.438 kB / 0.5209 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.8e-05/0.4428, allocations: 1.984 kB / 0.5209 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.443, allocations: 148.7 kB / 0.521 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.665e-05/0.4431, allocations: 24.78 kB / 0.521 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.58e-05/0.4431, allocations: 6.078 kB / 0.521 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.4431, allocations: 1.375 kB / 0.521 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/0.4432, allocations: 62.23 kB / 0.5211 GB, free: 1.738 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.763e-06/0.4432, allocations: 0 / 0.5211 GB, free: 1.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002765/0.4435, allocations: 70.69 kB / 0.5212 GB, free: 1.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.4436, allocations: 82.05 kB / 0.5212 GB, free: 1.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.312e-05/0.4436, allocations: 100.3 kB / 0.5213 GB, free: 1.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.4437, allocations: 26.98 kB / 0.5214 GB, free: 1.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.601e-05/0.4437, allocations: 80.14 kB / 0.5214 GB, free: 1.352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/0.4437, allocations: 1.312 kB / 0.5214 GB, free: 1.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.4437, allocations: 11.73 kB / 0.5214 GB, free: 1.336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.984e-05/0.4438, allocations: 312.8 kB / 0.5217 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.309e-05/0.4438, allocations: 4 kB / 0.5217 GB, free: 1.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.945e-06/0.4438, allocations: 2.406 kB / 0.5217 GB, free: 1.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.875e-05/0.4439, allocations: 68.44 kB / 0.5218 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4439, allocations: 0 / 0.5218 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.143e-05/0.444, allocations: 61.06 kB / 0.5219 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.077e-05/0.444, allocations: 34.92 kB / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.4441, allocations: 5.125 kB / 0.5219 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.4441, allocations: 0 / 0.5219 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.859e-06/0.4441, allocations: 0.7031 kB / 0.5219 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.4441, allocations: 1.156 kB / 0.5219 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.127e-05/0.4441, allocations: 3.906 kB / 0.5219 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.4442, allocations: 5.906 kB / 0.5219 GB, free: 0.8359 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.415e-05/0.4442, allocations: 138.6 kB / 0.5221 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.4443, allocations: 1.062 kB / 0.5221 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.897e-05/0.4443, allocations: 13.05 kB / 0.5221 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.4443, allocations: 0 / 0.5221 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4443, allocations: 0 / 0.5221 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4443, allocations: 1.812 kB / 0.5221 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.985e-05/0.4444, allocations: 145.4 kB / 0.5222 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.4444, allocations: 5.016 kB / 0.5222 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.4444, allocations: 4 kB / 0.5222 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.4444, allocations: 1.062 kB / 0.5222 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.4444, allocations: 4.734 kB / 0.5222 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4444, allocations: 4.875 kB / 0.5222 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4444, allocations: 0 / 0.5222 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.474e-05/0.4445, allocations: 90.38 kB / 0.5223 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.388e-05/0.4445, allocations: 81.47 kB / 0.5224 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.4446, allocations: 5.125 kB / 0.5224 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.157e-06/0.4446, allocations: 9.094 kB / 0.5224 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.022e-05/0.4446, allocations: 1.797 kB / 0.5224 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.4446, allocations: 5 kB / 0.5224 GB, free: 272 kB / 382.1 MB Notification: Performance of sorting global known variables: time 2.104e-05/0.4446, allocations: 81.36 kB / 0.5225 GB, free: 192 kB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4446, allocations: 0 / 0.5225 GB, free: 192 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.4449, allocations: 14.36 kB / 0.5225 GB, free: 192 kB / 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.0003949/0.4453, allocations: 195.2 kB / 0.5227 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.4454, allocations: 66.02 kB / 0.5228 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4454, allocations: 4.062 kB / 0.5228 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.644e-05/0.4455, allocations: 56.45 kB / 0.5228 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.4456, allocations: 1.406 kB / 0.5228 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002418/0.4459, allocations: 78.73 kB / 0.5229 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002505/0.4461, allocations: 0.6762 MB / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.581e-06/0.4461, allocations: 0 / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.437e-05/0.4461, allocations: 8.562 kB / 0.5236 GB, free: 15.12 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4461, allocations: 0 / 0.5236 GB, free: 15.12 MB / 398.1 MB Notification: Performance of Templates: time 0.003443/0.4496, allocations: 0.6511 MB / 0.5242 GB, free: 15.02 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches