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.001203/0.001203, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001222/0.001222, allocations: 193.4 kB / 16.13 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.424/4.424, allocations: 205.1 MB / 222 MB, free: 4.961 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.2952/0.2952, allocations: 9.088 MB / 278.4 MB, free: 12.62 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.001531/0.001531, allocations: 67.84 kB / 337.4 MB, free: 25.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09414, allocations: 48.16 MB / 385.6 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.0179/0.1121, allocations: 13.97 MB / 399.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02578/0.1379, allocations: 19.25 MB / 418.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000239/0.1383, allocations: 0 / 418.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.1386, allocations: 51.72 kB / 418.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002928/0.1389, allocations: 59.52 kB / 418.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02212/0.1611, allocations: 5.293 MB / 424.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000292/0.1614, allocations: 170.9 kB / 424.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.614e-05/0.1614, allocations: 17.09 kB / 424.4 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.1616, allocations: 51.8 kB / 424.5 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.1618, allocations: 63.7 kB / 424.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.836e-05/0.1618, allocations: 4 kB / 424.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2349/0.3967, allocations: 10.7 MB / 435.2 MB, free: 16.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.231e-05/0.3968, allocations: 18.09 kB / 435.2 MB, free: 16.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.397, allocations: 62.67 kB / 435.3 MB, free: 16.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01884/0.4159, allocations: 6.098 MB / 441.4 MB, free: 16.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.4159, allocations: 0 / 441.4 MB, free: 16.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4159, allocations: 0.75 kB / 441.4 MB, free: 16.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.416, allocations: 0 / 441.4 MB, free: 16.21 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.004936/0.4209, allocations: 1.352 MB / 442.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.421, allocations: 14.66 kB / 442.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.936e-05/0.421, allocations: 45.02 kB / 442.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.406e-05/0.4211, allocations: 13.12 kB / 442.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.024e-05/0.4212, allocations: 179.5 kB / 443 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.4212, allocations: 13.27 kB / 443 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.4212, allocations: 14.34 kB / 443 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000878/0.4221, allocations: 322.6 kB / 443.3 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.4221, allocations: 5.188 kB / 443.3 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.845e-05/0.4222, allocations: 6.094 kB / 443.3 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.4222, allocations: 2.875 kB / 443.4 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009202/0.4231, allocations: 306 kB / 443.7 MB, free: 14.84 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.0007692/0.4239, allocations: 1.046 MB / 444.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008376/0.4247, allocations: 297.8 kB / 445 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.4249, allocations: 87.52 kB / 445.1 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5216/0.9466, allocations: 183.1 MB / 0.6134 GB, free: 145.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.9467, allocations: 36.78 kB / 0.6135 GB, free: 145.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 2.475e-06/0.9467, allocations: 3.938 kB / 0.6135 GB, free: 145.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.001763/0.9484, allocations: 494.6 kB / 0.614 GB, free: 144.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.9485, allocations: 106.8 kB / 0.6141 GB, free: 144.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.235e-05/0.9486, allocations: 153.6 kB / 0.6142 GB, free: 144.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.9486, allocations: 32.45 kB / 0.6142 GB, free: 144.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.435e-05/0.9487, allocations: 113.7 kB / 0.6143 GB, free: 144.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.9487, allocations: 41.72 kB / 0.6144 GB, free: 144.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.9487, allocations: 47.48 kB / 0.6144 GB, free: 144.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.677e-05/0.9488, allocations: 321.4 kB / 0.6147 GB, free: 144.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.949, allocations: 58.56 kB / 0.6148 GB, free: 144.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.9492, allocations: 109.7 kB / 0.6149 GB, free: 143.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003471/0.9495, allocations: 174.3 kB / 0.6151 GB, free: 143.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.9495, allocations: 0.6562 kB / 0.6151 GB, free: 143.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004488/0.95, allocations: 213.5 kB / 0.6153 GB, free: 143.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.95, allocations: 8 kB / 0.6153 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.95, allocations: 0 / 0.6153 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.9501, allocations: 4 kB / 0.6153 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.9502, allocations: 50.06 kB / 0.6153 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.9503, allocations: 7.984 kB / 0.6153 GB, free: 143.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.9504, allocations: 26.69 kB / 0.6154 GB, free: 143.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.9504, allocations: 11.62 kB / 0.6154 GB, free: 143.5 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 6.668e-05/0.9505, allocations: 123.8 kB / 0.6155 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.438e-05/0.9506, allocations: 19.8 kB / 0.6155 GB, free: 143.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000867/0.9515, allocations: 1.138 MB / 0.6166 GB, free: 142.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.9515, allocations: 15.72 kB / 0.6166 GB, free: 142.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.9515, allocations: 3.5 kB / 0.6166 GB, free: 142.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.9515, allocations: 14.67 kB / 0.6167 GB, free: 142.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004507/0.952, allocations: 0.5785 MB / 0.6172 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.952, allocations: 0 / 0.6172 GB, free: 142.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.9521, allocations: 42.8 kB / 0.6173 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.9521, allocations: 0 / 0.6173 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.9522, allocations: 4 kB / 0.6173 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.9522, allocations: 0 / 0.6173 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.9522, allocations: 4 kB / 0.6173 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007061/0.9529, allocations: 0.851 MB / 0.6181 GB, free: 141.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.507e-05/0.953, allocations: 128 kB / 0.6182 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.953, allocations: 10.8 kB / 0.6182 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.9532, allocations: 17.86 kB / 0.6182 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.9533, allocations: 18.17 kB / 0.6183 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.9533, allocations: 9.172 kB / 0.6183 GB, free: 141.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.01e-05/0.9533, allocations: 103.9 kB / 0.6184 GB, free: 141.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9534, allocations: 0 / 0.6184 GB, free: 141.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004099/0.9575, allocations: 1.437 MB / 0.6198 GB, free: 139.9 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.008943/0.9664, allocations: 2.915 MB / 0.6226 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005927/0.967, allocations: 298.7 kB / 0.6229 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.967, allocations: 4 kB / 0.6229 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003335/0.9674, allocations: 281.4 kB / 0.6232 GB, free: 137.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.968, allocations: 54.94 kB / 0.6232 GB, free: 137.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.9714, allocations: 1.426 MB / 0.6246 GB, free: 135.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.9716, allocations: 0.7884 MB / 0.6254 GB, free: 135 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000161/0.9718, allocations: 112.9 kB / 0.6255 GB, free: 134.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.9719, allocations: 90.47 kB / 0.6256 GB, free: 134.8 MB / 462.1 MB Notification: Performance of SimCode: time 2e-07/0.9719, allocations: 0 / 0.6256 GB, free: 134.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07021/1.042, allocations: 54.77 MB / 0.6791 GB, free: 80.16 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/1.042, allocations: 221.6 kB / 0.6793 GB, free: 79.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.044/7.086, allocations: 0 / 0.6793 GB, free: 79.91 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)