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.007961/0.007961, allocations: 98.23 kB / 15.73 MB, free: 6.004 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.001904/0.001904, allocations: 192.6 kB / 16.67 MB, free: 5.934 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.545/1.545, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05075/0.05075, allocations: 9.096 MB / 279 MB, free: 12.09 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.002101/0.002101, allocations: 63.91 kB / 387 MB, free: 8.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2508, allocations: 48.16 MB / 435.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01465/0.2655, allocations: 13.15 MB / 448.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02217/0.2877, allocations: 17.74 MB / 466 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.288, allocations: 1.219 kB / 466 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002455/0.2883, allocations: 48.34 kB / 466.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.2884, allocations: 76.14 kB / 466.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02037/0.3088, allocations: 6.702 MB / 472.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000273/0.3091, allocations: 170.9 kB / 473 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.411e-05/0.3091, allocations: 9.125 kB / 473 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.3093, allocations: 59.78 kB / 473.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.3094, allocations: 67.7 kB / 473.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.3094, allocations: 8 kB / 473.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02213/0.3316, allocations: 10.82 MB / 484 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.481e-05/0.3317, allocations: 19.91 kB / 484 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.3318, allocations: 59.69 kB / 484 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01421/0.346, allocations: 6.077 MB / 490.1 MB, free: 9.703 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3461, allocations: 0 / 490.1 MB, free: 9.703 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3461, allocations: 4 kB / 490.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.3461, allocations: 4 kB / 490.1 MB, free: 9.695 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.004138/0.3502, allocations: 1.394 MB / 491.5 MB, free: 8.246 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3503, allocations: 8.031 kB / 491.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.074e-05/0.3504, allocations: 38.75 kB / 491.6 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.658e-05/0.3504, allocations: 16.84 kB / 491.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.3506, allocations: 184.2 kB / 491.8 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.3506, allocations: 8.375 kB / 491.8 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.3506, allocations: 15.94 kB / 491.8 MB, free: 7.934 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009878/0.3516, allocations: 326.4 kB / 492.1 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3517, allocations: 0 / 492.1 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.3517, allocations: 8 kB / 492.1 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.3517, allocations: 4 kB / 492.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.3528, allocations: 315.5 kB / 492.4 MB, free: 7.27 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.001091/0.3539, allocations: 1.059 MB / 493.5 MB, free: 6.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009488/0.3548, allocations: 295.6 kB / 493.8 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.3551, allocations: 86.52 kB / 493.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6445/0.9996, allocations: 184.4 MB / 0.6623 GB, free: 100.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.9997, allocations: 30.56 kB / 0.6623 GB, free: 100.8 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 2.726e-06/0.9997, allocations: 0 / 0.6623 GB, free: 100.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.00188/1.002, allocations: 497 kB / 0.6628 GB, free: 100.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/1.002, allocations: 102.8 kB / 0.6629 GB, free: 100.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/1.002, allocations: 147 kB / 0.6631 GB, free: 100.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/1.002, allocations: 33.27 kB / 0.6631 GB, free: 100.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.513e-05/1.002, allocations: 115.4 kB / 0.6632 GB, free: 100 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/1.002, allocations: 41.84 kB / 0.6632 GB, free: 99.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/1.002, allocations: 44.59 kB / 0.6633 GB, free: 99.94 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.793e-05/1.002, allocations: 318.6 kB / 0.6636 GB, free: 99.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/1.002, allocations: 51.77 kB / 0.6636 GB, free: 99.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/1.002, allocations: 117.2 kB / 0.6637 GB, free: 99.45 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/1.003, allocations: 179.5 kB / 0.6639 GB, free: 99.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.003, allocations: 0 / 0.6639 GB, free: 99.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004838/1.003, allocations: 205 kB / 0.6641 GB, free: 99.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/1.003, allocations: 11.44 kB / 0.6641 GB, free: 99.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/1.003, allocations: 6.453 kB / 0.6641 GB, free: 99.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/1.003, allocations: 4 kB / 0.6641 GB, free: 99.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/1.004, allocations: 47.69 kB / 0.6642 GB, free: 99.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/1.004, allocations: 7.469 kB / 0.6642 GB, free: 99.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/1.004, allocations: 27.41 kB / 0.6642 GB, free: 99.05 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/1.004, allocations: 7.625 kB / 0.6642 GB, free: 99.04 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 7.983e-05/1.004, allocations: 126.1 kB / 0.6643 GB, free: 98.92 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.897e-05/1.004, allocations: 19.38 kB / 0.6644 GB, free: 98.91 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008894/1.005, allocations: 1.133 MB / 0.6655 GB, free: 98.19 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/1.005, allocations: 21.17 kB / 0.6655 GB, free: 98.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/1.005, allocations: 0 / 0.6655 GB, free: 98.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/1.005, allocations: 3.984 kB / 0.6655 GB, free: 98.17 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004535/1.005, allocations: 0.5804 MB / 0.6661 GB, free: 97.74 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.005, allocations: 0 / 0.6661 GB, free: 97.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/1.005, allocations: 42.88 kB / 0.6661 GB, free: 97.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/1.005, allocations: 0 / 0.6661 GB, free: 97.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/1.005, allocations: 4.875 kB / 0.6661 GB, free: 97.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/1.006, allocations: 7.922 kB / 0.6661 GB, free: 97.69 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/1.006, allocations: 0 / 0.6661 GB, free: 97.69 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000724/1.006, allocations: 0.8556 MB / 0.6669 GB, free: 97.01 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.587e-05/1.006, allocations: 135.2 kB / 0.6671 GB, free: 96.88 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/1.006, allocations: 7.344 kB / 0.6671 GB, free: 96.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/1.007, allocations: 27.34 kB / 0.6671 GB, free: 96.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/1.007, allocations: 10.36 kB / 0.6671 GB, free: 96.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/1.007, allocations: 17.16 kB / 0.6671 GB, free: 96.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.757e-05/1.007, allocations: 111 kB / 0.6672 GB, free: 96.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.007, allocations: 0 / 0.6672 GB, free: 96.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003313/1.01, allocations: 1.452 MB / 0.6687 GB, free: 95.48 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.006925/1.017, allocations: 2.928 MB / 0.6715 GB, free: 92.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006563/1.018, allocations: 300.5 kB / 0.6718 GB, free: 92.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.018, allocations: 0 / 0.6718 GB, free: 92.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003477/1.018, allocations: 285.8 kB / 0.6721 GB, free: 92.53 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005998/1.019, allocations: 50.69 kB / 0.6721 GB, free: 92.49 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/1.021, allocations: 1.278 MB / 0.6734 GB, free: 91.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/1.021, allocations: 0.7962 MB / 0.6741 GB, free: 90.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001489/1.021, allocations: 113.9 kB / 0.6743 GB, free: 90.39 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.702e-05/1.021, allocations: 94.34 kB / 0.6743 GB, free: 90.36 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/1.021, allocations: 0 / 0.6743 GB, free: 90.36 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07531/1.097, allocations: 55.03 MB / 0.7281 GB, free: 35.38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/13.16, allocations: 10.36 kB / 0.7281 GB, free: 35.37 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)