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.00129/0.00129, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.001428/0.001429, allocations: 191.9 kB / 18.51 MB, free: 4.508 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.27/1.27, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001189/0.001189, allocations: 56.14 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08083/0.08203, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01564/0.0977, allocations: 13.33 MB / 340.7 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.1157, allocations: 15.54 MB / 356.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.1159, allocations: 0 / 356.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003491/0.1163, allocations: 79.48 kB / 356.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003832/0.1167, allocations: 115.2 kB / 356.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01568/0.1324, allocations: 5.963 MB / 362.4 MB, free: 1.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004778/0.1329, allocations: 330.6 kB / 362.7 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.031e-05/0.133, allocations: 17.66 kB / 362.7 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005149/0.1335, allocations: 235 kB / 363 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.1337, allocations: 99.66 kB / 363.1 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.1337, allocations: 16 kB / 363.1 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01149/0.1452, allocations: 6.599 MB / 369.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.202e-05/0.1453, allocations: 43.89 kB / 369.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.1455, allocations: 99.59 kB / 369.8 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007568/0.1531, allocations: 3.895 MB / 373.7 MB, free: 5.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1531, allocations: 7.984 kB / 373.7 MB, free: 5.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1531, allocations: 0 / 373.7 MB, free: 5.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.1531, allocations: 0 / 373.7 MB, free: 5.875 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.003171/0.1563, allocations: 0.9869 MB / 374.7 MB, free: 4.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1563, allocations: 8.031 kB / 374.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.016e-05/0.1564, allocations: 58.73 kB / 374.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001338/0.1578, allocations: 176.5 kB / 375 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.1581, allocations: 256.1 kB / 375.2 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.1581, allocations: 20.75 kB / 375.2 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.596e-05/0.1582, allocations: 28.12 kB / 375.2 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.1611, allocations: 0.905 MB / 376.2 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1611, allocations: 0 / 376.2 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/0.1611, allocations: 8 kB / 376.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.1611, allocations: 4 kB / 376.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00307/0.1642, allocations: 0.9773 MB / 377.1 MB, free: 2.34 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.001528/0.1658, allocations: 1.354 MB / 378.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002481/0.1683, allocations: 0.7244 MB / 379.2 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1311/0.2994, allocations: 152.8 kB / 379.4 MB, free: 54.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06723/0.3667, allocations: 37.4 MB / 416.8 MB, free: 24.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.3667, allocations: 38.56 kB / 416.8 MB, free: 24.01 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/0.3667, allocations: 0 / 416.8 MB, free: 24.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004703/0.3714, allocations: 1.359 MB / 418.2 MB, free: 22.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.3715, allocations: 57.09 kB / 418.2 MB, free: 22.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.633e-05/0.3716, allocations: 118.7 kB / 418.3 MB, free: 22.47 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.526e-05/0.3716, allocations: 33.7 kB / 418.4 MB, free: 22.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.424e-05/0.3717, allocations: 122 kB / 418.5 MB, free: 22.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.3718, allocations: 111.7 kB / 418.6 MB, free: 22.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/0.372, allocations: 165.5 kB / 418.8 MB, free: 22.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.3721, allocations: 330.8 kB / 419.1 MB, free: 21.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/0.3726, allocations: 335.8 kB / 419.4 MB, free: 21.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005607/0.3732, allocations: 411 kB / 419.8 MB, free: 20.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.3743, allocations: 0.7086 MB / 420.5 MB, free: 20.24 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3743, allocations: 0 / 420.5 MB, free: 20.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001502/0.3758, allocations: 0.8699 MB / 421.4 MB, free: 19.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.3758, allocations: 4.812 kB / 421.4 MB, free: 19.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3758, allocations: 8 kB / 421.4 MB, free: 19.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.3759, allocations: 7.938 kB / 421.4 MB, free: 19.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005611/0.3764, allocations: 175.7 kB / 421.6 MB, free: 19.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.3764, allocations: 4 kB / 421.6 MB, free: 19.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003086/0.3768, allocations: 39.56 kB / 421.6 MB, free: 19.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.299e-05/0.3768, allocations: 55.94 kB / 421.7 MB, free: 19.09 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.000171/0.377, allocations: 149.6 kB / 421.8 MB, free: 18.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.3772, allocations: 19.81 kB / 421.8 MB, free: 18.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004927/0.3821, allocations: 7.97 MB / 429.8 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/0.3821, allocations: 27.89 kB / 429.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3821, allocations: 0 / 429.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3822, allocations: 3.984 kB / 429.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.384, allocations: 3.599 MB / 433.4 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.384, allocations: 0 / 433.4 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005561/0.3846, allocations: 111.8 kB / 433.6 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3846, allocations: 0 / 433.6 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.805e-05/0.3846, allocations: 11.98 kB / 433.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.3846, allocations: 11.92 kB / 433.6 MB, free: 6.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3846, allocations: 0 / 433.6 MB, free: 6.922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.3864, allocations: 1.835 MB / 435.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.514e-05/0.3865, allocations: 144.2 kB / 435.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.974e-05/0.3865, allocations: 8 kB / 435.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.3868, allocations: 15.94 kB / 435.6 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.939e-05/0.3869, allocations: 31.95 kB / 435.6 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.27e-05/0.3869, allocations: 12.73 kB / 435.6 MB, free: 4.844 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.276e-05/0.387, allocations: 95.2 kB / 435.7 MB, free: 4.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.387, allocations: 4.062 kB / 435.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002122/0.3891, allocations: 0.9807 MB / 436.7 MB, free: 3.848 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.005751/0.3949, allocations: 3.404 MB / 440.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.3965, allocations: 0.9188 MB / 441 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3965, allocations: 0 / 441 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007051/0.3972, allocations: 0.5908 MB / 441.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006333/0.3978, allocations: 93.73 kB / 441.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007489/0.4053, allocations: 4.641 MB / 446.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.4057, allocations: 0.8536 MB / 447.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001728/0.4075, allocations: 1.783 MB / 449 MB, free: 7.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004129/0.4079, allocations: 219.3 kB / 449.2 MB, free: 7.336 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4079, allocations: 4 kB / 449.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.441/2.849, allocations: 45.55 MB / 494.7 MB, free: 9.629 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.72/18.56, allocations: 8.688 kB / 494.8 MB, free: 9.621 MB / 382.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