Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.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.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",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.001574/0.001574, allocations: 108 kB / 15.6 MB, free: 132 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.002064/0.002064, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.722/1.722, allocations: 205.1 MB / 222.4 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05039/0.05039, allocations: 9.1 MB / 278.9 MB, free: 12.17 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.002595/0.002596, allocations: 67.89 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1277, allocations: 48.15 MB / 386.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.03111/0.1589, allocations: 17.92 MB / 404.2 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02198/0.181, allocations: 16.99 MB / 421.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.1812, allocations: 0 / 421.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008872/0.1821, allocations: 270.6 kB / 421.5 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006322/0.1828, allocations: 218.7 kB / 421.7 MB, free: 5.59 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.2555/0.4383, allocations: 7.075 MB / 428.8 MB, free: 17.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005179/0.4388, allocations: 293.3 kB / 429 MB, free: 17.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.39e-05/0.4389, allocations: 10.31 kB / 429.1 MB, free: 17.47 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.4392, allocations: 122 kB / 429.2 MB, free: 17.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.4394, allocations: 72.23 kB / 429.2 MB, free: 17.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.581e-05/0.4394, allocations: 4 kB / 429.2 MB, free: 17.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02471/0.4641, allocations: 9.625 MB / 438.9 MB, free: 17.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.665e-05/0.4642, allocations: 13.86 kB / 438.9 MB, free: 17.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003495/0.4646, allocations: 86.31 kB / 439 MB, free: 17.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01767/0.4823, allocations: 4.374 MB / 443.3 MB, free: 17.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/0.4823, allocations: 0 / 443.3 MB, free: 17.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4824, allocations: 4.25 kB / 443.3 MB, free: 17.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.4824, allocations: 1.812 kB / 443.4 MB, free: 17.27 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.004018/0.4864, allocations: 0.9925 MB / 444.3 MB, free: 16.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.4865, allocations: 10.72 kB / 444.4 MB, free: 16.55 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.715e-05/0.4865, allocations: 44.92 kB / 444.4 MB, free: 16.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.731e-05/0.4866, allocations: 16.12 kB / 444.4 MB, free: 16.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.4868, allocations: 187.8 kB / 444.6 MB, free: 16.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.4868, allocations: 5.312 kB / 444.6 MB, free: 16.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.4868, allocations: 3.844 kB / 444.6 MB, free: 16.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.4872, allocations: 162.4 kB / 444.8 MB, free: 16.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.4872, allocations: 0 / 444.8 MB, free: 16.22 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.4872, allocations: 3.688 kB / 444.8 MB, free: 16.22 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.4873, allocations: 8.109 kB / 444.8 MB, free: 16.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002736/0.4875, allocations: 111.3 kB / 444.9 MB, free: 16.19 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009493/0.4885, allocations: 0.529 MB / 445.4 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.4888, allocations: 134.5 kB / 445.5 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.489, allocations: 125.2 kB / 445.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1498/0.6389, allocations: 85.21 MB / 0.5184 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.6389, allocations: 38 kB / 0.5185 GB, free: 1.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.815e-06/0.6389, allocations: 0 / 0.5185 GB, free: 1.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008567/0.6398, allocations: 365.9 kB / 0.5188 GB, free: 1.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.6399, allocations: 55.41 kB / 0.5189 GB, free: 1.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.64, allocations: 129.2 kB / 0.519 GB, free: 1.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.64, allocations: 25.7 kB / 0.519 GB, free: 1.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.088e-05/0.6401, allocations: 92.98 kB / 0.5191 GB, free: 1.062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.6403, allocations: 131.2 kB / 0.5192 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.791e-05/0.6404, allocations: 45.59 kB / 0.5193 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.6405, allocations: 326.8 kB / 0.5196 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.6407, allocations: 89.27 kB / 0.5197 GB, free: 484 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.6409, allocations: 121.1 kB / 0.5198 GB, free: 356 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003475/0.6412, allocations: 233.9 kB / 0.52 GB, free: 116 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.6413, allocations: 0 / 0.52 GB, free: 116 kB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004785/0.6417, allocations: 264.5 kB / 0.5203 GB, free: 15.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.6418, allocations: 7.938 kB / 0.5203 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.6418, allocations: 6.516 kB / 0.5203 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.6418, allocations: 0 / 0.5203 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.929e-05/0.6419, allocations: 16.11 kB / 0.5203 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.6419, allocations: 0 / 0.5203 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.6421, allocations: 15.84 kB / 0.5203 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.6421, allocations: 11.98 kB / 0.5203 GB, free: 15.8 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (state_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0001269/0.6422, allocations: 125.2 kB / 0.5204 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.672e-05/0.6423, allocations: 19.66 kB / 0.5205 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000585/0.6429, allocations: 314.7 kB / 0.5208 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.6429, allocations: 7.984 kB / 0.5208 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.6429, allocations: 0 / 0.5208 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.6429, allocations: 3.891 kB / 0.5208 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003568/0.6433, allocations: 267.3 kB / 0.521 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.6433, allocations: 4 kB / 0.521 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.451e-05/0.6434, allocations: 11.98 kB / 0.521 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.6434, allocations: 3.938 kB / 0.521 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.527e-06/0.6434, allocations: 3.469 kB / 0.5211 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.6434, allocations: 0 / 0.5211 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.6434, allocations: 4 kB / 0.5211 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.6439, allocations: 354.4 kB / 0.5214 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.6441, allocations: 112.8 kB / 0.5215 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.692e-05/0.6441, allocations: 3.938 kB / 0.5215 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.6442, allocations: 4.875 kB / 0.5215 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.6443, allocations: 7.984 kB / 0.5215 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.6443, allocations: 4 kB / 0.5215 GB, free: 14.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.851e-05/0.6444, allocations: 98.17 kB / 0.5216 GB, free: 14.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6444, allocations: 1.75 kB / 0.5216 GB, free: 14.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004344/0.6488, allocations: 1.105 MB / 0.5227 GB, free: 13.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.008641/0.6574, allocations: 2.468 MB / 0.5251 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000661/0.6581, allocations: 257.9 kB / 0.5254 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.6581, allocations: 1.859 kB / 0.5254 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.6584, allocations: 152.4 kB / 0.5255 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.6594, allocations: 151.3 kB / 0.5256 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/0.6633, allocations: 0.8283 MB / 0.5265 GB, free: 9.578 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.6637, allocations: 0.7245 MB / 0.5272 GB, free: 8.824 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.6638, allocations: 12 kB / 0.5272 GB, free: 8.812 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.934e-05/0.6639, allocations: 41.83 kB / 0.5272 GB, free: 8.773 MB / 414.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6639, allocations: 0 / 0.5272 GB, free: 8.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08661/0.7506, allocations: 32.41 MB / 0.5589 GB, free: 8.402 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.956/9.706, allocations: 5.438 kB / 0.5589 GB, free: 8.398 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)