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.007187/0.007187, allocations: 102.8 kB / 15.73 MB, free: 6.492 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.001463/0.001463, allocations: 191.8 kB / 16.67 MB, free: 6.379 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.401/1.401, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04562/0.04562, allocations: 9.1 MB / 279 MB, free: 12.08 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.001645/0.001645, allocations: 63.91 kB / 387 MB, free: 8.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2693, allocations: 48.16 MB / 435.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01443/0.2838, allocations: 13.15 MB / 448.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01987/0.3037, allocations: 17.74 MB / 466 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.3039, allocations: 0.75 kB / 466 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002312/0.3042, allocations: 60.89 kB / 466.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001563/0.3043, allocations: 67.33 kB / 466.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01975/0.3241, allocations: 6.706 MB / 472.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002605/0.3244, allocations: 170.9 kB / 473 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.784e-05/0.3244, allocations: 5.125 kB / 473 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.3246, allocations: 67.77 kB / 473.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.908e-05/0.3247, allocations: 59.72 kB / 473.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.3247, allocations: 8 kB / 473.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02219/0.3469, allocations: 10.81 MB / 483.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.288e-05/0.347, allocations: 19.92 kB / 484 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.3471, allocations: 59.69 kB / 484 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01752/0.3647, allocations: 6.067 MB / 490.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3647, allocations: 0 / 490.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.3647, allocations: 4 kB / 490.1 MB, free: 9.695 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.3647, allocations: 0 / 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.004551/0.3693, allocations: 1.349 MB / 491.4 MB, free: 8.297 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3694, allocations: 8.031 kB / 491.4 MB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.093e-05/0.3694, allocations: 42.75 kB / 491.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.269e-05/0.3695, allocations: 12.84 kB / 491.5 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.3697, allocations: 196 kB / 491.7 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.3697, allocations: 4.375 kB / 491.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.3697, allocations: 11.94 kB / 491.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009651/0.3707, allocations: 334.4 kB / 492 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3707, allocations: 0 / 492 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.3707, allocations: 8 kB / 492 MB, free: 7.621 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.3707, allocations: 0 / 492 MB, free: 7.621 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.3718, allocations: 315.5 kB / 492.4 MB, free: 7.312 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.001052/0.3728, allocations: 1.063 MB / 493.4 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008974/0.3737, allocations: 291.6 kB / 493.7 MB, free: 5.824 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.374, allocations: 90.52 kB / 493.8 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6403/1.014, allocations: 184.3 MB / 0.6622 GB, free: 101.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/1.014, allocations: 33.22 kB / 0.6622 GB, free: 101.1 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 3.317e-06/1.014, allocations: 4 kB / 0.6623 GB, free: 101.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.001961/1.016, allocations: 492.2 kB / 0.6627 GB, free: 100.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/1.016, allocations: 106.8 kB / 0.6628 GB, free: 100.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/1.017, allocations: 146.6 kB / 0.663 GB, free: 100.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/1.017, allocations: 36.89 kB / 0.663 GB, free: 100.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.28e-05/1.017, allocations: 108.5 kB / 0.6631 GB, free: 100.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/1.017, allocations: 41.25 kB / 0.6631 GB, free: 100.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.666e-05/1.017, allocations: 40.23 kB / 0.6632 GB, free: 100.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.699e-05/1.017, allocations: 322.2 kB / 0.6635 GB, free: 99.94 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/1.017, allocations: 55.14 kB / 0.6635 GB, free: 99.89 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/1.017, allocations: 110.3 kB / 0.6636 GB, free: 99.78 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/1.018, allocations: 180.4 kB / 0.6638 GB, free: 99.61 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/1.018, allocations: 4 kB / 0.6638 GB, free: 99.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00047/1.018, allocations: 210.1 kB / 0.664 GB, free: 99.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/1.018, allocations: 4 kB / 0.664 GB, free: 99.44 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/1.018, allocations: 8.219 kB / 0.664 GB, free: 99.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/1.018, allocations: 0 / 0.664 GB, free: 99.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/1.018, allocations: 51.19 kB / 0.6641 GB, free: 99.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/1.018, allocations: 0 / 0.6641 GB, free: 99.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/1.019, allocations: 29.78 kB / 0.6641 GB, free: 99.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/1.019, allocations: 8 kB / 0.6641 GB, free: 99.36 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 9.09e-05/1.019, allocations: 128.7 kB / 0.6642 GB, free: 99.24 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.968e-05/1.019, allocations: 20.52 kB / 0.6643 GB, free: 99.22 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/1.02, allocations: 1.136 MB / 0.6654 GB, free: 98.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/1.02, allocations: 23.06 kB / 0.6654 GB, free: 98.49 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/1.02, allocations: 4 kB / 0.6654 GB, free: 98.49 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/1.02, allocations: 3.984 kB / 0.6654 GB, free: 98.48 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000564/1.02, allocations: 0.5765 MB / 0.666 GB, free: 98.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/1.02, allocations: 0 / 0.666 GB, free: 98.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/1.021, allocations: 31.97 kB / 0.666 GB, free: 98.01 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/1.021, allocations: 4 kB / 0.666 GB, free: 98.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/1.021, allocations: 3.562 kB / 0.666 GB, free: 98.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.974e-06/1.021, allocations: 15.3 kB / 0.666 GB, free: 98 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/1.021, allocations: 0 / 0.666 GB, free: 98 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007345/1.021, allocations: 0.8539 MB / 0.6668 GB, free: 97.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.043e-05/1.021, allocations: 128.1 kB / 0.667 GB, free: 97.18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/1.022, allocations: 7.688 kB / 0.667 GB, free: 97.17 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/1.022, allocations: 25.12 kB / 0.667 GB, free: 97.15 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.767e-05/1.022, allocations: 19.02 kB / 0.667 GB, free: 97.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/1.022, allocations: 4 kB / 0.667 GB, free: 97.13 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.38e-05/1.022, allocations: 115.1 kB / 0.6671 GB, free: 97.03 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.022, allocations: 5.422 kB / 0.6671 GB, free: 97.03 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003975/1.026, allocations: 1.43 MB / 0.6685 GB, free: 95.78 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.007411/1.033, allocations: 2.905 MB / 0.6714 GB, free: 93.32 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005898/1.034, allocations: 308.2 kB / 0.6717 GB, free: 93.11 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.034, allocations: 0 / 0.6717 GB, free: 93.11 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003199/1.034, allocations: 279.1 kB / 0.6719 GB, free: 92.96 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006121/1.035, allocations: 51.58 kB / 0.672 GB, free: 92.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003454/1.038, allocations: 1.261 MB / 0.6732 GB, free: 91.78 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/1.039, allocations: 0.7884 MB / 0.674 GB, free: 90.96 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/1.039, allocations: 116.9 kB / 0.6741 GB, free: 90.85 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/1.039, allocations: 94.59 kB / 0.6742 GB, free: 90.82 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/1.039, allocations: 0 / 0.6742 GB, free: 90.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07937/1.118, allocations: 55.13 MB / 0.728 GB, free: 35.73 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/13.45, allocations: 7.938 kB / 0.728 GB, free: 35.73 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)