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.005718/0.005718, allocations: 101 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.001533/0.001533, allocations: 201.5 kB / 16.68 MB, free: 5.965 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.352/1.352, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05011/0.05011, allocations: 9.1 MB / 279 MB, free: 12.07 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.002117/0.002117, allocations: 67.91 kB / 387 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2333, allocations: 48.16 MB / 435.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01327/0.2466, allocations: 13.15 MB / 448.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02157/0.2682, allocations: 17.74 MB / 466 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.2684, allocations: 0.9062 kB / 466 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002363/0.2686, allocations: 52.33 kB / 466.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001592/0.2688, allocations: 67.58 kB / 466.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01851/0.2873, allocations: 6.711 MB / 472.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00027/0.2876, allocations: 167 kB / 473 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.597e-05/0.2877, allocations: 9.062 kB / 473 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001514/0.2878, allocations: 59.83 kB / 473.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.288, allocations: 71.66 kB / 473.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.288, allocations: 4 kB / 473.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02162/0.3096, allocations: 10.82 MB / 484 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.169e-05/0.3097, allocations: 11.94 kB / 484 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.3098, allocations: 75.59 kB / 484 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01397/0.3238, allocations: 6.073 MB / 490.1 MB, free: 9.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3238, allocations: 0 / 490.1 MB, free: 9.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3238, allocations: 8 kB / 490.1 MB, free: 9.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.3239, allocations: 0 / 490.1 MB, free: 9.664 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.003734/0.3276, allocations: 1.382 MB / 491.5 MB, free: 8.227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3276, allocations: 12.02 kB / 491.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.758e-05/0.3277, allocations: 38.75 kB / 491.6 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.3278, allocations: 20.84 kB / 491.6 MB, free: 8.148 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.3279, allocations: 195.9 kB / 491.8 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.328, allocations: 8.375 kB / 491.8 MB, free: 7.914 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.328, allocations: 15.94 kB / 491.8 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009802/0.329, allocations: 326.4 kB / 492.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.329, allocations: 0 / 492.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.329, allocations: 8 kB / 492.1 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.329, allocations: 8 kB / 492.1 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.3301, allocations: 303.6 kB / 492.4 MB, free: 7.242 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.001041/0.3311, allocations: 1.059 MB / 493.5 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009304/0.3321, allocations: 295.5 kB / 493.8 MB, free: 5.754 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.3323, allocations: 90.5 kB / 493.9 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6339/0.9663, allocations: 184.3 MB / 0.6623 GB, free: 101 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.9664, allocations: 37.94 kB / 0.6623 GB, free: 101 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.983e-06/0.9664, allocations: 2.516 kB / 0.6623 GB, free: 101 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.001758/0.9681, allocations: 489.8 kB / 0.6628 GB, free: 100.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.9682, allocations: 106.8 kB / 0.6629 GB, free: 100.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.869e-05/0.9683, allocations: 151 kB / 0.6631 GB, free: 100.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.9683, allocations: 32.98 kB / 0.6631 GB, free: 100.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.386e-05/0.9684, allocations: 117.5 kB / 0.6632 GB, free: 100.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.9684, allocations: 39.98 kB / 0.6632 GB, free: 100.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-05/0.9685, allocations: 44.84 kB / 0.6633 GB, free: 100.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.9685, allocations: 325.8 kB / 0.6636 GB, free: 99.78 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.9687, allocations: 51.08 kB / 0.6636 GB, free: 99.74 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.9689, allocations: 117.2 kB / 0.6638 GB, free: 99.61 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.9693, allocations: 172.5 kB / 0.6639 GB, free: 99.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.9693, allocations: 4 kB / 0.6639 GB, free: 99.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004727/0.9698, allocations: 210.2 kB / 0.6641 GB, free: 99.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.9698, allocations: 11.59 kB / 0.6641 GB, free: 99.28 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.9698, allocations: 0 / 0.6641 GB, free: 99.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.9699, allocations: 4 kB / 0.6641 GB, free: 99.28 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.9701, allocations: 47.47 kB / 0.6642 GB, free: 99.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.9701, allocations: 4 kB / 0.6642 GB, free: 99.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.9702, allocations: 33.33 kB / 0.6642 GB, free: 99.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.9702, allocations: 4 kB / 0.6642 GB, free: 99.2 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 6.774e-05/0.9703, allocations: 126.5 kB / 0.6643 GB, free: 99.08 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.716e-05/0.9704, allocations: 17.55 kB / 0.6644 GB, free: 99.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000843/0.9712, allocations: 1.132 MB / 0.6655 GB, free: 98.36 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.9713, allocations: 23.47 kB / 0.6655 GB, free: 98.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.9713, allocations: 0 / 0.6655 GB, free: 98.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.9713, allocations: 3.984 kB / 0.6655 GB, free: 98.33 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004452/0.9717, allocations: 0.5828 MB / 0.6661 GB, free: 97.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.9717, allocations: 0 / 0.6661 GB, free: 97.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.9719, allocations: 39.34 kB / 0.6661 GB, free: 97.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.9719, allocations: 0 / 0.6661 GB, free: 97.86 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.9719, allocations: 7.75 kB / 0.6661 GB, free: 97.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.9719, allocations: 8.484 kB / 0.6661 GB, free: 97.85 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.9719, allocations: 2.625 kB / 0.6661 GB, free: 97.85 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007127/0.9726, allocations: 0.8502 MB / 0.6669 GB, free: 97.17 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.9727, allocations: 136.2 kB / 0.6671 GB, free: 97.04 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.9727, allocations: 3.625 kB / 0.6671 GB, free: 97.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.973, allocations: 28.88 kB / 0.6671 GB, free: 97.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.973, allocations: 17.09 kB / 0.6671 GB, free: 97 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.973, allocations: 7.688 kB / 0.6671 GB, free: 97 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.484e-05/0.9731, allocations: 114.9 kB / 0.6672 GB, free: 96.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9731, allocations: 0 / 0.6672 GB, free: 96.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003012/0.9761, allocations: 1.453 MB / 0.6687 GB, free: 95.65 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.005934/0.982, allocations: 2.929 MB / 0.6715 GB, free: 93.05 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005646/0.9826, allocations: 306 kB / 0.6718 GB, free: 92.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9826, allocations: 0 / 0.6718 GB, free: 92.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.9829, allocations: 281.8 kB / 0.6721 GB, free: 92.69 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005656/0.9835, allocations: 45.25 kB / 0.6721 GB, free: 92.66 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.9855, allocations: 1.281 MB / 0.6734 GB, free: 91.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.9856, allocations: 0.7884 MB / 0.6741 GB, free: 90.67 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.9858, allocations: 114.2 kB / 0.6743 GB, free: 90.56 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.706e-05/0.9859, allocations: 94.91 kB / 0.6743 GB, free: 90.53 MB / 494.1 MB Notification: Performance of SimCode: time 4.11e-07/0.9859, allocations: 0 / 0.6743 GB, free: 90.53 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07827/1.064, allocations: 55.02 MB / 0.7281 GB, free: 35.54 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/14.3, allocations: 7.797 kB / 0.7281 GB, free: 35.54 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe 2>&1)