Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00104/0.00104, allocations: 199.7 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 229.5 MB / 247.7 MB, free: 6.309 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007392/0.0007392, allocations: 96.03 kB / 299.8 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002217/0.0002218, allocations: 4 kB / 360.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.182, allocations: 51.41 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01131/0.1934, allocations: 16.31 MB / 428.4 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01728/0.2107, allocations: 23.02 MB / 451.4 MB, free: 15.97 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.2109, allocations: 7.938 kB / 451.4 MB, free: 15.96 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000308/0.2112, allocations: 67.67 kB / 451.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003023/0.2115, allocations: 107.3 kB / 451.6 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01266/0.2242, allocations: 4.72 MB / 456.3 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004609/0.2247, allocations: 362.5 kB / 456.6 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.178e-05/0.2247, allocations: 17.69 kB / 456.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004704/0.2252, allocations: 219 kB / 456.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.2254, allocations: 103.6 kB / 457 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.2254, allocations: 11.98 kB / 457 MB, free: 10.35 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01138/0.2368, allocations: 6.47 MB / 463.4 MB, free: 3.875 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.274e-05/0.237, allocations: 39.78 kB / 463.5 MB, free: 3.836 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.2371, allocations: 117.3 kB / 463.6 MB, free: 3.715 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0077/0.2448, allocations: 3.902 MB / 467.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2449, allocations: 4 kB / 467.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2449, allocations: 0 / 467.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.2449, allocations: 3.844 kB / 467.5 MB, free: 15.8 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002354/0.2472, allocations: 0.9556 MB / 468.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2473, allocations: 8.031 kB / 468.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.2487, allocations: 180.6 kB / 468.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.249, allocations: 256 kB / 468.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.249, allocations: 16.81 kB / 468.9 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.764e-05/0.2491, allocations: 28.36 kB / 468.9 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00297/0.252, allocations: 0.9128 MB / 469.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2521, allocations: 0 / 469.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.2521, allocations: 15.94 kB / 469.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.2521, allocations: 4 kB / 469.9 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003032/0.2551, allocations: 0.9851 MB / 470.9 MB, free: 12.34 MB / 346.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.00154/0.2567, allocations: 1.346 MB / 472.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002399/0.2591, allocations: 0.7361 MB / 472.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.2594, allocations: 160.8 kB / 473.1 MB, free: 9.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2216/0.4811, allocations: 42.36 MB / 0.5034 GB, free: 94.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.4811, allocations: 39.91 kB / 0.5034 GB, free: 94.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.923e-06/0.4811, allocations: 1.562 kB / 0.5034 GB, free: 94.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.004738/0.4859, allocations: 1.369 MB / 0.5048 GB, free: 94.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.4859, allocations: 58.31 kB / 0.5048 GB, free: 94.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.281e-05/0.486, allocations: 123.6 kB / 0.5049 GB, free: 94.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.284e-05/0.486, allocations: 30.95 kB / 0.505 GB, free: 94.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.4861, allocations: 115.7 kB / 0.5051 GB, free: 94.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.4862, allocations: 118.6 kB / 0.5052 GB, free: 94.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-05/0.4863, allocations: 9.5 kB / 0.5052 GB, free: 94.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.845e-05/0.4863, allocations: 322.3 kB / 0.5055 GB, free: 93.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005743/0.4869, allocations: 345.7 kB / 0.5058 GB, free: 93.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.4875, allocations: 402.5 kB / 0.5062 GB, free: 93.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.4886, allocations: 0.7237 MB / 0.5069 GB, free: 93.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4886, allocations: 0.5312 kB / 0.5069 GB, free: 93.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001685/0.4903, allocations: 0.8778 MB / 0.5078 GB, free: 92.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.4903, allocations: 6.75 kB / 0.5078 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.4903, allocations: 5.188 kB / 0.5078 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.4904, allocations: 4.344 kB / 0.5078 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006384/0.491, allocations: 178.5 kB / 0.508 GB, free: 92.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.491, allocations: 11.88 kB / 0.508 GB, free: 92.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/0.4914, allocations: 35.27 kB / 0.508 GB, free: 92.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.4915, allocations: 64.14 kB / 0.5081 GB, free: 92.76 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001777/0.4917, allocations: 147 kB / 0.5082 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.429e-05/0.4918, allocations: 19.61 kB / 0.5082 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005271/0.4971, allocations: 7.976 MB / 0.516 GB, free: 86.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.4971, allocations: 31.8 kB / 0.516 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4971, allocations: 7.938 kB / 0.5161 GB, free: 86.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.4971, allocations: 3.984 kB / 0.5161 GB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.4991, allocations: 3.6 MB / 0.5196 GB, free: 82.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.4991, allocations: 0 / 0.5196 GB, free: 82.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006371/0.4997, allocations: 114.3 kB / 0.5197 GB, free: 82.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.4997, allocations: 0 / 0.5197 GB, free: 82.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.86e-05/0.4998, allocations: 15.94 kB / 0.5197 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.4998, allocations: 0 / 0.5197 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4998, allocations: 0 / 0.5197 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.5016, allocations: 1.86 MB / 0.5215 GB, free: 80.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.334e-05/0.5017, allocations: 136.3 kB / 0.5216 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.019e-05/0.5017, allocations: 12.06 kB / 0.5217 GB, free: 80.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003119/0.5021, allocations: 30.84 kB / 0.5217 GB, free: 80.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.701e-05/0.5022, allocations: 27.91 kB / 0.5217 GB, free: 80.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.5022, allocations: 19.98 kB / 0.5217 GB, free: 80.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.295e-05/0.5022, allocations: 91.27 kB / 0.5218 GB, free: 80.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5022, allocations: 0 / 0.5218 GB, free: 80.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002102/0.5043, allocations: 0.9907 MB / 0.5228 GB, free: 79.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.003712/0.5081, allocations: 1.15 MB / 0.5239 GB, free: 78.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.5093, allocations: 0.9036 MB / 0.5248 GB, free: 77.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5093, allocations: 2.406 kB / 0.5248 GB, free: 77.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005614/0.5098, allocations: 0.5991 MB / 0.5254 GB, free: 77.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005703/0.5104, allocations: 88.94 kB / 0.5255 GB, free: 76.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.5119, allocations: 1.628 MB / 0.5271 GB, free: 75.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001852/0.5121, allocations: 0.8575 MB / 0.5279 GB, free: 74.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001373/0.5134, allocations: 1.787 MB / 0.5296 GB, free: 72.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003022/0.5138, allocations: 91.36 kB / 0.5297 GB, free: 72.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5138, allocations: 0 / 0.5297 GB, free: 72.55 MB / 378.7 MB Notification: Performance of Templates: time 0.03814/0.5519, allocations: 40.6 MB / 0.5694 GB, free: 31.94 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches