Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.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.PropaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel",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.001407/0.001407, allocations: 112.5 kB / 15.73 MB, free: 76 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.001387/0.001387, allocations: 189 kB / 16.67 MB, free: 6.582 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.4/1.4, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05191/0.05191, allocations: 9.092 MB / 279 MB, free: 12.09 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.002086/0.002086, allocations: 63.89 kB / 387 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2295, allocations: 48.15 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.1431/0.3726, allocations: 128.8 MB / 0.5508 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3095/0.6822, allocations: 111.1 MB / 0.6593 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004605/0.6827, allocations: 2.656 kB / 0.6593 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002558/0.6853, allocations: 1.369 MB / 0.6606 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002824/0.6881, allocations: 1.653 MB / 0.6622 GB, free: 236 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.07051/0.7587, allocations: 29.5 MB / 0.691 GB, free: 6.965 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001956/0.7606, allocations: 1.407 MB / 0.6924 GB, free: 5.953 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.7609, allocations: 122.8 kB / 0.6925 GB, free: 5.855 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01614/0.777, allocations: 9.735 MB / 0.702 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005518/0.7776, allocations: 375.9 kB / 0.7024 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.91e-05/0.7777, allocations: 40 kB / 0.7024 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06316/0.8409, allocations: 35.26 MB / 0.7369 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.8412, allocations: 119.1 kB / 0.737 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004898/0.8417, allocations: 304.8 kB / 0.7373 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04045/0.8821, allocations: 14.13 MB / 0.7511 GB, free: 212 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.8822, allocations: 4 kB / 0.7511 GB, free: 208 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8822, allocations: 0 / 0.7511 GB, free: 208 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.509e-05/0.8822, allocations: 0 / 0.7511 GB, free: 208 kB / 0.5294 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.006538/0.8887, allocations: 2.679 MB / 0.7537 GB, free: 13.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.8888, allocations: 8.031 kB / 0.7537 GB, free: 13.46 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.8889, allocations: 86.52 kB / 0.7538 GB, free: 13.37 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006025/0.8895, allocations: 91.62 kB / 0.7539 GB, free: 13.28 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004868/0.89, allocations: 338.3 kB / 0.7542 GB, free: 12.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.738e-05/0.8901, allocations: 32.66 kB / 0.7542 GB, free: 12.88 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-05/0.8901, allocations: 35.41 kB / 0.7543 GB, free: 12.85 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.8915, allocations: 0.601 MB / 0.7548 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.8915, allocations: 0 / 0.7548 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.094e-05/0.8916, allocations: 16 kB / 0.7549 GB, free: 12.21 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.8916, allocations: 22.48 kB / 0.7549 GB, free: 12.2 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.893, allocations: 0.5492 MB / 0.7554 GB, free: 11.65 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.8959, allocations: 2.505 MB / 0.7579 GB, free: 8.93 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.8971, allocations: 499.8 kB / 0.7583 GB, free: 8.434 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005916/0.8977, allocations: 330.3 kB / 0.7587 GB, free: 8.109 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4089/1.307, allocations: 139 MB / 0.8944 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/1.307, allocations: 33.53 kB / 0.8944 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.015e-06/1.307, allocations: 0 / 0.8944 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005315/1.312, allocations: 2.332 MB / 0.8967 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/1.312, allocations: 60.31 kB / 0.8968 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/1.312, allocations: 259.8 kB / 0.897 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/1.312, allocations: 32.86 kB / 0.897 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.357e-05/1.312, allocations: 189.9 kB / 0.8972 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/1.312, allocations: 282.2 kB / 0.8975 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/1.313, allocations: 94.06 kB / 0.8976 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.668e-05/1.313, allocations: 358.8 kB / 0.8979 GB, free: 216 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004378/1.313, allocations: 272.7 kB / 0.8982 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004642/1.314, allocations: 383.6 kB / 0.8985 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009059/1.314, allocations: 0.6789 MB / 0.8992 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.314, allocations: 2.594 kB / 0.8992 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001216/1.316, allocations: 0.794 MB / 0.9 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/1.316, allocations: 5.125 kB / 0.9 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.316, allocations: 7.312 kB / 0.9 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000224/1.316, allocations: 61.67 kB / 0.9001 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/1.317, allocations: 126.2 kB / 0.9002 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0659/1.382, allocations: 19.42 MB / 0.9191 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000401/1.383, allocations: 31.94 kB / 0.9192 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/1.383, allocations: 22.36 kB / 0.9192 GB, free: 193.6 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0002266/1.383, allocations: 190.5 kB / 0.9194 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.079e-05/1.383, allocations: 43.72 kB / 0.9194 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/1.385, allocations: 1.682 MB / 0.9211 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/1.385, allocations: 11.98 kB / 0.9211 GB, free: 191.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/1.385, allocations: 2.953 kB / 0.9211 GB, free: 191.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00121/1.386, allocations: 1.248 MB / 0.9223 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001782/1.388, allocations: 1.707 MB / 0.924 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/1.388, allocations: 0 / 0.924 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003254/1.388, allocations: 79.88 kB / 0.924 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000238/1.389, allocations: 101.5 kB / 0.9241 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/1.389, allocations: 15.98 kB / 0.9242 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000819/1.389, allocations: 1.99 MB / 0.9261 GB, free: 186.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/1.389, allocations: 0 / 0.9261 GB, free: 186.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/1.391, allocations: 1.303 MB / 0.9274 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.786e-05/1.391, allocations: 119.5 kB / 0.9275 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/1.391, allocations: 16 kB / 0.9275 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003382/1.392, allocations: 27.97 kB / 0.9275 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.562e-05/1.392, allocations: 35.94 kB / 0.9276 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/1.392, allocations: 16 kB / 0.9276 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001666/1.392, allocations: 223.1 kB / 0.9278 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/1.392, allocations: 0 / 0.9278 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006842/1.399, allocations: 3.569 MB / 0.9313 GB, free: 181.3 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 (39): * Single equations (assignments): 33 * 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 {(1,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.01624/1.415, allocations: 6.294 MB / 0.9374 GB, free: 175.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00206/1.417, allocations: 1.022 MB / 0.9384 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/1.417, allocations: 0 / 0.9384 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006935/1.418, allocations: 0.5069 MB / 0.9389 GB, free: 173.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/1.42, allocations: 400.2 kB / 0.9393 GB, free: 173.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/1.43, allocations: 6.255 MB / 0.9454 GB, free: 167.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/1.43, allocations: 0.8602 MB / 0.9462 GB, free: 166.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003869/1.431, allocations: 137.6 kB / 0.9464 GB, free: 166.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/1.431, allocations: 167.4 kB / 0.9465 GB, free: 165.9 MB / 0.6075 GB Notification: Performance of SimCode: time 6.01e-07/1.431, allocations: 0 / 0.9465 GB, free: 165.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1632/1.594, allocations: 132.9 MB / 1.076 GB, free: 32.88 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.19/19.78, allocations: 11.92 kB / 1.076 GB, free: 32.87 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)