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.001163/0.001164, allocations: 108 kB / 15.61 MB, free: 152 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.001341/0.001341, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.638/1.638, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04731/0.04731, allocations: 9.092 MB / 278.9 MB, free: 12.16 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.001468/0.001468, allocations: 59.91 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 48.16 MB / 386.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.4353/0.5409, allocations: 142.2 MB / 0.5161 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4893/1.03, allocations: 97.7 MB / 0.6115 GB, free: 312 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001023/1.031, allocations: 7.312 kB / 0.6115 GB, free: 312 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004186/1.036, allocations: 1.363 MB / 0.6128 GB, free: 304 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005061/1.041, allocations: 1.657 MB / 0.6144 GB, free: 280 kB / 446.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.09883/1.14, allocations: 29.53 MB / 0.6433 GB, free: 13.61 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002615/1.142, allocations: 1.412 MB / 0.6447 GB, free: 13.22 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/1.142, allocations: 124 kB / 0.6448 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0185/1.161, allocations: 9.863 MB / 0.6544 GB, free: 9.207 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005783/1.162, allocations: 389.1 kB / 0.6548 GB, free: 8.949 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.641e-05/1.162, allocations: 44 kB / 0.6548 GB, free: 8.906 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07797/1.24, allocations: 34.81 MB / 0.6888 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003332/1.24, allocations: 125 kB / 0.6889 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006878/1.241, allocations: 302.6 kB / 0.6892 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.08089/1.322, allocations: 14.57 MB / 0.7035 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.276e-05/1.322, allocations: 4 kB / 0.7035 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.885e-06/1.322, allocations: 0 / 0.7035 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/1.322, allocations: 0 / 0.7035 GB, free: 0.9062 MB / 494.1 MB 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.01423/1.336, allocations: 2.662 MB / 0.7061 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.305e-05/1.336, allocations: 8.031 kB / 0.7061 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/1.336, allocations: 82.52 kB / 0.7062 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007789/1.337, allocations: 79.41 kB / 0.7062 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000631/1.338, allocations: 336.4 kB / 0.7065 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.171e-05/1.338, allocations: 24.66 kB / 0.7066 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.051e-05/1.338, allocations: 36 kB / 0.7066 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/1.339, allocations: 0.581 MB / 0.7072 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/1.339, allocations: 7.906 kB / 0.7072 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.526e-05/1.339, allocations: 12 kB / 0.7072 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.919e-05/1.34, allocations: 14.89 kB / 0.7072 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/1.341, allocations: 0.5208 MB / 0.7077 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002766/1.344, allocations: 2.491 MB / 0.7101 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/1.345, allocations: 495.6 kB / 0.7106 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005301/1.345, allocations: 338.3 kB / 0.7109 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.391/1.736, allocations: 113.4 MB / 0.8217 GB, free: 296 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/1.736, allocations: 36.81 kB / 0.8217 GB, free: 296 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.166e-06/1.736, allocations: 0 / 0.8217 GB, free: 296 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006726/1.743, allocations: 2.441 MB / 0.8241 GB, free: 294.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/1.743, allocations: 59.34 kB / 0.8242 GB, free: 294.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/1.743, allocations: 254.9 kB / 0.8244 GB, free: 294.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/1.743, allocations: 32.14 kB / 0.8244 GB, free: 294.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/1.744, allocations: 190.9 kB / 0.8246 GB, free: 294.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/1.744, allocations: 269.5 kB / 0.8249 GB, free: 294.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/1.744, allocations: 105 kB / 0.825 GB, free: 294.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.333e-05/1.744, allocations: 350.6 kB / 0.8253 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/1.744, allocations: 278.3 kB / 0.8256 GB, free: 293.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006421/1.745, allocations: 401 kB / 0.826 GB, free: 293.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/1.746, allocations: 0.7064 MB / 0.8267 GB, free: 293.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.746, allocations: 1.406 kB / 0.8267 GB, free: 293.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001795/1.748, allocations: 0.8204 MB / 0.8275 GB, free: 292.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.368e-05/1.748, allocations: 13.03 kB / 0.8275 GB, free: 292.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/1.748, allocations: 2.719 kB / 0.8275 GB, free: 292.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003364/1.749, allocations: 80.55 kB / 0.8276 GB, free: 292.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005394/1.749, allocations: 113.9 kB / 0.8277 GB, free: 292.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04366/1.793, allocations: 13.67 MB / 0.841 GB, free: 284.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000519/1.793, allocations: 35.97 kB / 0.841 GB, free: 284.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.404e-05/1.793, allocations: 19.59 kB / 0.8411 GB, free: 284.6 MB / 0.5919 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.0003023/1.794, allocations: 195 kB / 0.8412 GB, free: 284.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/1.794, allocations: 39.09 kB / 0.8413 GB, free: 284.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/1.796, allocations: 1.725 MB / 0.843 GB, free: 283.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/1.796, allocations: 14.12 kB / 0.843 GB, free: 283.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/1.796, allocations: 3.938 kB / 0.843 GB, free: 283.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001516/1.797, allocations: 1.268 MB / 0.8442 GB, free: 282.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/1.8, allocations: 1.754 MB / 0.8459 GB, free: 281.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/1.8, allocations: 2 kB / 0.8459 GB, free: 281.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/1.8, allocations: 82.69 kB / 0.846 GB, free: 281.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002749/1.8, allocations: 117.3 kB / 0.8461 GB, free: 281.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/1.8, allocations: 10.62 kB / 0.8461 GB, free: 281.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00113/1.801, allocations: 2.104 MB / 0.8482 GB, free: 279 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.801, allocations: 0 / 0.8482 GB, free: 279 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/1.803, allocations: 1.416 MB / 0.8496 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.303e-05/1.803, allocations: 116.6 kB / 0.8497 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.839e-05/1.804, allocations: 11.91 kB / 0.8497 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002938/1.804, allocations: 27.97 kB / 0.8497 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/1.804, allocations: 43.94 kB / 0.8498 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/1.804, allocations: 19.94 kB / 0.8498 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001888/1.804, allocations: 219.1 kB / 0.85 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/1.804, allocations: 0 / 0.85 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008009/1.812, allocations: 2.991 MB / 0.8529 GB, free: 274.9 MB / 0.5919 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.01534/1.828, allocations: 5.633 MB / 0.8584 GB, free: 269.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002144/1.83, allocations: 1.071 MB / 0.8595 GB, free: 268.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/1.83, allocations: 0 / 0.8595 GB, free: 268.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007199/1.83, allocations: 0.5503 MB / 0.86 GB, free: 268.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001871/1.832, allocations: 402.9 kB / 0.8604 GB, free: 267.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/1.845, allocations: 6.259 MB / 0.8665 GB, free: 261.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/1.845, allocations: 0.8647 MB / 0.8673 GB, free: 260.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005188/1.846, allocations: 123.9 kB / 0.8675 GB, free: 260.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/1.846, allocations: 167.4 kB / 0.8676 GB, free: 260.3 MB / 0.5919 GB Notification: Performance of SimCode: time 1.202e-06/1.846, allocations: 0 / 0.8676 GB, free: 260.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.206/2.052, allocations: 118.8 MB / 0.9836 GB, free: 141.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.36/18.41, allocations: 8.328 kB / 0.9836 GB, free: 141.4 MB / 0.5919 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)