Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",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.007707/0.007707, allocations: 102.9 kB / 15.73 MB, free: 6.047 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.001807/0.001807, allocations: 193.5 kB / 16.67 MB, free: 5.961 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.438/1.438, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04592/0.04592, allocations: 9.096 MB / 279 MB, free: 12.08 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.001582/0.001582, allocations: 63.91 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2803, allocations: 48.16 MB / 435.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.1518/0.4321, allocations: 142.2 MB / 0.5638 GB, free: 2.113 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3556/0.7877, allocations: 97.71 MB / 0.6593 GB, free: 280 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004613/0.7882, allocations: 5.656 kB / 0.6593 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002642/0.7909, allocations: 1.365 MB / 0.6606 GB, free: 272 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003437/0.7944, allocations: 1.652 MB / 0.6622 GB, free: 224 kB / 478.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.0757/0.8701, allocations: 29.57 MB / 0.6911 GB, free: 7.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001749/0.8718, allocations: 1.411 MB / 0.6925 GB, free: 6.059 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.8721, allocations: 138.4 kB / 0.6926 GB, free: 5.953 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01511/0.8872, allocations: 9.86 MB / 0.7022 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004878/0.8877, allocations: 373.2 kB / 0.7026 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.8878, allocations: 44 kB / 0.7026 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06479/0.9526, allocations: 36.35 MB / 0.7381 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.00024/0.9529, allocations: 122.2 kB / 0.7382 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004727/0.9534, allocations: 305.2 kB / 0.7385 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05062/1.004, allocations: 14.56 MB / 0.7527 GB, free: 14.6 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/1.004, allocations: 8 kB / 0.7527 GB, free: 14.59 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.754e-06/1.004, allocations: 0 / 0.7527 GB, free: 14.59 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.907e-06/1.004, allocations: 0 / 0.7527 GB, free: 14.59 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.006172/1.01, allocations: 2.665 MB / 0.7554 GB, free: 11.88 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/1.01, allocations: 8.031 kB / 0.7554 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/1.01, allocations: 86.52 kB / 0.7554 GB, free: 11.78 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005031/1.011, allocations: 79.41 kB / 0.7555 GB, free: 11.7 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004945/1.011, allocations: 331.2 kB / 0.7558 GB, free: 11.34 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/1.011, allocations: 32.66 kB / 0.7559 GB, free: 11.31 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.377e-05/1.012, allocations: 35.94 kB / 0.7559 GB, free: 11.28 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/1.013, allocations: 0.5844 MB / 0.7565 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/1.013, allocations: 0 / 0.7565 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.923e-05/1.013, allocations: 19.56 kB / 0.7565 GB, free: 10.66 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/1.013, allocations: 24.45 kB / 0.7565 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/1.014, allocations: 0.513 MB / 0.757 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/1.017, allocations: 2.486 MB / 0.7594 GB, free: 7.434 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/1.018, allocations: 482.9 kB / 0.7599 GB, free: 6.957 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005252/1.018, allocations: 345 kB / 0.7602 GB, free: 6.621 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3585/1.377, allocations: 113.4 MB / 0.871 GB, free: 238.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/1.377, allocations: 41.25 kB / 0.871 GB, free: 238.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 4.749e-06/1.377, allocations: 0 / 0.871 GB, free: 238.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006911/1.384, allocations: 2.434 MB / 0.8734 GB, free: 237.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/1.384, allocations: 55.38 kB / 0.8734 GB, free: 237 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000336/1.384, allocations: 257.6 kB / 0.8737 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/1.384, allocations: 33.67 kB / 0.8737 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/1.384, allocations: 188.4 kB / 0.8739 GB, free: 236.6 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/1.385, allocations: 271.9 kB / 0.8742 GB, free: 236.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/1.385, allocations: 109 kB / 0.8743 GB, free: 236.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001068/1.385, allocations: 349.2 kB / 0.8746 GB, free: 236 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004967/1.385, allocations: 280.9 kB / 0.8749 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006135/1.386, allocations: 404 kB / 0.8753 GB, free: 235.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/1.387, allocations: 0.7069 MB / 0.8759 GB, free: 235.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/1.387, allocations: 2.656 kB / 0.8759 GB, free: 235.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001454/1.389, allocations: 0.8142 MB / 0.8767 GB, free: 234.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.389, allocations: 7.594 kB / 0.8767 GB, free: 234.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/1.389, allocations: 3.75 kB / 0.8768 GB, free: 234.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002922/1.389, allocations: 76.56 kB / 0.8768 GB, free: 234.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005274/1.39, allocations: 118.1 kB / 0.8769 GB, free: 234.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04963/1.439, allocations: 14.68 MB / 0.8913 GB, free: 224.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004476/1.44, allocations: 27.97 kB / 0.8913 GB, free: 224.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.032e-05/1.44, allocations: 18.73 kB / 0.8913 GB, free: 224.7 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002486/1.44, allocations: 198.5 kB / 0.8915 GB, free: 224.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/1.44, allocations: 45.56 kB / 0.8916 GB, free: 224.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/1.442, allocations: 1.716 MB / 0.8932 GB, free: 222.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.778e-05/1.442, allocations: 15.73 kB / 0.8932 GB, free: 222.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/1.442, allocations: 0 / 0.8932 GB, free: 222.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001315/1.443, allocations: 1.265 MB / 0.8945 GB, free: 221.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/1.445, allocations: 1.751 MB / 0.8962 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/1.445, allocations: 0 / 0.8962 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003267/1.446, allocations: 87.81 kB / 0.8963 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002669/1.446, allocations: 108.7 kB / 0.8964 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/1.446, allocations: 11.98 kB / 0.8964 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/1.447, allocations: 2.088 MB / 0.8984 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/1.447, allocations: 0 / 0.8984 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/1.449, allocations: 1.43 MB / 0.8998 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/1.449, allocations: 120.5 kB / 0.8999 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/1.449, allocations: 8 kB / 0.8999 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003393/1.45, allocations: 31.91 kB / 0.9 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.521e-05/1.45, allocations: 47.88 kB / 0.9 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.057e-05/1.45, allocations: 18.55 kB / 0.9 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001912/1.45, allocations: 219.1 kB / 0.9002 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/1.45, allocations: 0 / 0.9002 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006708/1.457, allocations: 2.99 MB / 0.9032 GB, free: 212.6 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01505/1.472, allocations: 5.627 MB / 0.9087 GB, free: 207.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001879/1.474, allocations: 1.052 MB / 0.9097 GB, free: 206.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.474, allocations: 0 / 0.9097 GB, free: 206.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000798/1.474, allocations: 0.558 MB / 0.9102 GB, free: 205.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/1.476, allocations: 402 kB / 0.9106 GB, free: 205.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/1.488, allocations: 6.248 MB / 0.9167 GB, free: 199 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/1.489, allocations: 0.8608 MB / 0.9176 GB, free: 198.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004571/1.489, allocations: 118.5 kB / 0.9177 GB, free: 198 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/1.489, allocations: 175.4 kB / 0.9178 GB, free: 197.8 MB / 0.6075 GB Notification: Performance of SimCode: time 7.51e-07/1.489, allocations: 0 / 0.9178 GB, free: 197.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1548/1.644, allocations: 118.5 MB / 1.034 GB, free: 79.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.42/19.06, allocations: 8.016 kB / 1.034 GB, free: 79.2 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)