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.001633/0.001633, allocations: 105.4 kB / 15.7 MB, free: 24 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.00218/0.00218, allocations: 199.8 kB / 16.64 MB, free: 6.453 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.686/1.686, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05173/0.05173, allocations: 9.096 MB / 279 MB, free: 12.13 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.001587/0.001587, allocations: 71.89 kB / 338.3 MB, free: 25.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1089, allocations: 48.16 MB / 386.5 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01688/0.1259, allocations: 13.14 MB / 399.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02056/0.1465, allocations: 17.75 MB / 417.4 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002266/0.1468, allocations: 0 / 417.4 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.1472, allocations: 55.64 kB / 417.4 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.1474, allocations: 55.48 kB / 417.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02169/0.169, allocations: 6.714 MB / 424.2 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.1694, allocations: 167 kB / 424.3 MB, free: 3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.805e-05/0.1695, allocations: 17.05 kB / 424.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.1697, allocations: 59.73 kB / 424.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.1698, allocations: 63.75 kB / 424.5 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.1698, allocations: 8 kB / 424.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2675/0.4373, allocations: 10.8 MB / 435.3 MB, free: 16.06 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.184e-05/0.4375, allocations: 20 kB / 435.3 MB, free: 16.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.4376, allocations: 62.47 kB / 435.4 MB, free: 16.06 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02377/0.4614, allocations: 6.061 MB / 441.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.145e-05/0.4615, allocations: 1.812 kB / 441.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4615, allocations: 3.562 kB / 441.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.978e-05/0.4615, allocations: 1.938 kB / 441.4 MB, free: 15.93 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.008029/0.4696, allocations: 1.348 MB / 442.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.4696, allocations: 9.844 kB / 442.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.305e-05/0.4697, allocations: 43.59 kB / 442.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.4698, allocations: 14.66 kB / 442.9 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.4699, allocations: 185.2 kB / 443 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.4699, allocations: 13.44 kB / 443 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.47, allocations: 10.94 kB / 443.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009096/0.4709, allocations: 321.1 kB / 443.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.4709, allocations: 7.859 kB / 443.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.4709, allocations: 3.812 kB / 443.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.471, allocations: 2.688 kB / 443.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009456/0.4719, allocations: 307.5 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.0008625/0.4728, allocations: 1.051 MB / 444.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008578/0.4737, allocations: 301.8 kB / 445 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.4739, allocations: 82.95 kB / 445.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7561/1.23, allocations: 184.3 MB / 0.6147 GB, free: 143.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/1.23, allocations: 45.22 kB / 0.6147 GB, free: 143.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 3.186e-06/1.23, allocations: 1.203 kB / 0.6147 GB, free: 143.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.001975/1.232, allocations: 493.7 kB / 0.6152 GB, free: 143.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/1.232, allocations: 110.7 kB / 0.6153 GB, free: 143.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/1.232, allocations: 155.9 kB / 0.6155 GB, free: 143.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/1.232, allocations: 29.64 kB / 0.6155 GB, free: 143 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.4e-05/1.233, allocations: 105.3 kB / 0.6156 GB, free: 142.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/1.233, allocations: 49.83 kB / 0.6156 GB, free: 142.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-05/1.233, allocations: 37.14 kB / 0.6157 GB, free: 142.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.058e-05/1.233, allocations: 326.8 kB / 0.616 GB, free: 142.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/1.233, allocations: 59.56 kB / 0.616 GB, free: 142.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/1.233, allocations: 107.2 kB / 0.6161 GB, free: 142.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/1.234, allocations: 177.4 kB / 0.6163 GB, free: 142.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/1.234, allocations: 0 / 0.6163 GB, free: 142.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005008/1.234, allocations: 214.1 kB / 0.6165 GB, free: 142.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/1.234, allocations: 4 kB / 0.6165 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/1.234, allocations: 4 kB / 0.6165 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.341e-05/1.234, allocations: 0 / 0.6165 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/1.234, allocations: 51.42 kB / 0.6166 GB, free: 142 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/1.234, allocations: 0 / 0.6166 GB, free: 142 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/1.235, allocations: 31.38 kB / 0.6166 GB, free: 142 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/1.235, allocations: 8 kB / 0.6166 GB, free: 142 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 0.0001062/1.235, allocations: 127.2 kB / 0.6167 GB, free: 141.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.318e-05/1.235, allocations: 15.8 kB / 0.6167 GB, free: 141.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/1.236, allocations: 1.136 MB / 0.6179 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/1.236, allocations: 17.03 kB / 0.6179 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.236, allocations: 4 kB / 0.6179 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/1.236, allocations: 3.938 kB / 0.6179 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005855/1.237, allocations: 0.5845 MB / 0.6184 GB, free: 140.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/1.237, allocations: 4 kB / 0.6185 GB, free: 140.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/1.237, allocations: 36.55 kB / 0.6185 GB, free: 140.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.259e-06/1.237, allocations: 7.469 kB / 0.6185 GB, free: 140.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/1.237, allocations: 0.5 kB / 0.6185 GB, free: 140.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/1.237, allocations: 11.83 kB / 0.6185 GB, free: 140.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.237, allocations: 0 / 0.6185 GB, free: 140.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/1.238, allocations: 0.8505 MB / 0.6193 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/1.238, allocations: 129.8 kB / 0.6195 GB, free: 139.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/1.238, allocations: 6.297 kB / 0.6195 GB, free: 139.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/1.238, allocations: 14.3 kB / 0.6195 GB, free: 139.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.293e-05/1.238, allocations: 22.64 kB / 0.6195 GB, free: 139.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/1.238, allocations: 4.625 kB / 0.6195 GB, free: 139.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.647e-05/1.238, allocations: 112.5 kB / 0.6196 GB, free: 139.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/1.238, allocations: 0 / 0.6196 GB, free: 139.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007603/1.246, allocations: 1.437 MB / 0.621 GB, free: 138.4 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.01447/1.26, allocations: 2.903 MB / 0.6239 GB, free: 135.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008384/1.261, allocations: 305.6 kB / 0.6241 GB, free: 135.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/1.261, allocations: 0 / 0.6241 GB, free: 135.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004595/1.262, allocations: 277.9 kB / 0.6244 GB, free: 135.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007527/1.262, allocations: 66.23 kB / 0.6245 GB, free: 135.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006742/1.269, allocations: 1.244 MB / 0.6257 GB, free: 134.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/1.27, allocations: 0.7921 MB / 0.6265 GB, free: 133.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002259/1.27, allocations: 117.9 kB / 0.6266 GB, free: 133.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/1.27, allocations: 88.84 kB / 0.6267 GB, free: 133.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.282e-06/1.27, allocations: 0 / 0.6267 GB, free: 133.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09837/1.368, allocations: 54.99 MB / 0.6804 GB, free: 78.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/14.24, allocations: 0 / 0.6804 GB, free: 78.52 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)