Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.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.setSat,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_setSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.setSat,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_setSat",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.001201/0.001201, 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.001215/0.001215, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.326/1.326, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04706/0.04706, allocations: 9.081 MB / 278.8 MB, free: 12.16 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.001554/0.001554, allocations: 72.44 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07326/0.07483, allocations: 48.16 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.setSat): time 0.01971/0.09457, allocations: 19.19 MB / 405.5 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00916/0.1038, allocations: 9.388 MB / 414.9 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.104, allocations: 0 / 414.9 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009793/0.105, allocations: 438 kB / 415.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006056/0.1056, allocations: 258.4 kB / 415.6 MB, free: 11.76 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'. Notification: Performance of NFTyping.typeClassSections: time 0.009837/0.1155, allocations: 4.524 MB / 420.1 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004075/0.1159, allocations: 405.8 kB / 420.5 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.122e-05/0.116, allocations: 20.39 kB / 420.5 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002643/0.1162, allocations: 175.2 kB / 420.7 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.1164, allocations: 99.53 kB / 420.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.1164, allocations: 4 kB / 420.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1471/0.2635, allocations: 7.107 MB / 427.9 MB, free: 20.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.657e-05/0.2636, allocations: 22.02 kB / 427.9 MB, free: 20.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.2638, allocations: 114 kB / 428 MB, free: 20.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007263/0.2711, allocations: 3.28 MB / 431.3 MB, free: 20.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2711, allocations: 0 / 431.3 MB, free: 20.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2711, allocations: 0 / 431.3 MB, free: 20.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2711, allocations: 1.219 kB / 431.3 MB, free: 20.1 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001808/0.2729, allocations: 0.8053 MB / 432.1 MB, free: 19.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.273, allocations: 10.44 kB / 432.1 MB, free: 19.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.357e-05/0.273, allocations: 57.08 kB / 432.2 MB, free: 19.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.2734, allocations: 65.78 kB / 432.2 MB, free: 19.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.634e-05/0.2735, allocations: 184.7 kB / 432.4 MB, free: 19.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.2736, allocations: 2.219 kB / 432.4 MB, free: 19.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.2736, allocations: 8.188 kB / 432.4 MB, free: 19.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003796/0.274, allocations: 228.6 kB / 432.6 MB, free: 19.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.274, allocations: 0.9375 kB / 432.6 MB, free: 19.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.274, allocations: 4.5 kB / 432.6 MB, free: 19.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.274, allocations: 12.06 kB / 432.6 MB, free: 19.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004233/0.2745, allocations: 223.9 kB / 432.9 MB, free: 19.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002965/0.2748, allocations: 363.1 kB / 433.2 MB, free: 19 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009685/0.2757, allocations: 345.6 kB / 433.6 MB, free: 18.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/0.276, allocations: 255.1 kB / 433.8 MB, free: 18.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0458/0.3219, allocations: 28.59 MB / 462.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.3219, allocations: 36.19 kB / 462.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.765e-06/0.3219, allocations: 5.562 kB / 462.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.00108/0.323, allocations: 0.6717 MB / 463.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.3231, allocations: 54.09 kB / 463.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.86e-05/0.3232, allocations: 112.5 kB / 463.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.3232, allocations: 25.7 kB / 463.3 MB, free: 10.06 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.249e-05/0.3232, allocations: 86.67 kB / 463.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.3233, allocations: 227.3 kB / 463.6 MB, free: 9.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-05/0.3234, allocations: 63.38 kB / 463.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3235, allocations: 337.7 kB / 464 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.3238, allocations: 178.3 kB / 464.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.324, allocations: 177.8 kB / 464.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004815/0.3245, allocations: 430 kB / 464.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3245, allocations: 3.562 kB / 464.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0005894/0.3251, allocations: 466.1 kB / 465.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3251, allocations: 6.688 kB / 465.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.3252, allocations: 0 / 465.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3252, allocations: 0 / 465.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.3253, allocations: 38.2 kB / 465.3 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3253, allocations: 3.984 kB / 465.3 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.3255, allocations: 36.78 kB / 465.3 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.3256, allocations: 10.59 kB / 465.3 MB, free: 9.328 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (sat_dv.vap.phase,sat_dv.liq.phase,sat_dl.vap.phase,sat_dl.liq.phase,sat_p.vap.phase,sat_p.liq.phase,sat_T.vap.phase,sat_T.liq.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0001096/0.3257, allocations: 135.8 kB / 465.5 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.3257, allocations: 19.34 kB / 465.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008278/0.3265, allocations: 0.7745 MB / 466.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.3266, allocations: 13.75 kB / 466.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3266, allocations: 0 / 466.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3266, allocations: 0 / 466.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.3269, allocations: 427.4 kB / 466.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3269, allocations: 0 / 466.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.327, allocations: 33.2 kB / 466.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3271, allocations: 0 / 466.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.3271, allocations: 11.44 kB / 466.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3271, allocations: 0 / 466.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3271, allocations: 0 / 466.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005926/0.3277, allocations: 0.5169 MB / 467.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.923e-05/0.3278, allocations: 120.8 kB / 467.4 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.3278, allocations: 7.031 kB / 467.4 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.3279, allocations: 11.27 kB / 467.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.328, allocations: 13.05 kB / 467.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.328, allocations: 4.188 kB / 467.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.377e-05/0.3281, allocations: 92.84 kB / 467.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3281, allocations: 0 / 467.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002402/0.3305, allocations: 0.7052 MB / 468.2 MB, free: 8.406 MB / 334.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: 8 (sat_T.liq.phase,sat_T.vap.phase,sat_p.liq.phase,sat_p.vap.phase,sat_dl.liq.phase,sat_dl.vap.phase,sat_dv.liq.phase,sat_dv.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.00361/0.3341, allocations: 1.984 MB / 470.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006541/0.3348, allocations: 451.7 kB / 470.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3348, allocations: 0 / 470.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002739/0.3351, allocations: 248.9 kB / 470.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.3362, allocations: 243 kB / 471.1 MB, free: 7.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003288/0.3395, allocations: 2.94 MB / 474 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.3398, allocations: 0.7546 MB / 474.8 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003088/0.3401, allocations: 196.8 kB / 475 MB, free: 4.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.548e-05/0.3402, allocations: 66.22 kB / 475 MB, free: 4.863 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3402, allocations: 0 / 475 MB, free: 4.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05702/0.3972, allocations: 29.72 MB / 0.4929 GB, free: 7.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.735/9.132, allocations: 4.844 kB / 0.4929 GB, free: 7.793 MB / 366.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_setSat_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-05 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_setSat.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.pipe 2>&1)