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.000888/0.000888, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.0008572/0.0008572, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04296/0.04296, allocations: 9.064 MB / 279.4 MB, free: 12.25 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.0004852/0.0004852, allocations: 12 kB / 339.2 MB, free: 25.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09676/0.09726, allocations: 49.19 MB / 388.4 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01376/0.1111, allocations: 11.3 MB / 399.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01751/0.1286, allocations: 15.13 MB / 414.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.1288, allocations: 0 / 414.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002129/0.129, allocations: 47.77 kB / 414.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.1292, allocations: 75.81 kB / 414.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0182/0.1474, allocations: 5.168 MB / 420.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.1477, allocations: 131.7 kB / 420.2 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.098e-05/0.1478, allocations: 5.125 kB / 420.2 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.148, allocations: 55.83 kB / 420.3 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.1481, allocations: 67.7 kB / 420.4 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.1481, allocations: 7.938 kB / 420.4 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2127/0.3609, allocations: 10.58 MB / 430.9 MB, free: 17.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.248e-05/0.361, allocations: 17.28 kB / 431 MB, free: 17.51 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.289e-05/0.3611, allocations: 50.45 kB / 431 MB, free: 17.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01101/0.3721, allocations: 4.013 MB / 435 MB, free: 17.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3721, allocations: 3.656 kB / 435 MB, free: 17.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3721, allocations: 0 / 435 MB, free: 17.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.3721, allocations: 1.375 kB / 435 MB, free: 17.32 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.007955/0.3801, allocations: 1.332 MB / 436.4 MB, free: 16.56 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.3802, allocations: 9.625 kB / 436.4 MB, free: 16.56 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.517e-05/0.3802, allocations: 44.28 kB / 436.4 MB, free: 16.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/0.3803, allocations: 16.97 kB / 436.4 MB, free: 16.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.3804, allocations: 178.8 kB / 436.6 MB, free: 16.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.3804, allocations: 9.609 kB / 436.6 MB, free: 16.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.3804, allocations: 10.12 kB / 436.6 MB, free: 16.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009355/0.3814, allocations: 338.6 kB / 437 MB, free: 16.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.3814, allocations: 5 kB / 437 MB, free: 16.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.3814, allocations: 1.188 kB / 437 MB, free: 16.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.3814, allocations: 6.75 kB / 437 MB, free: 16.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009987/0.3824, allocations: 337.3 kB / 437.3 MB, free: 16.23 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.0008292/0.3833, allocations: 1.055 MB / 438.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007812/0.3841, allocations: 310 kB / 438.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6212/1.005, allocations: 184.9 MB / 0.6089 GB, free: 170.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/1.005, allocations: 35.78 kB / 0.6089 GB, free: 170.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 2.134e-06/1.005, allocations: 0 / 0.6089 GB, free: 170.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.001782/1.007, allocations: 0.5147 MB / 0.6094 GB, free: 170 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/1.007, allocations: 112.4 kB / 0.6096 GB, free: 169.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/1.007, allocations: 149.4 kB / 0.6097 GB, free: 169.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/1.007, allocations: 29.7 kB / 0.6097 GB, free: 169.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.319e-05/1.007, allocations: 112.8 kB / 0.6098 GB, free: 169.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.813e-05/1.007, allocations: 41.34 kB / 0.6099 GB, free: 169.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.278e-06/1.007, allocations: 4 kB / 0.6099 GB, free: 169.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.224e-05/1.007, allocations: 330.8 kB / 0.6102 GB, free: 169.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/1.008, allocations: 63.8 kB / 0.6103 GB, free: 169.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/1.008, allocations: 124.6 kB / 0.6104 GB, free: 169 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/1.008, allocations: 75.95 kB / 0.6104 GB, free: 169 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/1.008, allocations: 0 / 0.6104 GB, free: 169 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004614/1.009, allocations: 239.5 kB / 0.6107 GB, free: 168.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/1.009, allocations: 9.219 kB / 0.6107 GB, free: 168.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/1.009, allocations: 1.719 kB / 0.6107 GB, free: 168.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/1.009, allocations: 4 kB / 0.6107 GB, free: 168.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/1.009, allocations: 64.11 kB / 0.6107 GB, free: 168.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/1.009, allocations: 0 / 0.6107 GB, free: 168.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/1.009, allocations: 31.44 kB / 0.6108 GB, free: 168.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/1.009, allocations: 15.98 kB / 0.6108 GB, free: 168.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.068e-05/1.009, allocations: 126.1 kB / 0.6109 GB, free: 168.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.526e-05/1.009, allocations: 19.84 kB / 0.6109 GB, free: 168.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008703/1.01, allocations: 1.134 MB / 0.612 GB, free: 167.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/1.01, allocations: 23.97 kB / 0.6121 GB, free: 167.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.01, allocations: 0 / 0.6121 GB, free: 167.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/1.01, allocations: 0 / 0.6121 GB, free: 167.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004578/1.011, allocations: 0.586 MB / 0.6126 GB, free: 166.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/1.011, allocations: 6.516 kB / 0.6126 GB, free: 166.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/1.011, allocations: 43.91 kB / 0.6127 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/1.011, allocations: 0 / 0.6127 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/1.011, allocations: 8 kB / 0.6127 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/1.011, allocations: 0 / 0.6127 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/1.011, allocations: 4 kB / 0.6127 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007145/1.012, allocations: 0.8935 MB / 0.6136 GB, free: 165.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.369e-05/1.012, allocations: 132.5 kB / 0.6137 GB, free: 165.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/1.012, allocations: 4 kB / 0.6137 GB, free: 165.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/1.012, allocations: 26.66 kB / 0.6137 GB, free: 165.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.367e-05/1.012, allocations: 31.86 kB / 0.6138 GB, free: 165.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/1.012, allocations: 4.875 kB / 0.6138 GB, free: 165.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.87e-05/1.012, allocations: 107.2 kB / 0.6139 GB, free: 165.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.012, allocations: 0 / 0.6139 GB, free: 165.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007036/1.019, allocations: 1.425 MB / 0.6152 GB, free: 164.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01018/1.029, allocations: 3.096 MB / 0.6183 GB, free: 161.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006076/1.03, allocations: 327.2 kB / 0.6186 GB, free: 160.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/1.03, allocations: 0 / 0.6186 GB, free: 160.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003191/1.03, allocations: 296.8 kB / 0.6189 GB, free: 160.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004356/1.031, allocations: 41.19 kB / 0.6189 GB, free: 160.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004014/1.035, allocations: 1.432 MB / 0.6203 GB, free: 159.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000173/1.035, allocations: 0.7964 MB / 0.6211 GB, free: 158.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001672/1.035, allocations: 116.5 kB / 0.6212 GB, free: 158.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/1.035, allocations: 95.23 kB / 0.6213 GB, free: 158.1 MB / 462.1 MB Notification: Performance of SimCode: time 4.71e-07/1.035, allocations: 0 / 0.6213 GB, free: 158.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0715/1.107, allocations: 55.57 MB / 0.6755 GB, free: 102.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/1.107, allocations: 210.9 kB / 0.6758 GB, free: 102.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.951/6.058, allocations: 4 kB / 0.6758 GB, free: 102.3 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) Environment - environmentSimulation: