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.001826/0.001826, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002325/0.002325, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.477/1.477, allocations: 230.6 MB / 254.1 MB, free: 15.1 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002357/0.002357, allocations: 47.92 kB / 373.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1505, allocations: 53.31 MB / 427.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.2517/0.4022, allocations: 13.51 MB / 440.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.42, allocations: 15.61 MB / 456.2 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002164/0.4202, allocations: 1.406 kB / 456.2 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003685/0.4206, allocations: 75.12 kB / 456.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003606/0.4209, allocations: 116.8 kB / 456.4 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01822/0.4391, allocations: 5.973 MB / 462.4 MB, free: 6.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005899/0.4397, allocations: 342.2 kB / 462.7 MB, free: 5.895 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.32e-05/0.4398, allocations: 7.344 kB / 462.8 MB, free: 5.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005064/0.4403, allocations: 243.8 kB / 463 MB, free: 5.742 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000183/0.4405, allocations: 113.2 kB / 463.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/0.4405, allocations: 17.56 kB / 463.1 MB, free: 5.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01455/0.4551, allocations: 6.764 MB / 469.9 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.4552, allocations: 45.05 kB / 469.9 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002188/0.4554, allocations: 105.5 kB / 470 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.4665, allocations: 3.925 MB / 474 MB, free: 15.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.4665, allocations: 4.844 kB / 474 MB, free: 15.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4665, allocations: 0 / 474 MB, free: 15.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.4665, allocations: 0 / 474 MB, free: 15.62 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.003424/0.4699, allocations: 1.021 MB / 475 MB, free: 14.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.47, allocations: 9.406 kB / 475 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.697e-05/0.4701, allocations: 58.33 kB / 475 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001394/0.4714, allocations: 179.8 kB / 475.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.4718, allocations: 261.9 kB / 475.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.4718, allocations: 17.94 kB / 475.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.4719, allocations: 26.91 kB / 475.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003147/0.475, allocations: 0.9029 MB / 476.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.475, allocations: 5.625 kB / 476.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.4751, allocations: 6.844 kB / 476.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.4751, allocations: 5.812 kB / 476.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003278/0.4783, allocations: 0.9672 MB / 477.4 MB, free: 13.28 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.00175/0.4801, allocations: 1.344 MB / 478.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002646/0.4827, allocations: 0.7322 MB / 479.5 MB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.483, allocations: 154.5 kB / 479.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08917/0.5722, allocations: 42.18 MB / 0.5096 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.637e-05/0.5722, allocations: 42.56 kB / 0.5096 GB, free: 11.97 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.495e-06/0.5722, allocations: 0 / 0.5096 GB, free: 11.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005563/0.5778, allocations: 1.349 MB / 0.5109 GB, free: 10.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.5779, allocations: 55.41 kB / 0.511 GB, free: 10.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.578, allocations: 125.8 kB / 0.5111 GB, free: 10.42 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.929e-05/0.5781, allocations: 33.7 kB / 0.5111 GB, free: 10.38 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.021e-05/0.5782, allocations: 120.8 kB / 0.5113 GB, free: 10.26 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.5783, allocations: 119 kB / 0.5114 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003264/0.5786, allocations: 165.9 kB / 0.5115 GB, free: 9.973 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.5788, allocations: 326.8 kB / 0.5118 GB, free: 9.645 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006911/0.5795, allocations: 343.6 kB / 0.5122 GB, free: 9.309 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007712/0.5803, allocations: 407.3 kB / 0.5126 GB, free: 8.883 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.5817, allocations: 0.7222 MB / 0.5133 GB, free: 8.133 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.5817, allocations: 0 / 0.5133 GB, free: 8.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002035/0.5838, allocations: 0.8719 MB / 0.5141 GB, free: 7.254 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.5838, allocations: 11.94 kB / 0.5141 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.5838, allocations: 1.734 kB / 0.5141 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.5838, allocations: 4 kB / 0.5141 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000696/0.5845, allocations: 179.8 kB / 0.5143 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.5845, allocations: 4 kB / 0.5143 GB, free: 7.059 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003734/0.5849, allocations: 39.95 kB / 0.5143 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.585, allocations: 59.94 kB / 0.5144 GB, free: 6.961 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.0002799/0.5853, allocations: 141.8 kB / 0.5145 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.5855, allocations: 19.84 kB / 0.5146 GB, free: 6.793 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008565/0.594, allocations: 7.974 MB / 0.5223 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.814e-05/0.5941, allocations: 27.95 kB / 0.5224 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.5941, allocations: 0 / 0.5224 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.5941, allocations: 3.984 kB / 0.5224 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.5977, allocations: 3.6 MB / 0.5259 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.5977, allocations: 0.9375 kB / 0.5259 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006837/0.5984, allocations: 107.8 kB / 0.526 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.5984, allocations: 3.938 kB / 0.526 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.932e-05/0.5984, allocations: 15.98 kB / 0.526 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.5985, allocations: 4 kB / 0.526 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.5985, allocations: 4 kB / 0.526 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002656/0.6011, allocations: 1.835 MB / 0.5278 GB, free: 8.918 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.6012, allocations: 144.5 kB / 0.528 GB, free: 8.758 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.6013, allocations: 12.81 kB / 0.528 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/0.6016, allocations: 16.06 kB / 0.528 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.6017, allocations: 29.03 kB / 0.528 GB, free: 8.703 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-05/0.6018, allocations: 19.98 kB / 0.528 GB, free: 8.684 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.953e-05/0.6018, allocations: 95.2 kB / 0.5281 GB, free: 8.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6018, allocations: 0 / 0.5281 GB, free: 8.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003742/0.6056, allocations: 1.002 MB / 0.5291 GB, free: 7.586 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.008923/0.6145, allocations: 3.444 MB / 0.5325 GB, free: 4.129 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001814/0.6163, allocations: 0.8727 MB / 0.5333 GB, free: 3.258 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.6163, allocations: 0 / 0.5333 GB, free: 3.258 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008715/0.6172, allocations: 0.5249 MB / 0.5338 GB, free: 2.734 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006843/0.6179, allocations: 83.19 kB / 0.5339 GB, free: 2.656 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009597/0.6275, allocations: 4.677 MB / 0.5385 GB, free: 13.85 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.6279, allocations: 0.8497 MB / 0.5393 GB, free: 12.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002135/0.6301, allocations: 1.784 MB / 0.541 GB, free: 11.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005173/0.6306, allocations: 223.3 kB / 0.5413 GB, free: 10.97 MB / 462.1 MB Notification: Performance of SimCode: time 8.91e-07/0.6306, allocations: 0 / 0.5413 GB, free: 10.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08931/0.7199, allocations: 45.76 MB / 0.5859 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.73, allocations: 2.75 kB / 0.5859 GB, free: 13.26 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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.562461515000905]