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: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001724/0.001724, allocations: 183 kB / 18.66 MB, free: 4.398 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.353/1.353, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001283/0.001283, allocations: 51.94 kB / 330.3 MB, free: 1.453 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08561, allocations: 46.62 MB / 377 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1903/0.276, allocations: 13.33 MB / 390.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01749/0.2935, allocations: 15.55 MB / 405.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.2939, allocations: 3.562 kB / 405.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.2943, allocations: 77.23 kB / 405.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004112/0.2948, allocations: 116 kB / 406 MB, free: 10 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02026/0.315, allocations: 5.953 MB / 412 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006091/0.3157, allocations: 333.6 kB / 412.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.101e-05/0.3157, allocations: 24.2 kB / 412.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005321/0.3163, allocations: 221.2 kB / 412.5 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.3165, allocations: 107.9 kB / 412.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.153e-05/0.3165, allocations: 13.22 kB / 412.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01458/0.3311, allocations: 6.748 MB / 419.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.3313, allocations: 45.48 kB / 419.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.3315, allocations: 103.9 kB / 419.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01095/0.3424, allocations: 3.891 MB / 423.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3425, allocations: 0 / 423.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3425, allocations: 4 kB / 423.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.3425, allocations: 0 / 423.4 MB, free: 15.35 MB / 350.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.003439/0.346, allocations: 0.9875 MB / 424.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.346, allocations: 11.97 kB / 424.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.962e-05/0.3461, allocations: 58.72 kB / 424.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/0.3475, allocations: 172.6 kB / 424.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000406/0.3479, allocations: 266.9 kB / 424.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.09e-05/0.348, allocations: 16.81 kB / 425 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.3481, allocations: 23.94 kB / 425 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/0.3511, allocations: 0.9012 MB / 425.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.3511, allocations: 0 / 425.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.3512, allocations: 19.94 kB / 425.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.3512, allocations: 4 kB / 425.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003052/0.3542, allocations: 0.9695 MB / 426.9 MB, free: 11.81 MB / 350.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.001685/0.3559, allocations: 1.342 MB / 428.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002516/0.3585, allocations: 0.7245 MB / 428.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/0.3588, allocations: 160.8 kB / 429.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0789/0.4377, allocations: 37.55 MB / 466.6 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/0.4378, allocations: 34.56 kB / 466.7 MB, free: 15.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.956e-06/0.4378, allocations: 4 kB / 466.7 MB, free: 15.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005255/0.4431, allocations: 1.357 MB / 468 MB, free: 14.03 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.4432, allocations: 59.41 kB / 468.1 MB, free: 13.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.4433, allocations: 117.8 kB / 468.2 MB, free: 13.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.737e-05/0.4434, allocations: 33.7 kB / 468.2 MB, free: 13.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.728e-05/0.4435, allocations: 112.7 kB / 468.4 MB, free: 13.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.4436, allocations: 106.4 kB / 468.5 MB, free: 13.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002996/0.4439, allocations: 169.5 kB / 468.6 MB, free: 13.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4441, allocations: 326.8 kB / 468.9 MB, free: 13.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006333/0.4447, allocations: 347.8 kB / 469.3 MB, free: 12.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007062/0.4454, allocations: 403.7 kB / 469.7 MB, free: 12.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.4468, allocations: 0.7026 MB / 470.4 MB, free: 11.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.4468, allocations: 4 kB / 470.4 MB, free: 11.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001826/0.4486, allocations: 0.8692 MB / 471.2 MB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.4487, allocations: 11.88 kB / 471.3 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4487, allocations: 4 kB / 471.3 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.4487, allocations: 7.938 kB / 471.3 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006805/0.4494, allocations: 180 kB / 471.4 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.4494, allocations: 4 kB / 471.5 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003354/0.4498, allocations: 35.67 kB / 471.5 MB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.4499, allocations: 67.86 kB / 471.6 MB, free: 10.41 MB / 398.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.0002432/0.4501, allocations: 141.7 kB / 471.7 MB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.4503, allocations: 19.75 kB / 471.7 MB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007433/0.4577, allocations: 7.969 MB / 479.7 MB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.039e-05/0.4578, allocations: 27.95 kB / 479.7 MB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.4578, allocations: 0 / 479.7 MB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.4579, allocations: 0 / 479.7 MB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00326/0.4611, allocations: 3.592 MB / 483.3 MB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.4612, allocations: 0 / 483.3 MB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006618/0.4618, allocations: 111.8 kB / 483.4 MB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.4619, allocations: 7.938 kB / 483.4 MB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-05/0.4619, allocations: 11.98 kB / 483.4 MB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.4619, allocations: 4 kB / 483.4 MB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.4619, allocations: 0 / 483.4 MB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.4645, allocations: 1.838 MB / 485.3 MB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.4646, allocations: 148.2 kB / 485.4 MB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/0.4647, allocations: 11.94 kB / 485.4 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003106/0.465, allocations: 15.98 kB / 485.4 MB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.4651, allocations: 23.97 kB / 485.5 MB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.583e-05/0.4652, allocations: 15.98 kB / 485.5 MB, free: 12.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.832e-05/0.4653, allocations: 95.2 kB / 485.6 MB, free: 12.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.4653, allocations: 0 / 485.6 MB, free: 12.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003789/0.4691, allocations: 0.9838 MB / 486.6 MB, free: 11.07 MB / 414.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.009499/0.4786, allocations: 3.421 MB / 490 MB, free: 7.621 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.4804, allocations: 0.8997 MB / 490.9 MB, free: 6.723 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4804, allocations: 4.062 kB / 490.9 MB, free: 6.719 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000784/0.4812, allocations: 0.5908 MB / 491.5 MB, free: 6.129 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000681/0.4819, allocations: 81.02 kB / 491.6 MB, free: 6.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008205/0.4901, allocations: 4.644 MB / 496.2 MB, free: 1.285 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.4906, allocations: 0.8497 MB / 497 MB, free: 420 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001779/0.4924, allocations: 1.787 MB / 498.8 MB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004529/0.4928, allocations: 223.3 kB / 499.1 MB, free: 14.4 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4928, allocations: 0 / 499.1 MB, free: 14.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08083/0.5737, allocations: 45.81 MB / 0.5321 GB, free: 440 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/11.01, allocations: 15.98 kB / 0.5321 GB, free: 424 kB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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