Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",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.005221/0.005221, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001259/0.001259, allocations: 190.3 kB / 16.67 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.434/1.434, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04961/0.04961, allocations: 9.105 MB / 279 MB, free: 12.06 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.001437/0.001437, allocations: 67.91 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2793, allocations: 48.16 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.153/0.4324, allocations: 142.2 MB / 0.5638 GB, free: 2.125 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3949/0.8273, allocations: 97.71 MB / 0.6593 GB, free: 284 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007844/0.8281, allocations: 8.062 kB / 0.6593 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003788/0.832, allocations: 1.549 MB / 0.6608 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004606/0.8366, allocations: 1.831 MB / 0.6626 GB, free: 228 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.09918/0.9358, allocations: 31.36 MB / 0.6932 GB, free: 6.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002536/0.9384, allocations: 1.417 MB / 0.6946 GB, free: 5.25 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.9388, allocations: 131.4 kB / 0.6947 GB, free: 5.148 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01904/0.9578, allocations: 10.06 MB / 0.7045 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007388/0.9586, allocations: 378.7 kB / 0.7049 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.9587, allocations: 40 kB / 0.7049 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06348/1.022, allocations: 29.4 MB / 0.7336 GB, free: 0.7617 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003528/1.023, allocations: 129.2 kB / 0.7337 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006947/1.023, allocations: 306.6 kB / 0.734 GB, free: 352 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0473/1.071, allocations: 11.93 MB / 0.7457 GB, free: 5.25 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.882e-06/1.071, allocations: 0 / 0.7457 GB, free: 5.25 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.834e-06/1.071, allocations: 0 / 0.7457 GB, free: 5.25 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.07e-05/1.071, allocations: 0 / 0.7457 GB, free: 5.25 MB / 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.006107/1.077, allocations: 2.234 MB / 0.7479 GB, free: 2.977 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/1.077, allocations: 8.031 kB / 0.7479 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.366e-05/1.077, allocations: 86.52 kB / 0.748 GB, free: 2.875 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005526/1.078, allocations: 83.64 kB / 0.748 GB, free: 2.793 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/1.078, allocations: 341.5 kB / 0.7484 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/1.078, allocations: 32.59 kB / 0.7484 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/1.078, allocations: 35.94 kB / 0.7484 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/1.079, allocations: 0.5816 MB / 0.749 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/1.079, allocations: 3.938 kB / 0.749 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/1.079, allocations: 16 kB / 0.749 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.397e-05/1.079, allocations: 15.28 kB / 0.749 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/1.081, allocations: 0.5103 MB / 0.7495 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002704/1.083, allocations: 2.491 MB / 0.752 GB, free: 14.51 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/1.084, allocations: 499.6 kB / 0.7524 GB, free: 14.01 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005527/1.085, allocations: 326.3 kB / 0.7527 GB, free: 13.69 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4119/1.497, allocations: 113.3 MB / 0.8634 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/1.497, allocations: 40.41 kB / 0.8634 GB, free: 249.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 4.739e-06/1.497, allocations: 1.094 kB / 0.8634 GB, free: 249.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.008133/1.505, allocations: 2.643 MB / 0.866 GB, free: 248.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/1.505, allocations: 58.34 kB / 0.866 GB, free: 248.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/1.505, allocations: 259.5 kB / 0.8663 GB, free: 248.1 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/1.506, allocations: 29.7 kB / 0.8663 GB, free: 248.1 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.022e-05/1.506, allocations: 194 kB / 0.8665 GB, free: 247.9 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/1.506, allocations: 280.6 kB / 0.8668 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/1.506, allocations: 97.67 kB / 0.8669 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.361e-05/1.506, allocations: 354.7 kB / 0.8672 GB, free: 247.3 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004663/1.506, allocations: 278.1 kB / 0.8675 GB, free: 247.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005135/1.507, allocations: 405.4 kB / 0.8679 GB, free: 246.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/1.508, allocations: 0.7127 MB / 0.8685 GB, free: 246.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.508, allocations: 0 / 0.8685 GB, free: 246.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00144/1.51, allocations: 0.8175 MB / 0.8693 GB, free: 246 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/1.51, allocations: 7.75 kB / 0.8694 GB, free: 246 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/1.51, allocations: 7.781 kB / 0.8694 GB, free: 246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007825/1.51, allocations: 145.6 kB / 0.8695 GB, free: 245.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00057/1.511, allocations: 127.4 kB / 0.8696 GB, free: 245.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001736/1.513, allocations: 3.759 MB / 0.8733 GB, free: 242.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/1.513, allocations: 27.39 kB / 0.8733 GB, free: 242 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/1.513, allocations: 22.7 kB / 0.8733 GB, free: 242 MB / 0.6075 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 (47): * Single equations (assignments): 39 * 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, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002208/1.513, allocations: 189.6 kB / 0.8735 GB, free: 241.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/1.514, allocations: 43.56 kB / 0.8736 GB, free: 241.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/1.515, allocations: 1.679 MB / 0.8752 GB, free: 240.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/1.515, allocations: 14.92 kB / 0.8752 GB, free: 240.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/1.515, allocations: 0 / 0.8752 GB, free: 240.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001313/1.517, allocations: 1.246 MB / 0.8764 GB, free: 239.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/1.519, allocations: 1.735 MB / 0.8781 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/1.519, allocations: 3.984 kB / 0.8781 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003345/1.519, allocations: 70.39 kB / 0.8782 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000641/1.52, allocations: 252.5 kB / 0.8784 GB, free: 238.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/1.52, allocations: 7.969 kB / 0.8784 GB, free: 238.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008879/1.521, allocations: 1.777 MB / 0.8802 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.521, allocations: 10.5 kB / 0.8802 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002512/1.523, allocations: 1.461 MB / 0.8816 GB, free: 235.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/1.524, allocations: 115.5 kB / 0.8817 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/1.524, allocations: 10.94 kB / 0.8817 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003956/1.524, allocations: 35.66 kB / 0.8818 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/1.524, allocations: 45.59 kB / 0.8818 GB, free: 235.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/1.524, allocations: 10.06 kB / 0.8818 GB, free: 235.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003114/1.525, allocations: 224.3 kB / 0.882 GB, free: 235.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/1.525, allocations: 3.938 kB / 0.882 GB, free: 235.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007273/1.532, allocations: 2.01 MB / 0.884 GB, free: 235 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.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 (35): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01208/1.544, allocations: 4.53 MB / 0.8884 GB, free: 230.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002107/1.546, allocations: 0.8963 MB / 0.8893 GB, free: 230 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/1.546, allocations: 3.5 kB / 0.8893 GB, free: 230 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007318/1.547, allocations: 439 kB / 0.8897 GB, free: 229.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001959/1.549, allocations: 396.4 kB / 0.8901 GB, free: 229.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009581/1.559, allocations: 5.738 MB / 0.8957 GB, free: 223.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/1.559, allocations: 0.8524 MB / 0.8965 GB, free: 222.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004105/1.559, allocations: 87.25 kB / 0.8966 GB, free: 222.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/1.56, allocations: 163.4 kB / 0.8968 GB, free: 222.3 MB / 0.6075 GB Notification: Performance of SimCode: time 6.52e-07/1.56, allocations: 0 / 0.8968 GB, free: 222.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1114/1.671, allocations: 77.91 MB / 0.9729 GB, free: 144.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.71/16.38, allocations: 17 kB / 0.9729 GB, free: 144.3 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_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_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)