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.0007703/0.0007703, 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.0007831/0.0007831, 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.925/0.925, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.0322/0.0322, allocations: 7.514 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 2.745e-06/2.745e-06, allocations: 0 / 391.7 MB, free: 5.191 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.485e-05, allocations: 4.953 kB / 391.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01329/0.01332, allocations: 16.28 MB / 408 MB, free: 4.828 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.1843/0.1977, allocations: 15.04 MB / 423 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.1978, allocations: 0 / 423 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005494/0.1983, allocations: 254.2 kB / 423.3 MB, free: 14.67 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004112/0.1987, allocations: 225 kB / 423.5 MB, free: 14.62 MB / 330.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.01504/0.2138, allocations: 7.521 MB / 431 MB, free: 12.96 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003536/0.2141, allocations: 306.5 kB / 431.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.903e-05/0.2142, allocations: 11.17 kB / 431.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000292/0.2145, allocations: 179.7 kB / 431.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.2146, allocations: 60.62 kB / 431.6 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.2146, allocations: 2.781 kB / 431.6 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009438/0.224, allocations: 7.335 MB / 438.9 MB, free: 9.195 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.344e-05/0.2241, allocations: 18.45 kB / 438.9 MB, free: 9.18 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.2242, allocations: 52.03 kB / 439 MB, free: 9.172 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005388/0.2296, allocations: 4.496 MB / 443.5 MB, free: 6.312 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2296, allocations: 0 / 443.5 MB, free: 6.312 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2296, allocations: 6.125 kB / 443.5 MB, free: 6.309 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.2296, allocations: 1.312 kB / 443.5 MB, free: 6.309 MB / 330.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.001236/0.2308, allocations: 0.9456 MB / 444.4 MB, free: 5.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2309, allocations: 10.78 kB / 444.4 MB, free: 5.605 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.162e-05/0.2309, allocations: 44.23 kB / 444.5 MB, free: 5.559 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.2309, allocations: 15.94 kB / 444.5 MB, free: 5.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.015e-05/0.231, allocations: 131.2 kB / 444.6 MB, free: 5.402 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.231, allocations: 5.875 kB / 444.6 MB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-06/0.231, allocations: 2.062 kB / 444.6 MB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.2312, allocations: 173.9 kB / 444.8 MB, free: 5.277 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.2312, allocations: 0 / 444.8 MB, free: 5.277 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.2312, allocations: 3 kB / 444.8 MB, free: 5.277 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.2312, allocations: 7.984 kB / 444.8 MB, free: 5.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.2314, allocations: 119.2 kB / 444.9 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004015/0.2318, allocations: 0.5 MB / 445.4 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.2319, allocations: 111.6 kB / 445.5 MB, free: 4.684 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.515e-05/0.2319, allocations: 100.1 kB / 445.6 MB, free: 4.629 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0507/0.2826, allocations: 25.76 MB / 471.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.2827, allocations: 34.56 kB / 471.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.063e-06/0.2827, allocations: 0 / 471.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0005472/0.2832, allocations: 374 kB / 471.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.2833, allocations: 59.33 kB / 471.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.2834, allocations: 117.8 kB / 472 MB, free: 10.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.2834, allocations: 25.7 kB / 472 MB, free: 10.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.159e-05/0.2834, allocations: 93.03 kB / 472.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.306e-05/0.2835, allocations: 138.7 kB / 472.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-05/0.2835, allocations: 45.64 kB / 472.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2837, allocations: 330.8 kB / 472.6 MB, free: 9.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.895e-05/0.2838, allocations: 87.95 kB / 472.7 MB, free: 9.824 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.2839, allocations: 129 kB / 472.8 MB, free: 9.691 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002336/0.2841, allocations: 238.2 kB / 473 MB, free: 9.449 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.2841, allocations: 0 / 473 MB, free: 9.449 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0002951/0.2844, allocations: 273 kB / 473.3 MB, free: 9.176 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.2844, allocations: 11.98 kB / 473.3 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.2845, allocations: 0 / 473.3 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.2845, allocations: 0 / 473.3 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.802e-05/0.2845, allocations: 11.94 kB / 473.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.2845, allocations: 9.469 kB / 473.3 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.376e-05/0.2846, allocations: 24.92 kB / 473.4 MB, free: 9.121 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.2846, allocations: 4.062 kB / 473.4 MB, free: 9.117 MB / 362.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 9.7e-05/0.2847, allocations: 121.8 kB / 473.5 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.912e-05/0.2847, allocations: 23.84 kB / 473.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000373/0.2851, allocations: 318.8 kB / 473.8 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.2851, allocations: 11.92 kB / 473.8 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.2851, allocations: 3.938 kB / 473.8 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2851, allocations: 4 kB / 473.8 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.2853, allocations: 228.5 kB / 474.1 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2853, allocations: 0 / 474.1 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.52e-05/0.2854, allocations: 11.92 kB / 474.1 MB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.2854, allocations: 0 / 474.1 MB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.2854, allocations: 4 kB / 474.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2854, allocations: 0.875 kB / 474.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.2854, allocations: 3.938 kB / 474.1 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.2857, allocations: 370.4 kB / 474.4 MB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.2858, allocations: 39.72 kB / 474.5 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.2858, allocations: 4 kB / 474.5 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.477e-05/0.2858, allocations: 7.984 kB / 474.5 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.199e-05/0.2859, allocations: 7.938 kB / 474.5 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.2859, allocations: 5.922 kB / 474.5 MB, free: 7.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.24e-05/0.2859, allocations: 91.72 kB / 474.6 MB, free: 7.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2859, allocations: 0 / 474.6 MB, free: 7.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002461/0.2884, allocations: 1.125 MB / 475.7 MB, free: 6.691 MB / 362.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.003557/0.292, allocations: 2.645 MB / 478.4 MB, free: 4.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.2923, allocations: 237.1 kB / 478.6 MB, free: 3.781 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2923, allocations: 0 / 478.6 MB, free: 3.781 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.2924, allocations: 133.6 kB / 478.7 MB, free: 3.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004991/0.2929, allocations: 154.8 kB / 478.9 MB, free: 3.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.294, allocations: 0.8499 MB / 479.7 MB, free: 2.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.017e-05/0.294, allocations: 107.9 kB / 479.8 MB, free: 2.492 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.747e-05/0.2941, allocations: 15.31 kB / 479.8 MB, free: 2.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.877e-05/0.2941, allocations: 40.48 kB / 479.9 MB, free: 2.438 MB / 362.7 MB Notification: Performance of SimCode: time 6.72e-07/0.2941, allocations: 4 kB / 479.9 MB, free: 2.434 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04961/0.3437, allocations: 33.86 MB / 0.5017 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.894/8.238, allocations: 7.984 kB / 0.5017 GB, free: 0.8047 MB / 394.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.919829802587628] Failed to read output from testmodel.py, exit status != 0: 8.331870594061911 8.33985945 8.108540367 Calling exit ...