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.001362/0.001362, allocations: 108 kB / 15.61 MB, free: 152 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.001516/0.001516, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.304/1.304, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04694/0.04694, allocations: 9.098 MB / 278.9 MB, free: 12.18 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.00163/0.00163, allocations: 67.89 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08273/0.08437, allocations: 48.16 MB / 386.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01614/0.1006, allocations: 13.16 MB / 399.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0202/0.1208, allocations: 17.74 MB / 417.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.1211, allocations: 4 kB / 417.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000253/0.1214, allocations: 47.7 kB / 417.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.1216, allocations: 67.34 kB / 417.3 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01889/0.1405, allocations: 6.713 MB / 424 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.1407, allocations: 163 kB / 424.2 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.834e-05/0.1407, allocations: 17.09 kB / 424.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1409, allocations: 59.78 kB / 424.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.552e-05/0.141, allocations: 59.72 kB / 424.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.141, allocations: 12 kB / 424.3 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1581/0.2991, allocations: 10.55 MB / 434.9 MB, free: 16.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.818e-05/0.2991, allocations: 16.61 kB / 434.9 MB, free: 16.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.2993, allocations: 65.48 kB / 434.9 MB, free: 16.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01345/0.3127, allocations: 6.076 MB / 441 MB, free: 15.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3128, allocations: 0 / 441 MB, free: 15.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3128, allocations: 0 / 441 MB, free: 15.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.3128, allocations: 0 / 441 MB, free: 15.91 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.005029/0.3178, allocations: 1.35 MB / 442.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.3179, allocations: 10.22 kB / 442.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.859e-05/0.3179, allocations: 43.97 kB / 442.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.318, allocations: 15.06 kB / 442.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.3181, allocations: 186.1 kB / 442.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.3181, allocations: 13.31 kB / 442.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.3182, allocations: 14.03 kB / 442.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008582/0.319, allocations: 319.8 kB / 443 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.319, allocations: 1.375 kB / 443 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.3191, allocations: 6.562 kB / 443 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.3191, allocations: 3.25 kB / 443 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009475/0.32, allocations: 312.8 kB / 443.3 MB, free: 14.82 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.0008273/0.3209, allocations: 1.046 MB / 444.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008491/0.3217, allocations: 299 kB / 444.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002243/0.322, allocations: 85 kB / 444.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6017/0.9237, allocations: 183.1 MB / 0.6131 GB, free: 163.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.9238, allocations: 34.56 kB / 0.6131 GB, free: 163.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 2.004e-06/0.9238, allocations: 4 kB / 0.6131 GB, free: 163.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.001838/0.9256, allocations: 495.8 kB / 0.6136 GB, free: 162.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.9257, allocations: 107.1 kB / 0.6137 GB, free: 162.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.912e-05/0.9258, allocations: 162 kB / 0.6139 GB, free: 162.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.9258, allocations: 25.7 kB / 0.6139 GB, free: 162.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.143e-05/0.9259, allocations: 102.3 kB / 0.614 GB, free: 162.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.9259, allocations: 46.62 kB / 0.614 GB, free: 162.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.616e-05/0.9259, allocations: 37.61 kB / 0.6141 GB, free: 162.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.856e-05/0.926, allocations: 322.8 kB / 0.6144 GB, free: 161.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.9262, allocations: 63.94 kB / 0.6144 GB, free: 161.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.9264, allocations: 106.7 kB / 0.6145 GB, free: 161.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/0.9268, allocations: 178.1 kB / 0.6147 GB, free: 161.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.9268, allocations: 0 / 0.6147 GB, free: 161.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004934/0.9273, allocations: 204.4 kB / 0.6149 GB, free: 161.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.9273, allocations: 7.969 kB / 0.6149 GB, free: 161.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.9274, allocations: 8 kB / 0.6149 GB, free: 161.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.9274, allocations: 0 / 0.6149 GB, free: 161.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.9276, allocations: 57.39 kB / 0.615 GB, free: 161.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.9276, allocations: 0 / 0.615 GB, free: 161.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.9277, allocations: 25.12 kB / 0.615 GB, free: 161.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.9278, allocations: 13.5 kB / 0.615 GB, free: 161.2 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.203e-05/0.9278, allocations: 135.6 kB / 0.6151 GB, free: 161 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.9279, allocations: 14.25 kB / 0.6151 GB, free: 161 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008512/0.9288, allocations: 1.141 MB / 0.6163 GB, free: 159.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.9288, allocations: 15.97 kB / 0.6163 GB, free: 159.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.9288, allocations: 7.938 kB / 0.6163 GB, free: 159.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.9288, allocations: 0 / 0.6163 GB, free: 159.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004556/0.9293, allocations: 0.5738 MB / 0.6168 GB, free: 159.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.9293, allocations: 4 kB / 0.6168 GB, free: 159.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.9295, allocations: 31.95 kB / 0.6169 GB, free: 159.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.9295, allocations: 4.5 kB / 0.6169 GB, free: 159.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.9295, allocations: 4 kB / 0.6169 GB, free: 159.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.9295, allocations: 4 kB / 0.6169 GB, free: 159.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.9295, allocations: 6.875 kB / 0.6169 GB, free: 159.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006951/0.9302, allocations: 0.8549 MB / 0.6177 GB, free: 158.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.779e-05/0.9303, allocations: 136.4 kB / 0.6179 GB, free: 158.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.9303, allocations: 11.83 kB / 0.6179 GB, free: 158.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.9305, allocations: 11.98 kB / 0.6179 GB, free: 158.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.9306, allocations: 15.98 kB / 0.6179 GB, free: 158.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.789e-06/0.9306, allocations: 4 kB / 0.6179 GB, free: 158.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.764e-05/0.9307, allocations: 111.2 kB / 0.618 GB, free: 158 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9307, allocations: 2.078 kB / 0.618 GB, free: 158 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004202/0.9349, allocations: 1.434 MB / 0.6194 GB, free: 156.7 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.009383/0.9443, allocations: 2.928 MB / 0.6223 GB, free: 154 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006635/0.945, allocations: 299.1 kB / 0.6226 GB, free: 153.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.945, allocations: 4.062 kB / 0.6226 GB, free: 153.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003189/0.9453, allocations: 280.8 kB / 0.6228 GB, free: 153.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006075/0.9459, allocations: 44.69 kB / 0.6229 GB, free: 153.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003697/0.9496, allocations: 1.265 MB / 0.6241 GB, free: 152.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001618/0.9498, allocations: 0.7884 MB / 0.6249 GB, free: 151.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.95, allocations: 115.7 kB / 0.625 GB, free: 151.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.9501, allocations: 91.41 kB / 0.6251 GB, free: 151.1 MB / 462.1 MB Notification: Performance of SimCode: time 4.11e-07/0.9501, allocations: 0 / 0.6251 GB, free: 151.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06824/1.018, allocations: 55.16 MB / 0.6789 GB, free: 95.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/12.5, allocations: 15.33 kB / 0.679 GB, free: 95.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 & /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)