Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01195/0.01195, allocations: 96.62 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003498/0.003498, allocations: 193.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04715/0.04715, allocations: 9.1 MB / 279 MB, free: 12.05 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 71.91 kB / 387 MB, free: 8.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3267, allocations: 48.16 MB / 435.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01591/0.3427, allocations: 13.14 MB / 448.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02105/0.3638, allocations: 17.74 MB / 466 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.364, allocations: 1.125 kB / 466 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002341/0.3643, allocations: 57.36 kB / 466.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.3645, allocations: 71.02 kB / 466.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02441/0.3889, allocations: 6.71 MB / 472.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003998/0.3893, allocations: 170.9 kB / 473 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.611e-05/0.3894, allocations: 9.125 kB / 473 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.3896, allocations: 63.77 kB / 473.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.3897, allocations: 63.72 kB / 473.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.3898, allocations: 4 kB / 473.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03983/0.4296, allocations: 10.82 MB / 484 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.649e-05/0.4297, allocations: 15.92 kB / 484 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.4299, allocations: 63.67 kB / 484 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02835/0.4583, allocations: 6.073 MB / 490.1 MB, free: 9.684 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.4584, allocations: 3.938 kB / 490.1 MB, free: 9.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4584, allocations: 0 / 490.1 MB, free: 9.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.4584, allocations: 4 kB / 490.1 MB, free: 9.676 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.007587/0.466, allocations: 1.386 MB / 491.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.646e-05/0.4661, allocations: 12.03 kB / 491.5 MB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.76e-05/0.4662, allocations: 42.73 kB / 491.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.4663, allocations: 20.84 kB / 491.6 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.4666, allocations: 188.2 kB / 491.8 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.4666, allocations: 8.375 kB / 491.8 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.96e-05/0.4667, allocations: 19.94 kB / 491.8 MB, free: 7.902 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.4685, allocations: 326.4 kB / 492.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.4686, allocations: 0 / 492.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.4686, allocations: 4 kB / 492.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.4686, allocations: 8 kB / 492.1 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.4705, allocations: 315.5 kB / 492.4 MB, free: 7.238 MB / 366.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.001549/0.4721, allocations: 1.052 MB / 493.5 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.4738, allocations: 299.6 kB / 493.8 MB, free: 5.754 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003902/0.4742, allocations: 78.53 kB / 493.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6583/1.133, allocations: 184.4 MB / 0.6623 GB, free: 101 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/1.133, allocations: 38.38 kB / 0.6624 GB, free: 100.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 4.438e-06/1.133, allocations: 0 / 0.6624 GB, free: 100.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.001972/1.135, allocations: 489 kB / 0.6628 GB, free: 100.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/1.135, allocations: 112.9 kB / 0.6629 GB, free: 100.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/1.135, allocations: 146.4 kB / 0.6631 GB, free: 100.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/1.135, allocations: 25.7 kB / 0.6631 GB, free: 100.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.637e-05/1.135, allocations: 111.2 kB / 0.6632 GB, free: 100.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.467e-05/1.135, allocations: 52.22 kB / 0.6632 GB, free: 100.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/1.135, allocations: 41.09 kB / 0.6633 GB, free: 100.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.486e-05/1.135, allocations: 322.4 kB / 0.6636 GB, free: 99.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/1.135, allocations: 55.08 kB / 0.6636 GB, free: 99.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/1.136, allocations: 109.9 kB / 0.6637 GB, free: 99.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004029/1.136, allocations: 182.4 kB / 0.6639 GB, free: 99.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.136, allocations: 0 / 0.6639 GB, free: 99.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005107/1.137, allocations: 211.2 kB / 0.6641 GB, free: 99.26 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/1.137, allocations: 7.438 kB / 0.6641 GB, free: 99.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/1.137, allocations: 7.984 kB / 0.6641 GB, free: 99.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/1.137, allocations: 4 kB / 0.6641 GB, free: 99.24 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/1.137, allocations: 47.75 kB / 0.6642 GB, free: 99.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/1.137, allocations: 4.922 kB / 0.6642 GB, free: 99.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/1.137, allocations: 29.41 kB / 0.6642 GB, free: 99.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/1.137, allocations: 8 kB / 0.6642 GB, free: 99.17 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (state_ps.phase,state.phase,state_ph.phase,state_dT.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 8.688e-05/1.137, allocations: 123.3 kB / 0.6643 GB, free: 99.05 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/1.137, allocations: 14.72 kB / 0.6644 GB, free: 99.04 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/1.138, allocations: 1.135 MB / 0.6655 GB, free: 98.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/1.138, allocations: 26.97 kB / 0.6655 GB, free: 98.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/1.138, allocations: 1.094 kB / 0.6655 GB, free: 98.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/1.138, allocations: 0 / 0.6655 GB, free: 98.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005027/1.139, allocations: 0.5819 MB / 0.6661 GB, free: 97.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/1.139, allocations: 4 kB / 0.6661 GB, free: 97.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/1.139, allocations: 34.59 kB / 0.6661 GB, free: 97.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/1.139, allocations: 4 kB / 0.6661 GB, free: 97.83 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/1.139, allocations: 3.5 kB / 0.6661 GB, free: 97.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/1.139, allocations: 7.938 kB / 0.6661 GB, free: 97.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/1.139, allocations: 0 / 0.6661 GB, free: 97.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007938/1.14, allocations: 0.8532 MB / 0.6669 GB, free: 97.14 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/1.14, allocations: 145.7 kB / 0.6671 GB, free: 97 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/1.14, allocations: 0 / 0.6671 GB, free: 97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/1.14, allocations: 19.55 kB / 0.6671 GB, free: 96.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.349e-05/1.14, allocations: 22.28 kB / 0.6671 GB, free: 96.97 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/1.14, allocations: 8 kB / 0.6671 GB, free: 96.96 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.543e-05/1.14, allocations: 115.3 kB / 0.6672 GB, free: 96.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.14, allocations: 0 / 0.6672 GB, free: 96.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003857/1.144, allocations: 1.447 MB / 0.6687 GB, free: 95.62 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.008189/1.152, allocations: 2.924 MB / 0.6715 GB, free: 93.03 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006397/1.153, allocations: 310.7 kB / 0.6718 GB, free: 92.81 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.153, allocations: 0 / 0.6718 GB, free: 92.81 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/1.153, allocations: 278.3 kB / 0.6721 GB, free: 92.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006893/1.154, allocations: 51.78 kB / 0.6721 GB, free: 92.63 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00344/1.158, allocations: 1.282 MB / 0.6734 GB, free: 91.46 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/1.158, allocations: 0.7923 MB / 0.6742 GB, free: 90.64 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000164/1.158, allocations: 109.5 kB / 0.6743 GB, free: 90.54 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/1.158, allocations: 96.2 kB / 0.6743 GB, free: 90.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.573e-06/1.158, allocations: 4 kB / 0.6744 GB, free: 90.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08068/1.239, allocations: 55.04 MB / 0.7281 GB, free: 35.51 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/13.3, allocations: 3.953 kB / 0.7281 GB, free: 35.51 MB / 494.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water_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_SinglePhase_setState_b_Water.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe 2>&1)