Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",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.01287/0.01287, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.002145/0.002145, allocations: 195.8 kB / 16.67 MB, free: 6.355 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.469/1.469, allocations: 205.1 MB / 222.6 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04834/0.04834, allocations: 9.106 MB / 279 MB, free: 12.1 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.001428/0.001428, allocations: 70.25 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3186, allocations: 48.15 MB / 435.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.1486/0.4673, allocations: 128.8 MB / 0.5508 GB, free: 15.53 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4535/0.9208, allocations: 111.1 MB / 0.6592 GB, free: 308 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007643/0.9216, allocations: 8.469 kB / 0.6593 GB, free: 308 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003771/0.9254, allocations: 1.556 MB / 0.6608 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00435/0.9298, allocations: 1.836 MB / 0.6626 GB, free: 244 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.09765/1.027, allocations: 31.35 MB / 0.6932 GB, free: 6.254 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002797/1.03, allocations: 1.403 MB / 0.6945 GB, free: 5.238 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003314/1.031, allocations: 123.6 kB / 0.6947 GB, free: 5.148 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01928/1.05, allocations: 10.03 MB / 0.7045 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005616/1.051, allocations: 376.8 kB / 0.7048 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.659e-05/1.051, allocations: 44 kB / 0.7049 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07543/1.126, allocations: 35.37 MB / 0.7394 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002565/1.126, allocations: 118.1 kB / 0.7395 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005498/1.127, allocations: 310.7 kB / 0.7398 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05479/1.182, allocations: 14.19 MB / 0.7537 GB, free: 13.52 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/1.182, allocations: 3.984 kB / 0.7537 GB, free: 13.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.894e-06/1.182, allocations: 0 / 0.7537 GB, free: 13.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.653e-05/1.182, allocations: 0 / 0.7537 GB, free: 13.52 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.007606/1.189, allocations: 2.684 MB / 0.7563 GB, free: 10.79 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/1.19, allocations: 8.031 kB / 0.7563 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.697e-05/1.19, allocations: 86.52 kB / 0.7564 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006562/1.19, allocations: 91.62 kB / 0.7565 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005497/1.191, allocations: 345.9 kB / 0.7568 GB, free: 10.22 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.72e-05/1.191, allocations: 28.66 kB / 0.7568 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.874e-05/1.191, allocations: 35.94 kB / 0.7569 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/1.192, allocations: 0.601 MB / 0.7575 GB, free: 9.539 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/1.192, allocations: 0 / 0.7575 GB, free: 9.539 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.17e-05/1.192, allocations: 12 kB / 0.7575 GB, free: 9.527 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/1.192, allocations: 23.11 kB / 0.7575 GB, free: 9.508 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/1.194, allocations: 0.5488 MB / 0.758 GB, free: 8.965 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002636/1.196, allocations: 2.473 MB / 0.7604 GB, free: 6.289 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/1.197, allocations: 499.2 kB / 0.7609 GB, free: 5.793 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005394/1.198, allocations: 330 kB / 0.7612 GB, free: 5.469 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5064/1.704, allocations: 139 MB / 0.897 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/1.705, allocations: 36.84 kB / 0.897 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.085e-06/1.705, allocations: 0 / 0.897 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005459/1.71, allocations: 2.332 MB / 0.8993 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/1.71, allocations: 59.16 kB / 0.8993 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/1.71, allocations: 267 kB / 0.8996 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/1.71, allocations: 33.7 kB / 0.8996 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.251e-05/1.71, allocations: 199.5 kB / 0.8998 GB, free: 213.3 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/1.71, allocations: 274.9 kB / 0.9001 GB, free: 213 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/1.711, allocations: 94.11 kB / 0.9002 GB, free: 212.9 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.874e-05/1.711, allocations: 361.3 kB / 0.9005 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/1.711, allocations: 269.3 kB / 0.9008 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004555/1.712, allocations: 399.2 kB / 0.9011 GB, free: 211.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008672/1.712, allocations: 0.693 MB / 0.9018 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/1.712, allocations: 0 / 0.9018 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00123/1.714, allocations: 0.801 MB / 0.9026 GB, free: 210.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/1.714, allocations: 4 kB / 0.9026 GB, free: 210.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.714, allocations: 7.344 kB / 0.9026 GB, free: 210.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002276/1.714, allocations: 65.61 kB / 0.9027 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006747/1.715, allocations: 140.6 kB / 0.9028 GB, free: 210.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06651/1.781, allocations: 19.68 MB / 0.922 GB, free: 190 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/1.782, allocations: 27.97 kB / 0.9221 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/1.782, allocations: 20 kB / 0.9221 GB, free: 189.9 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.0002522/1.782, allocations: 194.4 kB / 0.9223 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.53e-05/1.782, allocations: 47.66 kB / 0.9223 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/1.784, allocations: 1.71 MB / 0.924 GB, free: 187.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.669e-05/1.784, allocations: 11.98 kB / 0.924 GB, free: 187.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/1.784, allocations: 0 / 0.924 GB, free: 187.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001256/1.785, allocations: 1.296 MB / 0.9252 GB, free: 186.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/1.787, allocations: 1.756 MB / 0.927 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/1.787, allocations: 0 / 0.927 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003057/1.787, allocations: 75.88 kB / 0.927 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002787/1.787, allocations: 170.2 kB / 0.9272 GB, free: 184.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/1.787, allocations: 12 kB / 0.9272 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/1.789, allocations: 2.564 MB / 0.9297 GB, free: 181.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.789, allocations: 0 / 0.9297 GB, free: 181.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/1.79, allocations: 1.382 MB / 0.9311 GB, free: 180.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/1.79, allocations: 123.2 kB / 0.9312 GB, free: 180.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.321e-05/1.791, allocations: 4 kB / 0.9312 GB, free: 180.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/1.791, allocations: 31.97 kB / 0.9312 GB, free: 180.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/1.791, allocations: 43.88 kB / 0.9313 GB, free: 180.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/1.791, allocations: 8 kB / 0.9313 GB, free: 180.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002151/1.791, allocations: 231.1 kB / 0.9315 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.41e-07/1.791, allocations: 0 / 0.9315 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009832/1.801, allocations: 3.569 MB / 0.935 GB, free: 176.7 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.02206/1.823, allocations: 6.299 MB / 0.9411 GB, free: 170.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002418/1.826, allocations: 1.066 MB / 0.9422 GB, free: 169.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/1.826, allocations: 0.625 kB / 0.9422 GB, free: 169.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007584/1.826, allocations: 0.5113 MB / 0.9427 GB, free: 169.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/1.828, allocations: 395.8 kB / 0.943 GB, free: 168.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/1.843, allocations: 6.288 MB / 0.9492 GB, free: 162.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/1.843, allocations: 0.8526 MB / 0.95 GB, free: 161.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004593/1.844, allocations: 131.2 kB / 0.9501 GB, free: 161.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/1.844, allocations: 171.4 kB / 0.9503 GB, free: 161.3 MB / 0.6075 GB Notification: Performance of SimCode: time 1.292e-06/1.844, allocations: 0 / 0.9503 GB, free: 161.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1804/2.024, allocations: 133.2 MB / 1.08 GB, free: 27.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.6/19.62, allocations: 7.844 kB / 1.08 GB, free: 27.89 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel_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_IsobutaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)