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.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.001353/0.001353, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001771/0.001771, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 55.92 kB / 348 MB, free: 9.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2869, allocations: 49.16 MB / 397.2 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01468/0.3016, allocations: 13.45 MB / 410.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02147/0.3231, allocations: 15.65 MB / 426.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00023/0.3233, allocations: 1.125 kB / 426.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004364/0.3237, allocations: 80.06 kB / 426.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004932/0.3242, allocations: 112.3 kB / 426.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02097/0.3452, allocations: 5.969 MB / 432.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007495/0.3459, allocations: 346.2 kB / 432.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.469e-05/0.346, allocations: 7.5 kB / 432.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007424/0.3468, allocations: 231 kB / 433 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.3471, allocations: 108.4 kB / 433.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.3472, allocations: 18.41 kB / 433.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0159/0.363, allocations: 6.757 MB / 439.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.3632, allocations: 47.83 kB / 439.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002234/0.3634, allocations: 99.59 kB / 440 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.3739, allocations: 3.905 MB / 443.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3739, allocations: 0 / 443.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3739, allocations: 0 / 443.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.3739, allocations: 0 / 443.9 MB, free: 4.18 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.00283/0.3768, allocations: 0.9429 MB / 444.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.3768, allocations: 11.98 kB / 444.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.357e-05/0.3769, allocations: 58.72 kB / 445 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001413/0.3783, allocations: 176.7 kB / 445.1 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.3786, allocations: 194.3 kB / 445.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.562e-05/0.3787, allocations: 16.81 kB / 445.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.022e-05/0.3787, allocations: 31.89 kB / 445.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003133/0.3819, allocations: 0.9011 MB / 446.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3819, allocations: 0 / 446.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.3819, allocations: 12 kB / 446.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3819, allocations: 4 kB / 446.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00325/0.3852, allocations: 0.9734 MB / 447.3 MB, free: 0.7773 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.001869/0.387, allocations: 1.314 MB / 448.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002624/0.3897, allocations: 0.7361 MB / 449.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.39, allocations: 152.8 kB / 449.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06805/0.458, allocations: 19.64 MB / 469.1 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.85e-05/0.4581, allocations: 34.56 kB / 469.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.415e-06/0.4581, allocations: 0 / 469.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.005335/0.4634, allocations: 1.368 MB / 470.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/0.4635, allocations: 59.39 kB / 470.6 MB, free: 9.289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.4636, allocations: 113.8 kB / 470.7 MB, free: 9.168 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.104e-05/0.4637, allocations: 33.7 kB / 470.7 MB, free: 9.129 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.961e-05/0.4638, allocations: 116.9 kB / 470.8 MB, free: 9.012 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.4639, allocations: 115 kB / 470.9 MB, free: 8.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002777/0.4642, allocations: 169.5 kB / 471.1 MB, free: 8.727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.4643, allocations: 326.8 kB / 471.4 MB, free: 8.398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006372/0.465, allocations: 335.8 kB / 471.7 MB, free: 8.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007346/0.4657, allocations: 411.2 kB / 472.1 MB, free: 7.641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.4671, allocations: 0.7076 MB / 472.8 MB, free: 6.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4671, allocations: 0 / 472.8 MB, free: 6.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001885/0.469, allocations: 0.868 MB / 473.7 MB, free: 6.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.469, allocations: 12.19 kB / 473.7 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.469, allocations: 8 kB / 473.7 MB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.469, allocations: 0 / 473.7 MB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006768/0.4697, allocations: 175.8 kB / 473.9 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.4697, allocations: 7.984 kB / 473.9 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.4701, allocations: 35.72 kB / 473.9 MB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.4702, allocations: 63.92 kB / 474 MB, free: 5.734 MB / 382.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.0002916/0.4705, allocations: 138.2 kB / 474.1 MB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.4706, allocations: 19.84 kB / 474.2 MB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009102/0.4797, allocations: 8.513 MB / 482.7 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.389e-05/0.4798, allocations: 23.95 kB / 482.7 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.4798, allocations: 4 kB / 482.7 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.4798, allocations: 0 / 482.7 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003893/0.4837, allocations: 3.771 MB / 486.5 MB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.4837, allocations: 8 kB / 486.5 MB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006443/0.4843, allocations: 103.8 kB / 486.6 MB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.098e-05/0.4843, allocations: 7.938 kB / 486.6 MB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.4844, allocations: 11.98 kB / 486.6 MB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.4844, allocations: 0 / 486.6 MB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4844, allocations: 0 / 486.6 MB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002651/0.487, allocations: 1.882 MB / 488.5 MB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.954e-05/0.4871, allocations: 71.33 kB / 488.6 MB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.099e-05/0.4872, allocations: 11.88 kB / 488.6 MB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/0.4875, allocations: 19.98 kB / 488.6 MB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.766e-05/0.4876, allocations: 31.94 kB / 488.6 MB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.736e-05/0.4876, allocations: 8 kB / 488.6 MB, free: 6.809 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.173e-05/0.4877, allocations: 91.27 kB / 488.7 MB, free: 6.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4877, allocations: 0 / 488.7 MB, free: 6.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002997/0.4907, allocations: 0.998 MB / 489.7 MB, free: 5.719 MB / 398.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.007811/0.4985, allocations: 3.464 MB / 493.2 MB, free: 2.227 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.5003, allocations: 0.9029 MB / 494.1 MB, free: 1.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.5003, allocations: 0 / 494.1 MB, free: 1.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007919/0.5011, allocations: 0.5244 MB / 494.6 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/0.5018, allocations: 88.52 kB / 494.7 MB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008688/0.5105, allocations: 4.679 MB / 499.4 MB, free: 11.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005278/0.511, allocations: 0.8538 MB / 0.4885 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00213/0.5131, allocations: 1.783 MB / 0.4902 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005001/0.5136, allocations: 223.3 kB / 0.4905 GB, free: 9.016 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5136, allocations: 0 / 0.4905 GB, free: 9.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09899/0.6126, allocations: 46.66 MB / 0.536 GB, free: 10.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.51/15.12, allocations: 0 / 0.536 GB, free: 10.18 MB / 462.1 MB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.92935037799907]