Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 123 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 51.92 kB / 366.5 MB, free: 28 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09767/0.09926, allocations: 52.13 MB / 418.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01603/0.1153, allocations: 13.39 MB / 432 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2073/0.3226, allocations: 15.6 MB / 447.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.3227, allocations: 0 / 447.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003372/0.3231, allocations: 82.09 kB / 447.7 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002919/0.3234, allocations: 115 kB / 447.8 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01358/0.3369, allocations: 5.956 MB / 453.7 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004531/0.3374, allocations: 341.5 kB / 454.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.107e-05/0.3375, allocations: 12.48 kB / 454.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004416/0.3379, allocations: 230 kB / 454.3 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.3381, allocations: 110.1 kB / 454.4 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.3381, allocations: 13.56 kB / 454.4 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01358/0.3517, allocations: 6.767 MB / 461.2 MB, free: 6.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.3518, allocations: 42.8 kB / 461.2 MB, free: 6.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.352, allocations: 104.1 kB / 461.3 MB, free: 6.543 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009628/0.3616, allocations: 3.912 MB / 465.2 MB, free: 5.715 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.3616, allocations: 3.375 kB / 465.2 MB, free: 5.715 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3616, allocations: 0 / 465.2 MB, free: 5.715 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.3616, allocations: 1.125 kB / 465.2 MB, free: 5.715 MB / 366.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.003257/0.3649, allocations: 1.017 MB / 466.3 MB, free: 4.977 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3649, allocations: 9.219 kB / 466.3 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.923e-05/0.365, allocations: 57.33 kB / 466.3 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/0.3664, allocations: 176.5 kB / 466.5 MB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.3666, allocations: 257.4 kB / 466.7 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/0.3666, allocations: 15.97 kB / 466.8 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/0.3667, allocations: 29.78 kB / 466.8 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00291/0.3696, allocations: 0.9074 MB / 467.7 MB, free: 4.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.3696, allocations: 3.984 kB / 467.7 MB, free: 4.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/0.3696, allocations: 10.66 kB / 467.7 MB, free: 4.336 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-06/0.3697, allocations: 5.5 kB / 467.7 MB, free: 4.336 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003007/0.3727, allocations: 0.97 MB / 468.7 MB, free: 4.105 MB / 366.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.001309/0.374, allocations: 1.351 MB / 470 MB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/0.3764, allocations: 0.7197 MB / 470.8 MB, free: 2.824 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002502/0.3766, allocations: 154.3 kB / 470.9 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07779/0.4544, allocations: 37.56 MB / 0.4966 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.456e-05/0.4545, allocations: 38.56 kB / 0.4966 GB, free: 15.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.4545, allocations: 0 / 0.4966 GB, free: 15.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005328/0.4598, allocations: 1.363 MB / 0.4979 GB, free: 14.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.4599, allocations: 59.41 kB / 0.498 GB, free: 14.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.46, allocations: 119.3 kB / 0.4981 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.331e-05/0.4601, allocations: 33.7 kB / 0.4981 GB, free: 14.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.4601, allocations: 120.8 kB / 0.4982 GB, free: 14.06 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.4603, allocations: 117.7 kB / 0.4984 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003088/0.4606, allocations: 169.3 kB / 0.4985 GB, free: 13.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4607, allocations: 326.8 kB / 0.4988 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006639/0.4614, allocations: 339.8 kB / 0.4991 GB, free: 13.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007465/0.4622, allocations: 414.7 kB / 0.4995 GB, free: 12.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.4635, allocations: 0.704 MB / 0.5002 GB, free: 11.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.4635, allocations: 4 kB / 0.5002 GB, free: 11.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001931/0.4655, allocations: 0.8717 MB / 0.5011 GB, free: 11.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.4655, allocations: 8 kB / 0.5011 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.4655, allocations: 5.016 kB / 0.5011 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.4655, allocations: 7.469 kB / 0.5011 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006507/0.4662, allocations: 181.9 kB / 0.5013 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.4662, allocations: 4 kB / 0.5013 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003288/0.4665, allocations: 32.78 kB / 0.5013 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.4666, allocations: 67.92 kB / 0.5014 GB, free: 10.8 MB / 414.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.00023/0.4669, allocations: 132.9 kB / 0.5015 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.467, allocations: 23.91 kB / 0.5015 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008044/0.475, allocations: 7.971 MB / 0.5093 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.608e-05/0.4751, allocations: 27.95 kB / 0.5093 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.4751, allocations: 0 / 0.5093 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.4751, allocations: 5.047 kB / 0.5093 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.4784, allocations: 3.599 MB / 0.5129 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.036e-06/0.4785, allocations: 0.6562 kB / 0.5129 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006512/0.4791, allocations: 111.4 kB / 0.513 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.74e-06/0.4791, allocations: 0 / 0.513 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.437e-05/0.4792, allocations: 15.94 kB / 0.513 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.368e-05/0.4792, allocations: 7.984 kB / 0.513 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.4792, allocations: 5.062 kB / 0.513 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/0.4817, allocations: 1.842 MB / 0.5148 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.4818, allocations: 140.5 kB / 0.5149 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.615e-05/0.4819, allocations: 15.94 kB / 0.5149 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000281/0.4822, allocations: 16.05 kB / 0.515 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.4823, allocations: 32.75 kB / 0.515 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.4823, allocations: 19.98 kB / 0.515 GB, free: 12.56 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.962e-05/0.4824, allocations: 91.12 kB / 0.5151 GB, free: 12.47 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4824, allocations: 0 / 0.5151 GB, free: 12.47 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003709/0.4861, allocations: 0.9902 MB / 0.5161 GB, free: 11.48 MB / 430.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.008836/0.4949, allocations: 3.437 MB / 0.5194 GB, free: 8.117 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.4967, allocations: 0.874 MB / 0.5203 GB, free: 7.25 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4967, allocations: 0 / 0.5203 GB, free: 7.25 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007562/0.4974, allocations: 0.5194 MB / 0.5208 GB, free: 6.742 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006711/0.4981, allocations: 87.69 kB / 0.5209 GB, free: 6.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008802/0.5069, allocations: 4.673 MB / 0.5254 GB, free: 1.895 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.5074, allocations: 0.8536 MB / 0.5263 GB, free: 1.012 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002021/0.5094, allocations: 1.784 MB / 0.528 GB, free: 15.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005012/0.5099, allocations: 223.3 kB / 0.5282 GB, free: 15.04 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5099, allocations: 0 / 0.5282 GB, free: 15.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08816/0.5981, allocations: 45.63 MB / 0.5728 GB, free: 1.477 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.83, allocations: 3.875 kB / 0.5728 GB, free: 1.477 MB / 478.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.467059087008238]