Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.001756/0.001756, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.266/1.266, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 51.92 kB / 280.6 MB, free: 3.195 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08645/0.08763, allocations: 46.63 MB / 327.3 MB, free: 4.492 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01425/0.1019, allocations: 13.33 MB / 340.6 MB, free: 7.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.1183, allocations: 15.55 MB / 356.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.1185, allocations: 0 / 356.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003352/0.119, allocations: 79.48 kB / 356.2 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003032/0.1193, allocations: 103.2 kB / 356.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01394/0.1332, allocations: 5.953 MB / 362.3 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004885/0.1337, allocations: 334.6 kB / 362.6 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.096e-05/0.1338, allocations: 17.67 kB / 362.6 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004229/0.1342, allocations: 227 kB / 362.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.1344, allocations: 103.7 kB / 363 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.1344, allocations: 20 kB / 363 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01195/0.1464, allocations: 6.591 MB / 369.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1465, allocations: 47.83 kB / 369.6 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.1467, allocations: 99.61 kB / 369.7 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009211/0.1559, allocations: 3.899 MB / 373.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.156, allocations: 3.984 kB / 373.6 MB, free: 6 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.156, allocations: 0 / 373.6 MB, free: 6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.156, allocations: 0 / 373.6 MB, free: 6 MB / 318.1 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.002362/0.1584, allocations: 0.983 MB / 374.6 MB, free: 4.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1584, allocations: 12.03 kB / 374.6 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.1598, allocations: 180.5 kB / 374.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.1601, allocations: 256 kB / 375 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.1601, allocations: 12.81 kB / 375 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.341e-05/0.1601, allocations: 28.31 kB / 375.1 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002978/0.1631, allocations: 0.9128 MB / 376 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.1632, allocations: 0 / 376 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.1632, allocations: 12 kB / 376 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.1632, allocations: 4 kB / 376 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003088/0.1663, allocations: 0.9734 MB / 377 MB, free: 2.527 MB / 318.1 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.001572/0.1679, allocations: 1.354 MB / 378.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002529/0.1704, allocations: 0.7206 MB / 379 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002559/0.1707, allocations: 164.8 kB / 379.2 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2177/0.3884, allocations: 37.4 MB / 416.6 MB, free: 24.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.3885, allocations: 38.56 kB / 416.6 MB, free: 24.08 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 1.944e-06/0.3885, allocations: 0 / 416.6 MB, free: 24.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004852/0.3934, allocations: 1.353 MB / 418 MB, free: 22.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.685e-05/0.3934, allocations: 59.41 kB / 418.1 MB, free: 22.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.945e-05/0.3935, allocations: 121.2 kB / 418.2 MB, free: 22.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.959e-05/0.3936, allocations: 29.7 kB / 418.2 MB, free: 22.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.3936, allocations: 113.8 kB / 418.3 MB, free: 22.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.3938, allocations: 119.3 kB / 418.4 MB, free: 22.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.394, allocations: 157.6 kB / 418.6 MB, free: 22.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.32e-05/0.394, allocations: 326.8 kB / 418.9 MB, free: 21.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005209/0.3946, allocations: 343.8 kB / 419.2 MB, free: 21.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005755/0.3952, allocations: 405.7 kB / 419.6 MB, free: 21.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.3963, allocations: 0.7101 MB / 420.3 MB, free: 20.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3963, allocations: 4 kB / 420.4 MB, free: 20.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001541/0.3978, allocations: 0.8717 MB / 421.2 MB, free: 19.44 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3979, allocations: 5.875 kB / 421.2 MB, free: 19.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.3979, allocations: 8.547 kB / 421.2 MB, free: 19.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3979, allocations: 4.797 kB / 421.2 MB, free: 19.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005676/0.3985, allocations: 183.6 kB / 421.4 MB, free: 19.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.3985, allocations: 4 kB / 421.4 MB, free: 19.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.3988, allocations: 32.72 kB / 421.5 MB, free: 19.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.58e-05/0.3989, allocations: 63.94 kB / 421.5 MB, free: 19.15 MB / 318.1 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.0001807/0.3991, allocations: 137.7 kB / 421.7 MB, free: 19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.3992, allocations: 15.81 kB / 421.7 MB, free: 18.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004976/0.4042, allocations: 7.98 MB / 429.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.4043, allocations: 31.89 kB / 429.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4043, allocations: 0 / 429.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.4043, allocations: 3.984 kB / 429.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.4063, allocations: 3.59 MB / 433.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4063, allocations: 0 / 433.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005634/0.4068, allocations: 123.7 kB / 433.4 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.4069, allocations: 1.078 kB / 433.4 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.4069, allocations: 11.98 kB / 433.4 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.4069, allocations: 7.938 kB / 433.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4069, allocations: 0 / 433.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.4087, allocations: 1.835 MB / 435.2 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.4088, allocations: 144.1 kB / 435.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.305e-05/0.4089, allocations: 11.98 kB / 435.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/0.4091, allocations: 11.94 kB / 435.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.692e-05/0.4092, allocations: 31.95 kB / 435.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.4093, allocations: 15.98 kB / 435.5 MB, free: 4.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.473e-05/0.4093, allocations: 91.22 kB / 435.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4093, allocations: 4 kB / 435.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002663/0.412, allocations: 0.9753 MB / 436.5 MB, free: 3.926 MB / 318.1 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.004354/0.4164, allocations: 1.131 MB / 437.7 MB, free: 2.938 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001685/0.418, allocations: 0.9192 MB / 438.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4181, allocations: 0 / 438.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005738/0.4186, allocations: 0.5908 MB / 439.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006195/0.4193, allocations: 85.03 kB / 439.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.4208, allocations: 1.315 MB / 440.6 MB, free: 28 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.4212, allocations: 0.8536 MB / 441.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001789/0.423, allocations: 1.784 MB / 443.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003168/0.4233, allocations: 91.34 kB / 443.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of SimCode: time 2.254e-06/0.4233, allocations: 0 / 443.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of Templates: time 0.05286/0.4762, allocations: 40.88 MB / 484.2 MB, free: 4.336 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches