Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.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.0008257/0.0008257, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008541/0.0008541, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9259/0.9259, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.02895/0.02895, allocations: 7.52 MB / 266.7 MB, free: 6.195 MB / 250.7 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) 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(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 391.7 MB, free: 6.383 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001079/0.001081, allocations: 9.375 kB / 391.7 MB, free: 6.375 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01493/0.01601, allocations: 16.27 MB / 408 MB, free: 6.031 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.02674, allocations: 15.06 MB / 423.1 MB, free: 6.926 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.0269, allocations: 0 / 423.1 MB, free: 6.926 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005778/0.02748, allocations: 242.7 kB / 423.3 MB, free: 6.688 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004056/0.02789, allocations: 234.5 kB / 423.5 MB, free: 6.457 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:888:13-888:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:888:13-888:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:1232:13-1232:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:1232:13-1232:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01422/0.04211, allocations: 7.514 MB / 431 MB, free: 14.94 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003235/0.04243, allocations: 298.2 kB / 431.3 MB, free: 14.64 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.539e-05/0.04248, allocations: 17.8 kB / 431.3 MB, free: 14.62 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.04274, allocations: 179.4 kB / 431.5 MB, free: 14.45 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.632e-05/0.04281, allocations: 59.84 kB / 431.6 MB, free: 14.39 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.04283, allocations: 4 kB / 431.6 MB, free: 14.39 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01066/0.05349, allocations: 7.339 MB / 438.9 MB, free: 7.031 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.203e-05/0.05353, allocations: 15.94 kB / 438.9 MB, free: 7.016 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.0537, allocations: 63.84 kB / 439 MB, free: 6.953 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009169/0.06287, allocations: 4.485 MB / 443.5 MB, free: 2.457 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.06287, allocations: 0 / 443.5 MB, free: 2.457 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.06288, allocations: 0 / 443.5 MB, free: 2.457 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.06288, allocations: 3.938 kB / 443.5 MB, free: 2.453 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.00185/0.06473, allocations: 0.944 MB / 444.4 MB, free: 1.477 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.06478, allocations: 12.61 kB / 444.4 MB, free: 1.465 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.377e-05/0.06482, allocations: 54.53 kB / 444.5 MB, free: 1.402 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.087e-05/0.06486, allocations: 15.86 kB / 444.5 MB, free: 1.387 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.474e-05/0.06496, allocations: 125 kB / 444.6 MB, free: 1.238 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.06497, allocations: 3.938 kB / 444.6 MB, free: 1.234 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.06498, allocations: 12 kB / 444.7 MB, free: 1.223 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.06521, allocations: 176.1 kB / 444.8 MB, free: 1.039 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.06521, allocations: 4 kB / 444.8 MB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.06522, allocations: 0 / 444.8 MB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.06523, allocations: 11.98 kB / 444.8 MB, free: 1.023 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003845/0.06562, allocations: 111.9 kB / 444.9 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004817/0.0661, allocations: 0.5035 MB / 445.5 MB, free: 372 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.06623, allocations: 110.5 kB / 445.6 MB, free: 252 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.167e-05/0.06632, allocations: 100.8 kB / 445.7 MB, free: 148 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2002/0.2665, allocations: 25.74 MB / 471.4 MB, free: 89.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.2665, allocations: 32.16 kB / 471.4 MB, free: 89.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 2.224e-06/0.2665, allocations: 0 / 471.4 MB, free: 89.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.0004925/0.267, allocations: 374.7 kB / 471.8 MB, free: 89.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.267, allocations: 54.73 kB / 471.9 MB, free: 89.15 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.296e-05/0.2671, allocations: 122 kB / 472 MB, free: 89.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.043e-06/0.2671, allocations: 31.48 kB / 472 MB, free: 89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/0.2671, allocations: 92.12 kB / 472.1 MB, free: 88.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.804e-05/0.2672, allocations: 135.7 kB / 472.2 MB, free: 88.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.957e-05/0.2672, allocations: 43.03 kB / 472.3 MB, free: 88.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.691e-05/0.2673, allocations: 324.1 kB / 472.6 MB, free: 88.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.2674, allocations: 89.19 kB / 472.7 MB, free: 88.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.2675, allocations: 131.2 kB / 472.8 MB, free: 88.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.2677, allocations: 246.9 kB / 473 MB, free: 88.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2677, allocations: 1.219 kB / 473 MB, free: 88.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0002647/0.268, allocations: 271.5 kB / 473.3 MB, free: 88.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.268, allocations: 6.109 kB / 473.3 MB, free: 88.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.268, allocations: 3.688 kB / 473.3 MB, free: 88.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.268, allocations: 10.06 kB / 473.3 MB, free: 88.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.167e-05/0.2681, allocations: 9.703 kB / 473.3 MB, free: 88.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2681, allocations: 5.781 kB / 473.3 MB, free: 88.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.653e-05/0.2681, allocations: 26.58 kB / 473.4 MB, free: 88.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.2681, allocations: 3.188 kB / 473.4 MB, free: 88.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (state_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 6.009e-05/0.2682, allocations: 128.1 kB / 473.5 MB, free: 88.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.2682, allocations: 19.12 kB / 473.5 MB, free: 88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003539/0.2686, allocations: 311.6 kB / 473.8 MB, free: 87.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.2686, allocations: 10.84 kB / 473.8 MB, free: 87.87 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2686, allocations: 0 / 473.8 MB, free: 87.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2686, allocations: 0.6562 kB / 473.8 MB, free: 87.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.2688, allocations: 233 kB / 474.1 MB, free: 87.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.2688, allocations: 4.797 kB / 474.1 MB, free: 87.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/0.2688, allocations: 10.91 kB / 474.1 MB, free: 87.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.2688, allocations: 1.844 kB / 474.1 MB, free: 87.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.2688, allocations: 2.469 kB / 474.1 MB, free: 87.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.2688, allocations: 3.047 kB / 474.1 MB, free: 87.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2688, allocations: 1.312 kB / 474.1 MB, free: 87.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002545/0.2691, allocations: 375.6 kB / 474.4 MB, free: 87.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-05/0.2691, allocations: 33.2 kB / 474.5 MB, free: 87.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.2691, allocations: 4 kB / 474.5 MB, free: 87.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.632e-05/0.2692, allocations: 10.83 kB / 474.5 MB, free: 87.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.2692, allocations: 7.438 kB / 474.5 MB, free: 87.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.2692, allocations: 3.156 kB / 474.5 MB, free: 87.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.811e-05/0.2692, allocations: 93 kB / 474.6 MB, free: 87.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2692, allocations: 1.094 kB / 474.6 MB, free: 87.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001939/0.2712, allocations: 1.132 MB / 475.7 MB, free: 87.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.003907/0.2751, allocations: 2.655 MB / 478.4 MB, free: 86.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003406/0.2754, allocations: 231.2 kB / 478.6 MB, free: 86.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2754, allocations: 0 / 478.6 MB, free: 86.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.2755, allocations: 134.9 kB / 478.7 MB, free: 85.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005403/0.2761, allocations: 143 kB / 478.9 MB, free: 85.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.2774, allocations: 0.8441 MB / 479.7 MB, free: 85.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.786e-05/0.2775, allocations: 109.3 kB / 479.8 MB, free: 85.39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.558e-05/0.2776, allocations: 14.08 kB / 479.8 MB, free: 85.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.423e-05/0.2776, allocations: 39.95 kB / 479.9 MB, free: 85.36 MB / 410.7 MB Notification: Performance of SimCode: time 7.52e-07/0.2776, allocations: 0 / 479.9 MB, free: 85.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04553/0.3232, allocations: 33.68 MB / 0.5015 GB, free: 55.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.464/7.787, allocations: 7.188 kB / 0.5015 GB, free: 55.63 MB / 410.7 MB " [Timeout remaining time 652] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.54444839246571] Failed to read output from testmodel.py, exit status != 0: 7.885769031941891 7.8929592 7.828538101 Calling exit ...