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.001877/0.001877, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001638/0.001638, allocations: 218.9 kB / 22.26 MB, free: 5.121 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.516/1.516, allocations: 207.6 MB / 233 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05277/0.05277, allocations: 9.16 MB / 294.4 MB, free: 12.78 MB / 238.1 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) 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(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: 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.002262/0.002262, allocations: 76.05 kB / 411.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07446/0.07672, allocations: 50.75 MB / 461.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02184/0.09856, allocations: 18.02 MB / 479.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01808/0.1166, allocations: 17.04 MB / 496.9 MB, free: 9.539 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.1168, allocations: 4 kB / 496.9 MB, free: 9.535 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007361/0.1175, allocations: 310.6 kB / 497.2 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005352/0.1181, allocations: 230.7 kB / 497.4 MB, free: 9.004 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887: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 master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887: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 master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231: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 master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231: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.01824/0.1363, allocations: 7.545 MB / 0.4931 GB, free: 1.453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.1367, allocations: 286.4 kB / 0.4934 GB, free: 1.172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.896e-05/0.1368, allocations: 9.812 kB / 0.4934 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.137, allocations: 131.4 kB / 0.4935 GB, free: 1.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.1371, allocations: 71.67 kB / 0.4936 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.1371, allocations: 4 kB / 0.4936 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01833/0.1555, allocations: 10.6 MB / 0.504 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.524e-05/0.1555, allocations: 23.84 kB / 0.504 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.1557, allocations: 79.62 kB / 0.5041 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.1673, allocations: 4.399 MB / 0.5084 GB, free: 1.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1673, allocations: 0 / 0.5084 GB, free: 1.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1673, allocations: 7.938 kB / 0.5084 GB, free: 1.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1673, allocations: 0 / 0.5084 GB, free: 1.82 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.002292/0.1696, allocations: 0.9456 MB / 0.5093 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.1696, allocations: 11.98 kB / 0.5093 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.379e-05/0.1697, allocations: 46.55 kB / 0.5093 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.587e-05/0.1697, allocations: 19.86 kB / 0.5094 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.1699, allocations: 132.9 kB / 0.5095 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.1699, allocations: 0 / 0.5095 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.1699, allocations: 8 kB / 0.5095 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.1702, allocations: 168.4 kB / 0.5097 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1702, allocations: 0 / 0.5097 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-06/0.1702, allocations: 0 / 0.5097 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1703, allocations: 11.98 kB / 0.5097 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.1705, allocations: 111.9 kB / 0.5098 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007155/0.1712, allocations: 0.5074 MB / 0.5103 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.1714, allocations: 122.5 kB / 0.5104 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.1716, allocations: 96.81 kB / 0.5105 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2998/0.4715, allocations: 25.67 MB / 0.5355 GB, free: 70.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.4715, allocations: 34.28 kB / 0.5356 GB, free: 70.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.354e-06/0.4715, allocations: 0 / 0.5356 GB, free: 70.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007626/0.4723, allocations: 383.8 kB / 0.5359 GB, free: 70.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.4723, allocations: 52.98 kB / 0.536 GB, free: 70.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.802e-05/0.4724, allocations: 127.2 kB / 0.5361 GB, free: 70.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.4724, allocations: 27.14 kB / 0.5361 GB, free: 69.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.309e-05/0.4724, allocations: 90.53 kB / 0.5362 GB, free: 69.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.386e-05/0.4725, allocations: 136.6 kB / 0.5364 GB, free: 69.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.325e-05/0.4726, allocations: 45.31 kB / 0.5364 GB, free: 69.76 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.4726, allocations: 322.2 kB / 0.5367 GB, free: 69.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.4728, allocations: 89.61 kB / 0.5368 GB, free: 69.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.473, allocations: 128 kB / 0.5369 GB, free: 69.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.4733, allocations: 233.5 kB / 0.5371 GB, free: 69.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4733, allocations: 1.375 kB / 0.5371 GB, free: 69.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004257/0.4737, allocations: 284.3 kB / 0.5374 GB, free: 69.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.4738, allocations: 9 kB / 0.5374 GB, free: 69.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.4738, allocations: 2.281 kB / 0.5374 GB, free: 69.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.4738, allocations: 2.094 kB / 0.5374 GB, free: 69.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.505e-05/0.4739, allocations: 13.77 kB / 0.5374 GB, free: 69.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.4739, allocations: 1.281 kB / 0.5374 GB, free: 69.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.6e-05/0.474, allocations: 27.5 kB / 0.5375 GB, free: 69.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.474, allocations: 4.125 kB / 0.5375 GB, free: 69.02 MB / 398.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 7.614e-05/0.4741, allocations: 126.9 kB / 0.5376 GB, free: 68.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.4741, allocations: 18.59 kB / 0.5376 GB, free: 68.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000508/0.4746, allocations: 314.3 kB / 0.5379 GB, free: 68.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.4746, allocations: 11.3 kB / 0.5379 GB, free: 68.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4746, allocations: 8.719 kB / 0.5379 GB, free: 68.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.4746, allocations: 0 / 0.5379 GB, free: 68.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/0.4748, allocations: 238.2 kB / 0.5382 GB, free: 68.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4749, allocations: 5.188 kB / 0.5382 GB, free: 68.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.694e-05/0.4749, allocations: 9.359 kB / 0.5382 GB, free: 68.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4749, allocations: 0 / 0.5382 GB, free: 68.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.4749, allocations: 5.406 kB / 0.5382 GB, free: 68.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4749, allocations: 3.062 kB / 0.5382 GB, free: 68.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4749, allocations: 0 / 0.5382 GB, free: 68.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.4753, allocations: 371.7 kB / 0.5385 GB, free: 68.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.4753, allocations: 34.28 kB / 0.5386 GB, free: 68.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.4754, allocations: 5.5 kB / 0.5386 GB, free: 68.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.4755, allocations: 10.83 kB / 0.5386 GB, free: 68.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.4755, allocations: 6.891 kB / 0.5386 GB, free: 68.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.4755, allocations: 3.344 kB / 0.5386 GB, free: 68.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.346e-05/0.4756, allocations: 99.77 kB / 0.5387 GB, free: 68.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4756, allocations: 0 / 0.5387 GB, free: 68.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00235/0.4779, allocations: 1.124 MB / 0.5398 GB, free: 67.96 MB / 398.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.004383/0.4823, allocations: 2.487 MB / 0.5422 GB, free: 66.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004436/0.4827, allocations: 240.1 kB / 0.5424 GB, free: 66.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4827, allocations: 0 / 0.5424 GB, free: 66.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.4829, allocations: 129 kB / 0.5426 GB, free: 66.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008255/0.4837, allocations: 155.5 kB / 0.5427 GB, free: 66.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.4854, allocations: 0.8446 MB / 0.5435 GB, free: 65.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.4856, allocations: 0.7281 MB / 0.5442 GB, free: 65.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.872e-05/0.4856, allocations: 11.77 kB / 0.5443 GB, free: 65.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.704e-05/0.4857, allocations: 39.05 kB / 0.5443 GB, free: 65.13 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4857, allocations: 0 / 0.5443 GB, free: 65.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06326/0.5489, allocations: 32.87 MB / 0.5764 GB, free: 33.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.73, allocations: 3.938 kB / 0.5764 GB, free: 33.11 MB / 398.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: 17.43657588199858] Failed to read output from testmodel.py, exit status != 0: 12.858454004999658 12.875456079 12.704754443 Calling exit ...