Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",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.005464/0.005464, allocations: 99.55 kB / 15.73 MB, free: 6.008 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.001288/0.001288, allocations: 199.1 kB / 16.68 MB, free: 5.93 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.389/1.389, allocations: 205.1 MB / 222.6 MB, free: 4.41 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04576/0.04576, allocations: 9.1 MB / 279 MB, free: 11.95 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.001451/0.001451, allocations: 64.47 kB / 387 MB, free: 8.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2557, allocations: 48.16 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.1279/0.3836, allocations: 128.6 MB / 0.5506 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3455/0.7292, allocations: 111.1 MB / 0.659 GB, free: 232 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009064/0.7302, allocations: 8.688 kB / 0.659 GB, free: 232 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00375/0.734, allocations: 1.555 MB / 0.6605 GB, free: 216 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003642/0.7376, allocations: 1.833 MB / 0.6623 GB, free: 168 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.07096/0.8086, allocations: 31.05 MB / 0.6926 GB, free: 6.512 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001701/0.8103, allocations: 1.398 MB / 0.694 GB, free: 5.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.8106, allocations: 120.7 kB / 0.6941 GB, free: 5.41 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0169/0.8275, allocations: 10.69 MB / 0.7046 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004922/0.828, allocations: 377.9 kB / 0.7049 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.495e-05/0.8281, allocations: 40 kB / 0.705 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07185/0.8999, allocations: 34.53 MB / 0.7387 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002237/0.9002, allocations: 121.3 kB / 0.7388 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000596/0.9008, allocations: 305.8 kB / 0.7391 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04676/0.9476, allocations: 13.94 MB / 0.7527 GB, free: 14.32 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.9477, allocations: 0 / 0.7527 GB, free: 14.32 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.884e-06/0.9477, allocations: 0 / 0.7527 GB, free: 14.32 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.19e-05/0.9477, allocations: 0 / 0.7527 GB, free: 14.32 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.008845/0.9565, allocations: 2.571 MB / 0.7552 GB, free: 11.71 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.9566, allocations: 8.031 kB / 0.7552 GB, free: 11.7 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.9568, allocations: 82.52 kB / 0.7553 GB, free: 11.61 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006976/0.9575, allocations: 91.39 kB / 0.7554 GB, free: 11.52 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005858/0.9581, allocations: 329.9 kB / 0.7557 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.246e-05/0.9581, allocations: 40.64 kB / 0.7557 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/0.9582, allocations: 35.94 kB / 0.7558 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.9596, allocations: 0.5963 MB / 0.7563 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.9597, allocations: 4 kB / 0.7564 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.36e-05/0.9597, allocations: 16 kB / 0.7564 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.9598, allocations: 15.5 kB / 0.7564 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.9612, allocations: 0.552 MB / 0.7569 GB, free: 9.895 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002899/0.9641, allocations: 2.457 MB / 0.7593 GB, free: 7.238 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.9653, allocations: 498.3 kB / 0.7598 GB, free: 6.746 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006232/0.9659, allocations: 338.5 kB / 0.7601 GB, free: 6.414 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4309/1.397, allocations: 139 MB / 0.8958 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/1.397, allocations: 41.5 kB / 0.8959 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.966e-06/1.397, allocations: 0 / 0.8959 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005406/1.402, allocations: 2.329 MB / 0.8982 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/1.402, allocations: 59.16 kB / 0.8982 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/1.403, allocations: 268.6 kB / 0.8985 GB, free: 215 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/1.403, allocations: 29.7 kB / 0.8985 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.609e-05/1.403, allocations: 194 kB / 0.8987 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.00012/1.403, allocations: 259.9 kB / 0.8989 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/1.403, allocations: 102.5 kB / 0.899 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.814e-05/1.403, allocations: 357.4 kB / 0.8994 GB, free: 214 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004152/1.404, allocations: 273.3 kB / 0.8996 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004481/1.404, allocations: 392.6 kB / 0.9 GB, free: 213.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008691/1.405, allocations: 0.691 MB / 0.9007 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/1.405, allocations: 4 kB / 0.9007 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001183/1.406, allocations: 0.7971 MB / 0.9015 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/1.406, allocations: 8 kB / 0.9015 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/1.406, allocations: 6.312 kB / 0.9015 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002345/1.406, allocations: 61.61 kB / 0.9015 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006635/1.407, allocations: 146.4 kB / 0.9017 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06685/1.474, allocations: 18.41 MB / 0.9196 GB, free: 192.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004273/1.474, allocations: 31.97 kB / 0.9197 GB, free: 192.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.648e-05/1.474, allocations: 12 kB / 0.9197 GB, free: 192.6 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002637/1.475, allocations: 192.1 kB / 0.9199 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/1.475, allocations: 51.31 kB / 0.9199 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/1.476, allocations: 1.706 MB / 0.9216 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/1.477, allocations: 15.92 kB / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/1.477, allocations: 3.938 kB / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001199/1.478, allocations: 1.296 MB / 0.9229 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/1.48, allocations: 1.743 MB / 0.9246 GB, free: 187.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/1.48, allocations: 4 kB / 0.9246 GB, free: 187.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/1.48, allocations: 81.88 kB / 0.9247 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/1.48, allocations: 174.1 kB / 0.9248 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/1.48, allocations: 8 kB / 0.9248 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/1.481, allocations: 2.564 MB / 0.9273 GB, free: 184.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.481, allocations: 0 / 0.9273 GB, free: 184.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/1.483, allocations: 1.382 MB / 0.9287 GB, free: 182.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/1.483, allocations: 120.5 kB / 0.9288 GB, free: 182.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.413e-05/1.483, allocations: 8 kB / 0.9288 GB, free: 182.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/1.484, allocations: 27.97 kB / 0.9288 GB, free: 182.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/1.484, allocations: 39.94 kB / 0.9289 GB, free: 182.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.628e-05/1.484, allocations: 24.05 kB / 0.9289 GB, free: 182.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001787/1.484, allocations: 219.1 kB / 0.9291 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.484, allocations: 0 / 0.9291 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008478/1.493, allocations: 3.519 MB / 0.9325 GB, free: 179.4 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$cse8.phase,$cse9.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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02192/1.514, allocations: 6.124 MB / 0.9385 GB, free: 173.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002615/1.517, allocations: 1.058 MB / 0.9396 GB, free: 172.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/1.517, allocations: 0 / 0.9396 GB, free: 172.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007467/1.518, allocations: 0.5075 MB / 0.94 GB, free: 172.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/1.52, allocations: 395.1 kB / 0.9404 GB, free: 171.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/1.531, allocations: 6.214 MB / 0.9465 GB, free: 165.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/1.532, allocations: 0.8526 MB / 0.9473 GB, free: 164.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000373/1.532, allocations: 139.1 kB / 0.9475 GB, free: 164.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/1.532, allocations: 167.4 kB / 0.9476 GB, free: 164.3 MB / 0.6075 GB Notification: Performance of SimCode: time 7.51e-07/1.532, allocations: 0 / 0.9476 GB, free: 164.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1888/1.721, allocations: 133.1 MB / 1.078 GB, free: 30.95 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.89/18.61, allocations: 3.781 kB / 1.078 GB, free: 30.95 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe 2>&1)