Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",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.005102/0.005102, allocations: 97.59 kB / 15.73 MB, free: 6.016 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.001054/0.001054, allocations: 192.8 kB / 16.67 MB, free: 5.934 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.446/1.446, allocations: 205.1 MB / 222.6 MB, free: 4.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.08493/0.08493, allocations: 9.088 MB / 279 MB, free: 12.05 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.001387/0.001387, allocations: 71.89 kB / 387 MB, free: 8.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2651, allocations: 48.15 MB / 435.2 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1392/0.4043, allocations: 128.9 MB / 0.5509 GB, free: 15.58 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3933/0.7977, allocations: 111.1 MB / 0.6593 GB, free: 320 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006927/0.7984, allocations: 11.88 kB / 0.6593 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003553/0.802, allocations: 1.559 MB / 0.6609 GB, free: 304 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004004/0.8061, allocations: 1.829 MB / 0.6627 GB, free: 256 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.0858/0.8919, allocations: 31.93 MB / 0.6938 GB, free: 5.676 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002074/0.894, allocations: 1.404 MB / 0.6952 GB, free: 4.664 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.8943, allocations: 122 kB / 0.6953 GB, free: 4.574 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02068/0.915, allocations: 11.88 MB / 0.7069 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006861/0.9157, allocations: 375.2 kB / 0.7073 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.876e-05/0.9158, allocations: 44 kB / 0.7073 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07012/0.986, allocations: 36.98 MB / 0.7434 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002659/0.9863, allocations: 118.9 kB / 0.7435 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005739/0.9869, allocations: 304.9 kB / 0.7438 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05305/1.04, allocations: 14.55 MB / 0.758 GB, free: 9.289 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/1.04, allocations: 0 / 0.758 GB, free: 9.289 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.724e-06/1.04, allocations: 4 kB / 0.7581 GB, free: 9.285 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.348e-06/1.04, allocations: 0 / 0.7581 GB, free: 9.285 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.007557/1.048, allocations: 2.675 MB / 0.7607 GB, free: 6.562 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/1.048, allocations: 8.031 kB / 0.7607 GB, free: 6.555 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.761e-05/1.048, allocations: 86.52 kB / 0.7608 GB, free: 6.461 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006428/1.048, allocations: 91.64 kB / 0.7608 GB, free: 6.371 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005359/1.049, allocations: 344.9 kB / 0.7612 GB, free: 6 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/1.049, allocations: 28.66 kB / 0.7612 GB, free: 5.973 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.974e-05/1.049, allocations: 35.94 kB / 0.7612 GB, free: 5.938 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/1.05, allocations: 0.601 MB / 0.7618 GB, free: 5.316 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/1.05, allocations: 4 kB / 0.7618 GB, free: 5.312 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/1.051, allocations: 16 kB / 0.7618 GB, free: 5.297 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/1.051, allocations: 14.66 kB / 0.7619 GB, free: 5.285 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/1.052, allocations: 0.5454 MB / 0.7624 GB, free: 4.742 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002778/1.055, allocations: 2.469 MB / 0.7648 GB, free: 2.07 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/1.056, allocations: 498.7 kB / 0.7653 GB, free: 1.578 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005463/1.056, allocations: 334 kB / 0.7656 GB, free: 1.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.456/1.512, allocations: 139 MB / 0.9013 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/1.512, allocations: 38.5 kB / 0.9014 GB, free: 212.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.937e-06/1.512, allocations: 0 / 0.9014 GB, free: 212.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.00551/1.518, allocations: 2.341 MB / 0.9036 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/1.518, allocations: 59.16 kB / 0.9037 GB, free: 210.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/1.518, allocations: 262.1 kB / 0.904 GB, free: 210 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/1.518, allocations: 33.7 kB / 0.904 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.514e-05/1.518, allocations: 199.7 kB / 0.9042 GB, free: 209.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/1.518, allocations: 273.1 kB / 0.9044 GB, free: 209.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/1.519, allocations: 98.11 kB / 0.9045 GB, free: 209.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.457e-05/1.519, allocations: 358.8 kB / 0.9049 GB, free: 209.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004229/1.519, allocations: 276.4 kB / 0.9051 GB, free: 208.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004755/1.52, allocations: 391.5 kB / 0.9055 GB, free: 208.4 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000917/1.52, allocations: 0.6966 MB / 0.9062 GB, free: 207.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/1.52, allocations: 0 / 0.9062 GB, free: 207.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001217/1.522, allocations: 0.7958 MB / 0.907 GB, free: 206.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/1.522, allocations: 5.094 kB / 0.907 GB, free: 206.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/1.522, allocations: 10.75 kB / 0.907 GB, free: 206.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000238/1.522, allocations: 65.61 kB / 0.907 GB, free: 206.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006873/1.523, allocations: 135.8 kB / 0.9072 GB, free: 206.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06845/1.591, allocations: 22.97 MB / 0.9296 GB, free: 183.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004712/1.592, allocations: 34.28 kB / 0.9296 GB, free: 183.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/1.592, allocations: 19.94 kB / 0.9297 GB, free: 183.1 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.0002634/1.592, allocations: 190.6 kB / 0.9298 GB, free: 182.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-05/1.592, allocations: 51.47 kB / 0.9299 GB, free: 182.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/1.594, allocations: 1.718 MB / 0.9316 GB, free: 181.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/1.594, allocations: 14.41 kB / 0.9316 GB, free: 181.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/1.594, allocations: 4 kB / 0.9316 GB, free: 181.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001224/1.595, allocations: 1.284 MB / 0.9328 GB, free: 179.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/1.597, allocations: 1.754 MB / 0.9346 GB, free: 177.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/1.597, allocations: 0 / 0.9346 GB, free: 177.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003079/1.597, allocations: 83.88 kB / 0.9346 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002993/1.598, allocations: 162.3 kB / 0.9348 GB, free: 177.6 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/1.598, allocations: 8 kB / 0.9348 GB, free: 177.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/1.599, allocations: 2.572 MB / 0.9373 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.599, allocations: 0 / 0.9373 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/1.601, allocations: 1.386 MB / 0.9387 GB, free: 173.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/1.601, allocations: 123.2 kB / 0.9388 GB, free: 173.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.844e-05/1.601, allocations: 8 kB / 0.9388 GB, free: 173.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003039/1.601, allocations: 23.97 kB / 0.9388 GB, free: 173.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/1.601, allocations: 43.94 kB / 0.9388 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/1.601, allocations: 12 kB / 0.9389 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001943/1.601, allocations: 219.1 kB / 0.9391 GB, free: 173 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/1.601, allocations: 4.062 kB / 0.9391 GB, free: 173 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009602/1.611, allocations: 3.579 MB / 0.9426 GB, free: 169.8 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.02015/1.631, allocations: 6.492 MB / 0.9489 GB, free: 163.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002274/1.634, allocations: 1.064 MB / 0.9499 GB, free: 162.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/1.634, allocations: 3.984 kB / 0.95 GB, free: 162.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007095/1.634, allocations: 0.5072 MB / 0.9504 GB, free: 162.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/1.636, allocations: 402.6 kB / 0.9508 GB, free: 161.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/1.649, allocations: 6.277 MB / 0.957 GB, free: 155.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/1.649, allocations: 0.8526 MB / 0.9578 GB, free: 154.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004711/1.649, allocations: 142.7 kB / 0.9579 GB, free: 154.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/1.65, allocations: 163.4 kB / 0.9581 GB, free: 154.2 MB / 0.6075 GB Notification: Performance of SimCode: time 9.92e-07/1.65, allocations: 4 kB / 0.9581 GB, free: 154.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1747/1.824, allocations: 133.3 MB / 1.088 GB, free: 20.64 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.65/21.47, allocations: 0 / 1.088 GB, free: 20.64 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel_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_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)