Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009448/0.0009452, allocations: 178.1 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 225.7 MB / 243.9 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007974/0.0007974, allocations: 93 kB / 295.1 MB, free: 9.512 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3352/0.3352, allocations: 44.31 MB / 390.5 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00037/0.0003701, allocations: 8 kB / 463.2 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3082, allocations: 61.89 MB / 0.5127 GB, free: 37.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.04151/0.3497, allocations: 56.71 MB / 0.5681 GB, free: 7.496 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006956/0.3567, allocations: 6.339 MB / 0.5743 GB, free: 2 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008527/0.3576, allocations: 25.53 kB / 0.5743 GB, free: 1.984 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008129/0.3584, allocations: 272.1 kB / 0.5746 GB, free: 1.84 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002062/0.3605, allocations: 0.8039 MB / 0.5754 GB, free: 1.387 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002323/0.3629, allocations: 0.7958 MB / 0.5762 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003911/0.3668, allocations: 2.666 MB / 0.5788 GB, free: 92 kB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001088/0.3679, allocations: 400.3 kB / 0.5791 GB, free: 15.95 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1102/0.4781, allocations: 43.36 MB / 0.6215 GB, free: 10.39 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01855/0.4967, allocations: 7.963 MB / 0.6293 GB, free: 2.328 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003383/0.4971, allocations: 32 kB / 0.6293 GB, free: 2.297 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02744/0.5246, allocations: 10.62 MB / 0.6397 GB, free: 7.543 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006933/0.5253, allocations: 227.3 kB / 0.6399 GB, free: 7.32 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009945/0.5263, allocations: 387.9 kB / 0.6403 GB, free: 6.934 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00231/0.5287, allocations: 1.036 MB / 0.6413 GB, free: 5.895 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.5287, allocations: 0 / 0.6413 GB, free: 5.895 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5287, allocations: 0 / 0.6413 GB, free: 5.895 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.089e-05/0.5288, allocations: 0 / 0.6413 GB, free: 5.895 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002543/0.5313, allocations: 0.9155 MB / 0.6422 GB, free: 4.93 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.5314, allocations: 12.03 kB / 0.6422 GB, free: 4.918 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005221/0.5319, allocations: 91.98 kB / 0.6423 GB, free: 4.828 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.5329, allocations: 0.5015 MB / 0.6428 GB, free: 4.285 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.5331, allocations: 101 kB / 0.6428 GB, free: 4.176 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.5333, allocations: 56.03 kB / 0.6429 GB, free: 4.121 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.5347, allocations: 0.8214 MB / 0.6437 GB, free: 3.223 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.525e-05/0.5347, allocations: 3.938 kB / 0.6437 GB, free: 3.219 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.279e-05/0.5348, allocations: 24 kB / 0.6437 GB, free: 3.195 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-05/0.5349, allocations: 44.92 kB / 0.6438 GB, free: 3.152 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.5361, allocations: 0.6361 MB / 0.6444 GB, free: 2.516 MB / 458.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005299/0.5414, allocations: 4.224 MB / 0.6485 GB, free: 14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008962/0.5423, allocations: 408 kB / 0.6489 GB, free: 13.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.5426, allocations: 205.4 kB / 0.6491 GB, free: 13.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005647/0.5432, allocations: 0.5106 MB / 0.6496 GB, free: 12.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.5433, allocations: 34.89 kB / 0.6496 GB, free: 12.73 MB / 474.7 MB Notification: Performance of pre-optimization done (n=40): time 3.045e-06/0.5433, allocations: 0 / 0.6496 GB, free: 12.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=45): time 0.003587/0.5469, allocations: 1.534 MB / 0.6511 GB, free: 11.14 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.501e-05/0.547, allocations: 132.5 kB / 0.6513 GB, free: 10.98 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007383/0.5477, allocations: 0.5576 MB / 0.6518 GB, free: 10.41 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.5478, allocations: 37.7 kB / 0.6518 GB, free: 10.37 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.5481, allocations: 351 kB / 0.6522 GB, free: 10.02 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.5482, allocations: 169.7 kB / 0.6523 GB, free: 9.852 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.251e-05/0.5482, allocations: 12 kB / 0.6523 GB, free: 9.84 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.5484, allocations: 374.7 kB / 0.6527 GB, free: 9.465 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004118/0.5488, allocations: 229.9 kB / 0.6529 GB, free: 9.242 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006255/0.5495, allocations: 0.5162 MB / 0.6534 GB, free: 8.586 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.5505, allocations: 0.7796 MB / 0.6542 GB, free: 7.676 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.5506, allocations: 0 / 0.6542 GB, free: 7.676 MB / 474.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001997/0.5526, allocations: 0.9601 MB / 0.6551 GB, free: 6.707 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.5526, allocations: 12 kB / 0.6551 GB, free: 6.695 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.5526, allocations: 15.92 kB / 0.6552 GB, free: 6.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.5538, allocations: 273.4 kB / 0.6554 GB, free: 6.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/0.5542, allocations: 123.8 kB / 0.6555 GB, free: 6.289 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009518/0.5552, allocations: 0.8654 MB / 0.6564 GB, free: 5.398 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006096/0.5558, allocations: 55.88 kB / 0.6564 GB, free: 5.344 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.627e-05/0.5559, allocations: 36 kB / 0.6565 GB, free: 5.309 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003657/0.5563, allocations: 241.5 kB / 0.6567 GB, free: 5.062 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.5564, allocations: 67.23 kB / 0.6568 GB, free: 4.996 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.5578, allocations: 0.7129 MB / 0.6575 GB, free: 4.262 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.5578, allocations: 7.938 kB / 0.6575 GB, free: 4.254 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.5578, allocations: 4 kB / 0.6575 GB, free: 4.25 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.5578, allocations: 3.984 kB / 0.6575 GB, free: 4.246 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.56, allocations: 1.398 MB / 0.6588 GB, free: 2.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.56, allocations: 4 kB / 0.6588 GB, free: 2.766 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000945/0.5609, allocations: 191.8 kB / 0.659 GB, free: 2.578 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002831/0.5612, allocations: 72.92 kB / 0.6591 GB, free: 2.504 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.5613, allocations: 12 kB / 0.6591 GB, free: 2.492 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.5636, allocations: 2.793 MB / 0.6618 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5636, allocations: 0 / 0.6618 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.5651, allocations: 1.003 MB / 0.6628 GB, free: 14.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003015/0.5654, allocations: 196.2 kB / 0.663 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.5655, allocations: 16 kB / 0.663 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.566, allocations: 31.98 kB / 0.663 GB, free: 14.13 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.834e-05/0.5661, allocations: 47.81 kB / 0.6631 GB, free: 14.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.576e-05/0.5661, allocations: 20 kB / 0.6631 GB, free: 14.07 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004867/0.5666, allocations: 415 kB / 0.6635 GB, free: 13.66 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5666, allocations: 4 kB / 0.6635 GB, free: 13.66 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007634/0.5674, allocations: 208 kB / 0.6637 GB, free: 13.46 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005463/0.568, allocations: 238.5 kB / 0.6639 GB, free: 13.23 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.5691, allocations: 0.5893 MB / 0.6645 GB, free: 12.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.5692, allocations: 7.984 kB / 0.6645 GB, free: 12.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.5703, allocations: 491.3 kB / 0.665 GB, free: 12.14 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.5721, allocations: 355.2 kB / 0.6653 GB, free: 11.79 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.5745, allocations: 1.722 MB / 0.667 GB, free: 10.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005408/0.575, allocations: 0.9346 MB / 0.6679 GB, free: 9.062 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0008041/0.5758, allocations: 213.9 kB / 0.6681 GB, free: 8.852 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.576, allocations: 63.42 kB / 0.6682 GB, free: 8.793 MB / 490.7 MB Notification: Performance of SimCode: time 2.61e-07/0.576, allocations: 0 / 0.6682 GB, free: 8.793 MB / 490.7 MB Notification: Performance of Templates: time 0.02555/0.6016, allocations: 14.44 MB / 0.6823 GB, free: 10.52 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearWater_pT/LinearWater_pT.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches