Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.383/1.383, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 51.91 kB / 374.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09349/0.09495, allocations: 53.33 MB / 427.8 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1889/0.2838, allocations: 13.49 MB / 441.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01684/0.3007, allocations: 15.61 MB / 457 MB, free: 9.379 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.3009, allocations: 1.062 kB / 457 MB, free: 9.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003718/0.3012, allocations: 75.31 kB / 457 MB, free: 9.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003755/0.3016, allocations: 114.5 kB / 457.1 MB, free: 9.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01848/0.3201, allocations: 5.974 MB / 463.1 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006107/0.3207, allocations: 346.4 kB / 463.5 MB, free: 5.883 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.567e-05/0.3208, allocations: 8.344 kB / 463.5 MB, free: 5.883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005032/0.3213, allocations: 239 kB / 463.7 MB, free: 5.734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.3215, allocations: 113 kB / 463.8 MB, free: 5.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.3215, allocations: 13.75 kB / 463.8 MB, free: 5.668 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01396/0.3354, allocations: 6.772 MB / 470.6 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.679e-05/0.3355, allocations: 49.2 kB / 470.6 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.3357, allocations: 109.2 kB / 470.7 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008851/0.3446, allocations: 3.922 MB / 474.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3446, allocations: 0 / 474.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3446, allocations: 0 / 474.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3446, allocations: 0 / 474.7 MB, free: 15.61 MB / 382.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.003102/0.3477, allocations: 1.021 MB / 475.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.3477, allocations: 9.875 kB / 475.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.25e-05/0.3478, allocations: 9.938 kB / 475.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.609e-05/0.3478, allocations: 54.33 kB / 475.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.3492, allocations: 178.8 kB / 475.9 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.3495, allocations: 259.4 kB / 476.2 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.58e-05/0.3496, allocations: 22 kB / 476.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/0.3496, allocations: 24.62 kB / 476.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00317/0.3528, allocations: 0.8997 MB / 477.1 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.3528, allocations: 3.234 kB / 477.1 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.3528, allocations: 10.62 kB / 477.1 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.3528, allocations: 8.75 kB / 477.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003194/0.356, allocations: 0.9711 MB / 478.1 MB, free: 13.27 MB / 382.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.001758/0.3578, allocations: 1.345 MB / 479.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.3603, allocations: 0.7314 MB / 480.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.3606, allocations: 151 kB / 480.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08643/0.447, allocations: 42.18 MB / 0.5103 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.913e-05/0.4471, allocations: 34.56 kB / 0.5103 GB, free: 11.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.655e-06/0.4471, allocations: 0 / 0.5103 GB, free: 11.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005484/0.4526, allocations: 1.357 MB / 0.5116 GB, free: 10.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.4526, allocations: 59.41 kB / 0.5117 GB, free: 10.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.4527, allocations: 121.7 kB / 0.5118 GB, free: 10.37 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.644e-05/0.4528, allocations: 33.69 kB / 0.5118 GB, free: 10.33 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.4529, allocations: 120.8 kB / 0.512 GB, free: 10.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.4531, allocations: 119 kB / 0.5121 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003272/0.4534, allocations: 161.6 kB / 0.5122 GB, free: 9.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.4536, allocations: 330.8 kB / 0.5125 GB, free: 9.598 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/0.4542, allocations: 339.6 kB / 0.5129 GB, free: 9.266 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00076/0.455, allocations: 411.2 kB / 0.5133 GB, free: 8.836 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001416/0.4564, allocations: 0.7144 MB / 0.514 GB, free: 8.094 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4564, allocations: 4 kB / 0.514 GB, free: 8.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001963/0.4584, allocations: 0.8719 MB / 0.5148 GB, free: 7.211 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4584, allocations: 7.938 kB / 0.5148 GB, free: 7.203 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4584, allocations: 4 kB / 0.5148 GB, free: 7.199 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.4584, allocations: 4 kB / 0.5148 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000669/0.4591, allocations: 177.3 kB / 0.515 GB, free: 7.023 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.4591, allocations: 4 kB / 0.515 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/0.4594, allocations: 43.77 kB / 0.515 GB, free: 6.977 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.4596, allocations: 59.94 kB / 0.5151 GB, free: 6.918 MB / 430.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.0002494/0.4598, allocations: 137.8 kB / 0.5152 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.46, allocations: 19.84 kB / 0.5153 GB, free: 6.754 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008287/0.4682, allocations: 7.974 MB / 0.523 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.091e-05/0.4683, allocations: 27.95 kB / 0.5231 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4683, allocations: 0 / 0.5231 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.4683, allocations: 7.984 kB / 0.5231 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003405/0.4717, allocations: 3.6 MB / 0.5266 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.4717, allocations: 0 / 0.5266 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006489/0.4724, allocations: 108.9 kB / 0.5267 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.4724, allocations: 11.94 kB / 0.5267 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/0.4724, allocations: 11.98 kB / 0.5267 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.4724, allocations: 0 / 0.5267 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4724, allocations: 3.938 kB / 0.5267 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002573/0.475, allocations: 1.841 MB / 0.5285 GB, free: 8.875 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.4751, allocations: 152.5 kB / 0.5287 GB, free: 8.707 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.117e-05/0.4752, allocations: 8 kB / 0.5287 GB, free: 8.699 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002832/0.4754, allocations: 12 kB / 0.5287 GB, free: 8.688 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-05/0.4755, allocations: 27.95 kB / 0.5287 GB, free: 8.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-05/0.4756, allocations: 15.98 kB / 0.5287 GB, free: 8.645 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.198e-05/0.4757, allocations: 91.27 kB / 0.5288 GB, free: 8.555 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4757, allocations: 4 kB / 0.5288 GB, free: 8.551 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00368/0.4793, allocations: 0.998 MB / 0.5298 GB, free: 7.551 MB / 446.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.008499/0.4878, allocations: 3.442 MB / 0.5331 GB, free: 4.098 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.4896, allocations: 0.8848 MB / 0.534 GB, free: 3.215 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.4896, allocations: 4.062 kB / 0.534 GB, free: 3.211 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007613/0.4903, allocations: 0.5166 MB / 0.5345 GB, free: 2.695 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006652/0.491, allocations: 87.56 kB / 0.5346 GB, free: 2.613 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009033/0.5, allocations: 4.675 MB / 0.5392 GB, free: 13.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000467/0.5005, allocations: 0.8497 MB / 0.54 GB, free: 12.94 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002016/0.5025, allocations: 1.787 MB / 0.5417 GB, free: 11.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000507/0.503, allocations: 219.3 kB / 0.542 GB, free: 10.93 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.503, allocations: 0 / 0.542 GB, free: 10.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08507/0.5881, allocations: 45.81 MB / 0.5867 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.48, allocations: 6.719 kB / 0.5867 GB, free: 13.18 MB / 0.4981 GB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.330471783003304]