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.001325/0.001325, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001544/0.001544, allocations: 211 kB / 23.73 MB, free: 4.387 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.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001684/0.001684, allocations: 55.92 kB / 378.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2443, allocations: 53.36 MB / 431.9 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01761/0.2619, allocations: 12.32 MB / 444.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0189/0.2808, allocations: 13.63 MB / 457.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.281, allocations: 0 / 457.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003536/0.2813, allocations: 75.5 kB / 457.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000377/0.2817, allocations: 111.2 kB / 458 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0154/0.2971, allocations: 5.93 MB / 464 MB, free: 6.184 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005349/0.2977, allocations: 346.5 kB / 464.3 MB, free: 5.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.593e-05/0.2977, allocations: 9.812 kB / 464.3 MB, free: 5.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005361/0.2983, allocations: 219.1 kB / 464.5 MB, free: 5.617 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.2985, allocations: 99.55 kB / 464.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.165e-05/0.2985, allocations: 19.94 kB / 464.6 MB, free: 5.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01299/0.3115, allocations: 6.474 MB / 471.1 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.3116, allocations: 47.83 kB / 471.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.3118, allocations: 91.7 kB / 471.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008358/0.3201, allocations: 3.913 MB / 475.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3201, allocations: 0 / 475.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3201, allocations: 4 kB / 475.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.3201, allocations: 0 / 475.2 MB, free: 10.96 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.00264/0.3228, allocations: 0.9467 MB / 476.1 MB, free: 9.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3228, allocations: 8.031 kB / 476.1 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.045e-05/0.3229, allocations: 54.73 kB / 476.2 MB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001368/0.3243, allocations: 180.6 kB / 476.4 MB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.3246, allocations: 206.2 kB / 476.6 MB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.3246, allocations: 12.81 kB / 476.6 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.786e-05/0.3247, allocations: 27.94 kB / 476.6 MB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003117/0.3278, allocations: 0.9553 MB / 477.6 MB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.3278, allocations: 3.938 kB / 477.6 MB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.3279, allocations: 11.94 kB / 477.6 MB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3279, allocations: 8 kB / 477.6 MB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003214/0.3311, allocations: 0.9657 MB / 478.5 MB, free: 7.488 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.00159/0.3327, allocations: 0.9394 MB / 479.5 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002603/0.3353, allocations: 0.7285 MB / 480.2 MB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002906/0.3356, allocations: 156.8 kB / 480.4 MB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07572/0.4113, allocations: 20.63 MB / 0.4893 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.4113, allocations: 38.55 kB / 0.4893 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.345e-06/0.4113, allocations: 0 / 0.4893 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005237/0.4166, allocations: 1.357 MB / 0.4906 GB, free: 15.53 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.4166, allocations: 55.41 kB / 0.4907 GB, free: 15.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.4167, allocations: 137.7 kB / 0.4908 GB, free: 15.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.84e-05/0.4168, allocations: 29.7 kB / 0.4908 GB, free: 15.28 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.518e-05/0.4169, allocations: 112.9 kB / 0.4909 GB, free: 15.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.417, allocations: 118.9 kB / 0.4911 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000274/0.4173, allocations: 169.5 kB / 0.4912 GB, free: 14.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4175, allocations: 330.7 kB / 0.4915 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006573/0.4181, allocations: 335.8 kB / 0.4918 GB, free: 14.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000722/0.4188, allocations: 403.5 kB / 0.4922 GB, free: 13.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.4202, allocations: 0.7153 MB / 0.4929 GB, free: 13.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.4202, allocations: 0 / 0.4929 GB, free: 13.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001886/0.4221, allocations: 0.868 MB / 0.4938 GB, free: 12.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.4221, allocations: 11.94 kB / 0.4938 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.4221, allocations: 0 / 0.4938 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.4221, allocations: 4.25 kB / 0.4938 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006539/0.4228, allocations: 183.8 kB / 0.494 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.4228, allocations: 4 kB / 0.494 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003296/0.4231, allocations: 31.77 kB / 0.494 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.4233, allocations: 63.92 kB / 0.4941 GB, free: 11.89 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.0002295/0.4235, allocations: 141.7 kB / 0.4942 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.4236, allocations: 19.84 kB / 0.4942 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008792/0.4324, allocations: 8.497 MB / 0.5025 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.161e-05/0.4325, allocations: 24.34 kB / 0.5025 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.4325, allocations: 3.984 kB / 0.5025 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.4325, allocations: 0 / 0.5025 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.436, allocations: 3.724 MB / 0.5062 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.436, allocations: 3.938 kB / 0.5062 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006366/0.4366, allocations: 107.8 kB / 0.5063 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.4366, allocations: 3.938 kB / 0.5063 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.206e-05/0.4367, allocations: 19.98 kB / 0.5063 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.4367, allocations: 4 kB / 0.5063 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.4367, allocations: 7.984 kB / 0.5063 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002641/0.4393, allocations: 1.886 MB / 0.5082 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.025e-05/0.4394, allocations: 71.34 kB / 0.5082 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.583e-05/0.4395, allocations: 11.94 kB / 0.5082 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.4398, allocations: 12 kB / 0.5083 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.277e-05/0.4399, allocations: 36 kB / 0.5083 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.4399, allocations: 15.98 kB / 0.5083 GB, free: 13 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.513e-05/0.44, allocations: 95.27 kB / 0.5084 GB, free: 12.91 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.44, allocations: 0 / 0.5084 GB, free: 12.91 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002588/0.4425, allocations: 0.998 MB / 0.5094 GB, free: 11.91 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.007478/0.45, allocations: 3.474 MB / 0.5128 GB, free: 8.406 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.4518, allocations: 0.8955 MB / 0.5136 GB, free: 7.512 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4518, allocations: 0 / 0.5136 GB, free: 7.512 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008274/0.4526, allocations: 0.5283 MB / 0.5142 GB, free: 6.984 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007046/0.4533, allocations: 88.56 kB / 0.5142 GB, free: 6.898 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008459/0.4618, allocations: 4.708 MB / 0.5188 GB, free: 2.059 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.462, allocations: 255.1 kB / 0.5191 GB, free: 1.785 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002043/0.4641, allocations: 1.783 MB / 0.5208 GB, free: 4 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005058/0.4646, allocations: 219.4 kB / 0.521 GB, free: 15.79 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4646, allocations: 192 / 0.521 GB, free: 15.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2752/0.7398, allocations: 47 MB / 0.5669 GB, free: 80.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.42, allocations: 19.66 kB / 0.567 GB, free: 80.37 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.225829346105456]