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.006799/0.006799, allocations: 98.34 kB / 15.73 MB, free: 6.008 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.001319/0.001319, allocations: 193.6 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.448/1.448, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04648/0.04648, allocations: 9.1 MB / 279 MB, free: 12.08 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.001478/0.001478, allocations: 67.91 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2437, allocations: 48.15 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.146/0.3898, allocations: 142.2 MB / 0.5638 GB, free: 2.113 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3592/0.749, allocations: 97.7 MB / 0.6593 GB, free: 248 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006518/0.7497, allocations: 6.781 kB / 0.6593 GB, free: 248 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002949/0.7527, allocations: 1.549 MB / 0.6608 GB, free: 240 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003217/0.756, allocations: 1.832 MB / 0.6626 GB, free: 192 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.08063/0.8366, allocations: 31.34 MB / 0.6932 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.8384, allocations: 1.416 MB / 0.6946 GB, free: 5.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002909/0.8387, allocations: 132.4 kB / 0.6947 GB, free: 5.062 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01727/0.856, allocations: 10.05 MB / 0.7045 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00049/0.8565, allocations: 379.8 kB / 0.7049 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.396e-05/0.8566, allocations: 44 kB / 0.7049 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04817/0.9048, allocations: 29.39 MB / 0.7336 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002638/0.9051, allocations: 129.4 kB / 0.7337 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004929/0.9056, allocations: 302.8 kB / 0.734 GB, free: 324 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03756/0.9431, allocations: 11.93 MB / 0.7457 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.9432, allocations: 4 kB / 0.7457 GB, free: 5.215 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.783e-06/0.9432, allocations: 0 / 0.7457 GB, free: 5.215 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.002e-05/0.9432, allocations: 0 / 0.7457 GB, free: 5.215 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.0065/0.9497, allocations: 2.231 MB / 0.7478 GB, free: 2.941 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.9498, allocations: 8.031 kB / 0.7479 GB, free: 2.934 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.9499, allocations: 86.52 kB / 0.7479 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005513/0.9505, allocations: 83.64 kB / 0.748 GB, free: 2.758 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000476/0.951, allocations: 349.5 kB / 0.7484 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.951, allocations: 24.66 kB / 0.7484 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.9511, allocations: 43.41 kB / 0.7484 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.9522, allocations: 0.5816 MB / 0.749 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.9523, allocations: 3.938 kB / 0.749 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.171e-05/0.9523, allocations: 16 kB / 0.749 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.9523, allocations: 12.3 kB / 0.749 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.9535, allocations: 0.5142 MB / 0.7495 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/0.956, allocations: 2.491 MB / 0.752 GB, free: 14.47 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.9571, allocations: 499.2 kB / 0.7524 GB, free: 13.98 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005156/0.9576, allocations: 326.3 kB / 0.7527 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3627/1.32, allocations: 113.3 MB / 0.8634 GB, free: 250.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.121e-05/1.32, allocations: 43.66 kB / 0.8634 GB, free: 250 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.827e-06/1.32, allocations: 0 / 0.8634 GB, free: 250 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006372/1.327, allocations: 2.639 MB / 0.866 GB, free: 248.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/1.327, allocations: 59.22 kB / 0.866 GB, free: 248.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002522/1.327, allocations: 253.3 kB / 0.8663 GB, free: 248.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/1.327, allocations: 33.64 kB / 0.8663 GB, free: 248.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.888e-05/1.327, allocations: 199.9 kB / 0.8665 GB, free: 248.1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/1.327, allocations: 277.9 kB / 0.8668 GB, free: 247.9 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/1.328, allocations: 97.77 kB / 0.8669 GB, free: 247.9 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.193e-05/1.328, allocations: 350.7 kB / 0.8672 GB, free: 247.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004363/1.328, allocations: 282.6 kB / 0.8675 GB, free: 247.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004796/1.329, allocations: 402.9 kB / 0.8678 GB, free: 247.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009335/1.33, allocations: 0.7176 MB / 0.8685 GB, free: 246.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.33, allocations: 0 / 0.8685 GB, free: 246.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001296/1.331, allocations: 0.8245 MB / 0.8693 GB, free: 246.2 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/1.331, allocations: 7.859 kB / 0.8694 GB, free: 246.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/1.331, allocations: 3.688 kB / 0.8694 GB, free: 246.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007592/1.332, allocations: 148.5 kB / 0.8695 GB, free: 246.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005416/1.332, allocations: 114.3 kB / 0.8696 GB, free: 246.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/1.334, allocations: 3.76 MB / 0.8733 GB, free: 242.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003212/1.334, allocations: 29.77 kB / 0.8733 GB, free: 242.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/1.334, allocations: 23.77 kB / 0.8733 GB, free: 242.2 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.0001848/1.334, allocations: 193.4 kB / 0.8735 GB, free: 242.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.345e-05/1.334, allocations: 43.09 kB / 0.8736 GB, free: 242.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/1.336, allocations: 1.673 MB / 0.8752 GB, free: 241 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/1.336, allocations: 15.83 kB / 0.8752 GB, free: 241 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/1.336, allocations: 0 / 0.8752 GB, free: 241 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001187/1.337, allocations: 1.242 MB / 0.8764 GB, free: 240 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00189/1.339, allocations: 1.746 MB / 0.8781 GB, free: 238.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/1.339, allocations: 0 / 0.8781 GB, free: 238.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003383/1.34, allocations: 67.17 kB / 0.8782 GB, free: 238.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005595/1.34, allocations: 258.2 kB / 0.8784 GB, free: 238.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/1.34, allocations: 7.969 kB / 0.8784 GB, free: 238.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007821/1.341, allocations: 1.767 MB / 0.8802 GB, free: 237 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.341, allocations: 15.62 kB / 0.8802 GB, free: 237 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/1.343, allocations: 1.458 MB / 0.8816 GB, free: 236.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.728e-05/1.343, allocations: 117.4 kB / 0.8817 GB, free: 236 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.338e-05/1.343, allocations: 13.5 kB / 0.8817 GB, free: 236 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/1.343, allocations: 29.47 kB / 0.8818 GB, free: 236 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.763e-05/1.344, allocations: 45.84 kB / 0.8818 GB, free: 235.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/1.344, allocations: 14 kB / 0.8818 GB, free: 235.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002479/1.344, allocations: 222.5 kB / 0.882 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.21e-07/1.344, allocations: 1.344 kB / 0.882 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005539/1.349, allocations: 2.017 MB / 0.884 GB, free: 235.1 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.01036/1.36, allocations: 4.535 MB / 0.8884 GB, free: 231 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002007/1.362, allocations: 0.894 MB / 0.8893 GB, free: 230.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.362, allocations: 0 / 0.8893 GB, free: 230.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006822/1.363, allocations: 447.3 kB / 0.8897 GB, free: 229.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/1.365, allocations: 383.7 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.01028/1.375, allocations: 5.749 MB / 0.8957 GB, free: 223.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/1.375, allocations: 0.8521 MB / 0.8965 GB, free: 222.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003887/1.376, allocations: 91.41 kB / 0.8966 GB, free: 222.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/1.376, allocations: 163.4 kB / 0.8968 GB, free: 222.3 MB / 0.6075 GB Notification: Performance of SimCode: time 5.91e-07/1.376, allocations: 0 / 0.8968 GB, free: 222.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1067/1.482, allocations: 77.89 MB / 0.9728 GB, free: 144.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/16.39, allocations: 15.58 kB / 0.9729 GB, free: 144.4 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)