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.001219/0.001219, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.395/1.395, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0456/0.0456, allocations: 9.1 MB / 278.9 MB, free: 12.2 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.001444/0.001444, allocations: 75.89 kB / 338.1 MB, free: 25.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07844/0.07989, allocations: 48.15 MB / 386.3 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.016/0.09593, allocations: 13.15 MB / 399.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0196/0.1156, allocations: 17.74 MB / 417.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.1158, allocations: 0 / 417.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002362/0.1161, allocations: 51.66 kB / 417.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.1162, allocations: 63.41 kB / 417.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02049/0.1367, allocations: 6.717 MB / 424 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.137, allocations: 170.9 kB / 424.2 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.492e-05/0.137, allocations: 9.125 kB / 424.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.1372, allocations: 59.78 kB / 424.3 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.1373, allocations: 67.64 kB / 424.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.1373, allocations: 8 kB / 424.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1833/0.3206, allocations: 10.54 MB / 434.9 MB, free: 16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.013e-05/0.3207, allocations: 18.75 kB / 434.9 MB, free: 16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.3209, allocations: 66 kB / 435 MB, free: 16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01836/0.3392, allocations: 6.078 MB / 441 MB, free: 15.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3393, allocations: 1.406 kB / 441 MB, free: 15.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3393, allocations: 0 / 441 MB, free: 15.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.3393, allocations: 0 / 441 MB, free: 15.87 MB / 318.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.005913/0.3452, allocations: 1.35 MB / 442.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3453, allocations: 9.219 kB / 442.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.133e-05/0.3453, allocations: 44.34 kB / 442.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.108e-05/0.3454, allocations: 14.19 kB / 442.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.188e-05/0.3455, allocations: 186.3 kB / 442.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.3455, allocations: 9.297 kB / 442.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.3455, allocations: 15.91 kB / 442.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008798/0.3464, allocations: 324.5 kB / 443 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3464, allocations: 1.406 kB / 443 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.3465, allocations: 5.531 kB / 443 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.3465, allocations: 3.219 kB / 443 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000957/0.3474, allocations: 309.5 kB / 443.3 MB, free: 14.78 MB / 318.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.000775/0.3482, allocations: 1.054 MB / 444.3 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007846/0.349, allocations: 298.1 kB / 444.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.3493, allocations: 82.14 kB / 444.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6194/0.9687, allocations: 183.1 MB / 0.6131 GB, free: 145.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.9688, allocations: 44.44 kB / 0.6131 GB, free: 145.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 2.145e-06/0.9688, allocations: 0 / 0.6131 GB, free: 145.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.00187/0.9707, allocations: 491.5 kB / 0.6136 GB, free: 144.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.9707, allocations: 110.8 kB / 0.6137 GB, free: 144.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.736e-05/0.9708, allocations: 158.4 kB / 0.6139 GB, free: 144.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.9708, allocations: 29.58 kB / 0.6139 GB, free: 144.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.352e-05/0.9709, allocations: 107.1 kB / 0.614 GB, free: 144.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.9709, allocations: 45.77 kB / 0.614 GB, free: 144.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.657e-05/0.971, allocations: 37.33 kB / 0.6141 GB, free: 144.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.695e-05/0.971, allocations: 322.8 kB / 0.6144 GB, free: 144.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.9712, allocations: 59.81 kB / 0.6144 GB, free: 144.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.9714, allocations: 104.9 kB / 0.6145 GB, free: 144 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/0.9718, allocations: 180.4 kB / 0.6147 GB, free: 143.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.9718, allocations: 0 / 0.6147 GB, free: 143.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000485/0.9723, allocations: 216.4 kB / 0.6149 GB, free: 143.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.9724, allocations: 4 kB / 0.6149 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.9724, allocations: 4 kB / 0.6149 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.9724, allocations: 0 / 0.6149 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.9726, allocations: 50.86 kB / 0.615 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.9726, allocations: 0 / 0.615 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.9728, allocations: 27.25 kB / 0.615 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.9728, allocations: 8.156 kB / 0.615 GB, free: 143.6 MB / 462.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 7.687e-05/0.9729, allocations: 135.8 kB / 0.6151 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.59e-05/0.973, allocations: 11.81 kB / 0.6151 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008787/0.9739, allocations: 1.143 MB / 0.6163 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.9739, allocations: 15.34 kB / 0.6163 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.9739, allocations: 5.781 kB / 0.6163 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.9739, allocations: 3.938 kB / 0.6163 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004819/0.9744, allocations: 0.578 MB / 0.6168 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.9744, allocations: 9.578 kB / 0.6169 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.9746, allocations: 30.59 kB / 0.6169 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.9746, allocations: 14.27 kB / 0.6169 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.9746, allocations: 3.188 kB / 0.6169 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.9746, allocations: 4 kB / 0.6169 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.9746, allocations: 0 / 0.6169 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007458/0.9754, allocations: 0.8486 MB / 0.6177 GB, free: 141.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.852e-05/0.9754, allocations: 129.8 kB / 0.6179 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.9755, allocations: 9.219 kB / 0.6179 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.9757, allocations: 18.14 kB / 0.6179 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.423e-05/0.9757, allocations: 20.17 kB / 0.6179 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.9758, allocations: 8.859 kB / 0.6179 GB, free: 141.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.282e-05/0.9758, allocations: 108.5 kB / 0.618 GB, free: 141.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.9758, allocations: 4 kB / 0.618 GB, free: 141.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004509/0.9803, allocations: 1.434 MB / 0.6194 GB, free: 139.9 MB / 462.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.008626/0.989, allocations: 2.919 MB / 0.6223 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007163/0.9897, allocations: 318.8 kB / 0.6226 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.9897, allocations: 0 / 0.6226 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.9901, allocations: 271.3 kB / 0.6228 GB, free: 137.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.9907, allocations: 56.11 kB / 0.6229 GB, free: 137.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00385/0.9946, allocations: 1.254 MB / 0.6241 GB, free: 135.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001951/0.9948, allocations: 0.7921 MB / 0.6249 GB, free: 135.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001803/0.995, allocations: 113.1 kB / 0.625 GB, free: 135 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.9951, allocations: 88.97 kB / 0.6251 GB, free: 135 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.9951, allocations: 0 / 0.6251 GB, free: 135 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0775/1.073, allocations: 55.17 MB / 0.679 GB, free: 79.87 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/12.5, allocations: 4 kB / 0.679 GB, free: 79.87 MB / 462.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)