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.001307/0.001307, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001499/0.001499, allocations: 209.1 kB / 22.24 MB, free: 5.262 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.414/1.414, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.04921/0.04921, allocations: 9.134 MB / 321.6 MB, free: 10.23 MB / 254.1 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 0.002043/0.002043, allocations: 71.84 kB / 446.5 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1143, allocations: 54.94 MB / 0.4897 GB, free: 9.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02146/0.1358, allocations: 16.29 MB / 0.5056 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2101/0.3459, allocations: 15.04 MB / 0.5203 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.346, allocations: 1.094 kB / 0.5203 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006078/0.3466, allocations: 237.9 kB / 0.5205 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004113/0.347, allocations: 234.9 kB / 0.5208 GB, free: 6.957 MB / 382.1 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.01565/0.3627, allocations: 7.407 MB / 0.528 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003481/0.363, allocations: 296.5 kB / 0.5283 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.628e-05/0.3631, allocations: 10.39 kB / 0.5283 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.3633, allocations: 129.9 kB / 0.5284 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.769e-05/0.3634, allocations: 64.83 kB / 0.5285 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.356e-05/0.3634, allocations: 3.469 kB / 0.5285 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01434/0.3777, allocations: 7.294 MB / 0.5356 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.136e-05/0.3778, allocations: 13.83 kB / 0.5356 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.378, allocations: 73.47 kB / 0.5357 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008671/0.3866, allocations: 3.792 MB / 0.5394 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3866, allocations: 0 / 0.5394 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3866, allocations: 0.9688 kB / 0.5394 GB, free: 4.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.3867, allocations: 1.5 kB / 0.5394 GB, free: 4.496 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.002141/0.3888, allocations: 0.943 MB / 0.5403 GB, free: 3.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3888, allocations: 13.5 kB / 0.5403 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.476e-05/0.3889, allocations: 46.05 kB / 0.5404 GB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.12e-05/0.3889, allocations: 15.12 kB / 0.5404 GB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.389, allocations: 129.9 kB / 0.5405 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.389, allocations: 2.312 kB / 0.5405 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.389, allocations: 5.844 kB / 0.5405 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.3893, allocations: 171.8 kB / 0.5407 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.3893, allocations: 1.156 kB / 0.5407 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3893, allocations: 3.375 kB / 0.5407 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.3894, allocations: 9.766 kB / 0.5407 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.3896, allocations: 114 kB / 0.5408 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005356/0.3901, allocations: 0.501 MB / 0.5413 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001786/0.3903, allocations: 115.5 kB / 0.5414 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.3904, allocations: 101.7 kB / 0.5415 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1085/0.4989, allocations: 25.76 MB / 0.5666 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.499, allocations: 38.55 kB / 0.5667 GB, free: 15.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.683e-06/0.499, allocations: 0 / 0.5667 GB, free: 15.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007339/0.4997, allocations: 366 kB / 0.567 GB, free: 15.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.4997, allocations: 55.41 kB / 0.5671 GB, free: 15.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.4998, allocations: 121.8 kB / 0.5672 GB, free: 15.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.4999, allocations: 33.7 kB / 0.5672 GB, free: 15.08 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.596e-05/0.4999, allocations: 85.09 kB / 0.5673 GB, free: 14.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.5, allocations: 145.1 kB / 0.5674 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.158e-05/0.5001, allocations: 41.7 kB / 0.5675 GB, free: 14.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5002, allocations: 330.8 kB / 0.5678 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.5004, allocations: 91.89 kB / 0.5679 GB, free: 14.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.5006, allocations: 122.5 kB / 0.568 GB, free: 14.26 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/0.5009, allocations: 242.2 kB / 0.5682 GB, free: 14.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.5009, allocations: 0 / 0.5682 GB, free: 14.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000452/0.5014, allocations: 276.9 kB / 0.5685 GB, free: 13.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.5014, allocations: 4 kB / 0.5685 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.5014, allocations: 4 kB / 0.5685 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.5014, allocations: 3.984 kB / 0.5685 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.539e-05/0.5015, allocations: 12.06 kB / 0.5685 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.5015, allocations: 0 / 0.5685 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.5016, allocations: 23.83 kB / 0.5685 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.5017, allocations: 7.938 kB / 0.5686 GB, free: 13.68 MB / 414.1 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 0.0001115/0.5018, allocations: 121.8 kB / 0.5687 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.158e-05/0.5018, allocations: 16.66 kB / 0.5687 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005651/0.5024, allocations: 329.1 kB / 0.569 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/0.5024, allocations: 7.984 kB / 0.569 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5024, allocations: 0.5625 kB / 0.569 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.5024, allocations: 0 / 0.569 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.5027, allocations: 228.4 kB / 0.5692 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.5027, allocations: 0.625 kB / 0.5692 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/0.5027, allocations: 11.98 kB / 0.5692 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.5028, allocations: 0 / 0.5692 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.5028, allocations: 0 / 0.5692 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5028, allocations: 6.125 kB / 0.5692 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5028, allocations: 0.9375 kB / 0.5692 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004794/0.5032, allocations: 388.2 kB / 0.5696 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.721e-05/0.5033, allocations: 31.77 kB / 0.5696 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.5033, allocations: 4 kB / 0.5696 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.5034, allocations: 8 kB / 0.5697 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.5035, allocations: 3.984 kB / 0.5697 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.5035, allocations: 4 kB / 0.5697 GB, free: 12.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.038e-05/0.5036, allocations: 99.2 kB / 0.5698 GB, free: 12.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5036, allocations: 0 / 0.5698 GB, free: 12.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003197/0.5068, allocations: 1.125 MB / 0.5709 GB, free: 11.25 MB / 414.1 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.005746/0.5125, allocations: 2.483 MB / 0.5733 GB, free: 8.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005178/0.513, allocations: 248.9 kB / 0.5735 GB, free: 8.664 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.513, allocations: 0 / 0.5735 GB, free: 8.664 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.5132, allocations: 131.3 kB / 0.5736 GB, free: 8.531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009056/0.5141, allocations: 148.5 kB / 0.5738 GB, free: 8.395 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.5164, allocations: 0.8645 MB / 0.5746 GB, free: 7.488 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001026/0.5165, allocations: 115.8 kB / 0.5747 GB, free: 7.359 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.953e-05/0.5165, allocations: 4 kB / 0.5747 GB, free: 7.355 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.865e-05/0.5166, allocations: 39.42 kB / 0.5748 GB, free: 7.316 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5166, allocations: 4 kB / 0.5748 GB, free: 7.312 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07486/0.5915, allocations: 33.6 MB / 0.6076 GB, free: 6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.51, allocations: 3.75 kB / 0.6076 GB, free: 6 MB / 446.1 MB " [Timeout remaining time 647] (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: 16.922304030973464] Failed to read output from testmodel.py, exit status != 0: 12.63005252275616 12.645716552 12.255965516 Calling exit ...