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.005253/0.005253, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001461/0.001461, allocations: 197.9 kB / 16.67 MB, free: 5.973 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.428/1.428, 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.05231/0.05231, allocations: 9.1 MB / 279 MB, free: 12.07 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.002396/0.002396, allocations: 63.91 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2705, allocations: 48.17 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.1824/0.453, allocations: 142.2 MB / 0.5638 GB, free: 2.109 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3463/0.7993, allocations: 97.71 MB / 0.6593 GB, free: 292 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005823/0.8, allocations: 9.156 kB / 0.6593 GB, free: 292 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00302/0.803, allocations: 1.364 MB / 0.6606 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003424/0.8065, allocations: 1.654 MB / 0.6622 GB, free: 236 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.08122/0.8877, allocations: 29.54 MB / 0.6911 GB, free: 6.891 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002132/0.8899, allocations: 1.419 MB / 0.6924 GB, free: 5.867 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003018/0.8902, allocations: 120.4 kB / 0.6926 GB, free: 5.773 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0179/0.9081, allocations: 9.87 MB / 0.7022 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006098/0.9088, allocations: 378.2 kB / 0.7026 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.395e-05/0.9089, allocations: 40 kB / 0.7026 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05853/0.9674, allocations: 29.4 MB / 0.7313 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.9677, allocations: 114.2 kB / 0.7314 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005243/0.9682, allocations: 311.7 kB / 0.7317 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03622/1.004, allocations: 11.93 MB / 0.7434 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/1.005, allocations: 4 kB / 0.7434 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.667e-06/1.005, allocations: 0 / 0.7434 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.097e-05/1.005, allocations: 3.938 kB / 0.7434 GB, free: 7.59 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.005798/1.01, allocations: 2.23 MB / 0.7456 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/1.01, allocations: 8.031 kB / 0.7456 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/1.011, allocations: 82.52 kB / 0.7456 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005798/1.011, allocations: 84.52 kB / 0.7457 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006366/1.012, allocations: 342.3 kB / 0.746 GB, free: 4.766 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.425e-05/1.012, allocations: 28.66 kB / 0.7461 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.759e-05/1.012, allocations: 39.41 kB / 0.7461 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/1.013, allocations: 0.5854 MB / 0.7467 GB, free: 4.098 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/1.013, allocations: 0 / 0.7467 GB, free: 4.098 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.389e-05/1.013, allocations: 16 kB / 0.7467 GB, free: 4.082 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/1.013, allocations: 15.67 kB / 0.7467 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/1.015, allocations: 0.5103 MB / 0.7472 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003351/1.018, allocations: 2.492 MB / 0.7496 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/1.019, allocations: 0.4955 MB / 0.7501 GB, free: 364 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005924/1.02, allocations: 330.3 kB / 0.7504 GB, free: 32 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3521/1.372, allocations: 113.3 MB / 0.861 GB, free: 251.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/1.372, allocations: 37.66 kB / 0.8611 GB, free: 251.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.665e-06/1.372, allocations: 0 / 0.8611 GB, free: 251.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006228/1.378, allocations: 2.643 MB / 0.8637 GB, free: 250.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.269e-05/1.379, allocations: 59.62 kB / 0.8637 GB, free: 250.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/1.379, allocations: 255.8 kB / 0.864 GB, free: 250.1 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/1.379, allocations: 37.67 kB / 0.864 GB, free: 250 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.547e-05/1.379, allocations: 193 kB / 0.8642 GB, free: 249.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/1.379, allocations: 278.8 kB / 0.8645 GB, free: 249.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/1.379, allocations: 101.7 kB / 0.8645 GB, free: 249.6 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.919e-05/1.379, allocations: 354.7 kB / 0.8649 GB, free: 249.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/1.38, allocations: 279.6 kB / 0.8652 GB, free: 249.1 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004854/1.38, allocations: 408.2 kB / 0.8655 GB, free: 248.8 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009442/1.381, allocations: 0.7084 MB / 0.8662 GB, free: 248.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/1.381, allocations: 0 / 0.8662 GB, free: 248.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001291/1.382, allocations: 0.8163 MB / 0.867 GB, free: 247.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/1.382, allocations: 11.47 kB / 0.867 GB, free: 247.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/1.382, allocations: 0 / 0.867 GB, free: 247.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007708/1.383, allocations: 153.8 kB / 0.8672 GB, free: 247.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005589/1.384, allocations: 118.3 kB / 0.8673 GB, free: 247.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/1.385, allocations: 3.756 MB / 0.871 GB, free: 244 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/1.386, allocations: 30.72 kB / 0.871 GB, free: 244 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.023e-05/1.386, allocations: 15.78 kB / 0.871 GB, free: 244 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.0001834/1.386, allocations: 194.9 kB / 0.8712 GB, free: 243.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/1.386, allocations: 42.88 kB / 0.8712 GB, free: 243.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/1.388, allocations: 1.685 MB / 0.8729 GB, free: 242.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/1.388, allocations: 19.12 kB / 0.8729 GB, free: 242.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/1.388, allocations: 0 / 0.8729 GB, free: 242.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001273/1.389, allocations: 1.248 MB / 0.8741 GB, free: 241.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/1.391, allocations: 1.726 MB / 0.8758 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/1.391, allocations: 0 / 0.8758 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000338/1.391, allocations: 78.56 kB / 0.8759 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005812/1.392, allocations: 254.1 kB / 0.8761 GB, free: 240.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.808e-05/1.392, allocations: 11.91 kB / 0.8761 GB, free: 240.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007075/1.393, allocations: 1.776 MB / 0.8779 GB, free: 238.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.393, allocations: 3.938 kB / 0.8779 GB, free: 238.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/1.395, allocations: 1.46 MB / 0.8793 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.104e-05/1.395, allocations: 124.2 kB / 0.8794 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.019e-05/1.395, allocations: 8.344 kB / 0.8794 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003182/1.395, allocations: 30.19 kB / 0.8795 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.363e-05/1.395, allocations: 42.83 kB / 0.8795 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/1.395, allocations: 17.73 kB / 0.8795 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001775/1.395, allocations: 219.4 kB / 0.8797 GB, free: 237.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.395, allocations: 0 / 0.8797 GB, free: 237.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.004131/1.399, allocations: 2.011 MB / 0.8817 GB, free: 237.2 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.009956/1.409, allocations: 4.534 MB / 0.8861 GB, free: 233.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00191/1.411, allocations: 0.8941 MB / 0.887 GB, free: 232.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.411, allocations: 0 / 0.887 GB, free: 232.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006616/1.412, allocations: 443 kB / 0.8874 GB, free: 231.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/1.414, allocations: 388.3 kB / 0.8878 GB, free: 231.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008226/1.422, allocations: 5.751 MB / 0.8934 GB, free: 225.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002171/1.422, allocations: 0.8443 MB / 0.8942 GB, free: 224.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000366/1.423, allocations: 99.45 kB / 0.8943 GB, free: 224.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/1.423, allocations: 163.4 kB / 0.8945 GB, free: 224.4 MB / 0.6075 GB Notification: Performance of SimCode: time 8.12e-07/1.423, allocations: 0 / 0.8945 GB, free: 224.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1093/1.532, allocations: 77.9 MB / 0.9705 GB, free: 146.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.01/16.54, allocations: 19.53 kB / 0.9706 GB, free: 146.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)