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.0009262/0.0009265, allocations: 96.56 kB / 17.3 MB, free: 6.039 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.001136/0.001136, allocations: 180.2 kB / 18.21 MB, free: 5.395 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.358/1.358, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004252/0.0004252, allocations: 8 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08131/0.08175, allocations: 47.58 MB / 329 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01458/0.09637, allocations: 13.65 MB / 342.6 MB, free: 6.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01813/0.1145, allocations: 16.32 MB / 358.9 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.1148, allocations: 4 kB / 358.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004453/0.1153, allocations: 75.59 kB / 359 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004923/0.1158, allocations: 107.3 kB / 359.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01608/0.1319, allocations: 4.705 MB / 363.8 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005684/0.1325, allocations: 366.5 kB / 364.2 MB, free: 452 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.812e-05/0.1325, allocations: 17.67 kB / 364.2 MB, free: 432 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005056/0.133, allocations: 211.1 kB / 364.4 MB, free: 220 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.1332, allocations: 99.59 kB / 364.5 MB, free: 120 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.1332, allocations: 8 kB / 364.5 MB, free: 112 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01153/0.1448, allocations: 6.676 MB / 371.2 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.622e-05/0.1449, allocations: 43.83 kB / 371.2 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.145, allocations: 121.3 kB / 371.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009009/0.1541, allocations: 3.887 MB / 375.2 MB, free: 5.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1541, allocations: 0 / 375.2 MB, free: 5.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1541, allocations: 0 / 375.2 MB, free: 5.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.1541, allocations: 4 kB / 375.2 MB, free: 5.359 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.002212/0.1563, allocations: 0.9478 MB / 376.2 MB, free: 4.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1564, allocations: 12.03 kB / 376.2 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/0.1578, allocations: 176.6 kB / 376.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.158, allocations: 259.9 kB / 376.6 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.158, allocations: 20.81 kB / 376.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.1581, allocations: 20.38 kB / 376.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002967/0.1611, allocations: 0.9207 MB / 377.6 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.1611, allocations: 0 / 377.6 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.1611, allocations: 4 kB / 377.6 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.1611, allocations: 11.98 kB / 377.6 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003138/0.1643, allocations: 0.9851 MB / 378.6 MB, free: 1.902 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.001509/0.1658, allocations: 1.358 MB / 379.9 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1592/0.325, allocations: 0.7207 MB / 380.6 MB, free: 25.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003081/0.3254, allocations: 157.5 kB / 380.8 MB, free: 25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06909/0.3945, allocations: 37.75 MB / 418.6 MB, free: 16.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.3946, allocations: 35.12 kB / 418.6 MB, free: 16.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 2.304e-06/0.3946, allocations: 0 / 418.6 MB, free: 16.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.004757/0.3993, allocations: 1.375 MB / 420 MB, free: 15.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.3994, allocations: 57.47 kB / 420 MB, free: 15.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.3995, allocations: 119.3 kB / 420.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.049e-05/0.3996, allocations: 33.45 kB / 420.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.3997, allocations: 123 kB / 420.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3998, allocations: 108.8 kB / 420.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.306e-05/0.3999, allocations: 39.48 kB / 420.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.4, allocations: 328.1 kB / 420.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005362/0.4005, allocations: 334.5 kB / 421.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006469/0.4012, allocations: 417.6 kB / 421.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.4024, allocations: 0.7164 MB / 422.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.4024, allocations: 0 / 422.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001489/0.4039, allocations: 0.8933 MB / 423.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.4039, allocations: 8 kB / 423.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.4039, allocations: 0 / 423.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.4039, allocations: 4 kB / 423.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/0.4045, allocations: 180 kB / 423.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.4046, allocations: 4.625 kB / 423.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/0.405, allocations: 43.14 kB / 423.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.944e-05/0.4051, allocations: 66.36 kB / 423.4 MB, free: 13.15 MB / 334.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.0002254/0.4053, allocations: 138.3 kB / 423.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.208e-05/0.4054, allocations: 23.75 kB / 423.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006644/0.412, allocations: 7.979 MB / 431.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/0.4121, allocations: 27.95 kB / 431.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.4121, allocations: 0 / 431.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4121, allocations: 1.078 kB / 431.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.415, allocations: 3.595 MB / 435.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.4151, allocations: 4 kB / 435.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006192/0.4157, allocations: 113.8 kB / 435.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/0.4157, allocations: 7.984 kB / 435.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.4158, allocations: 12 kB / 435.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.4158, allocations: 3.469 kB / 435.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.4158, allocations: 0.875 kB / 435.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.4181, allocations: 1.854 MB / 437.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.124e-05/0.4182, allocations: 148 kB / 437.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.4182, allocations: 8 kB / 437.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.4185, allocations: 26.86 kB / 437.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.495e-05/0.4186, allocations: 31.95 kB / 437.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.4187, allocations: 14.83 kB / 437.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.277e-05/0.4187, allocations: 91.28 kB / 437.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4187, allocations: 0 / 437.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002461/0.4212, allocations: 0.9814 MB / 438.4 MB, free: 1.051 MB / 334.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.003699/0.4249, allocations: 1.127 MB / 439.6 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.4264, allocations: 0.9093 MB / 440.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4264, allocations: 0 / 440.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007037/0.4271, allocations: 0.5976 MB / 441.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006769/0.4278, allocations: 92.06 kB / 441.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.4297, allocations: 1.616 MB / 442.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.43, allocations: 0.8575 MB / 443.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001833/0.4319, allocations: 1.789 MB / 445.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003188/0.4322, allocations: 83.36 kB / 445.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4322, allocations: 0 / 445.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of Templates: time 0.05137/0.4836, allocations: 40.44 MB / 485.9 MB, free: 1.789 MB / 382.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","../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches