Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.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_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",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.00119/0.00119, 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.001454/0.001454, allocations: 195.3 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.709/1.709, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04822/0.04822, allocations: 9.095 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.001441/0.001441, allocations: 59.91 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.09999, allocations: 48.16 MB / 386.3 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.408/0.508, allocations: 142.2 MB / 0.5161 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.5188/1.027, allocations: 97.69 MB / 0.6115 GB, free: 328 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/1.028, allocations: 6.781 kB / 0.6115 GB, free: 328 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004512/1.033, allocations: 1.369 MB / 0.6128 GB, free: 320 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004947/1.038, allocations: 1.654 MB / 0.6144 GB, free: 296 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.1066/1.144, allocations: 29.54 MB / 0.6433 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002676/1.147, allocations: 1.407 MB / 0.6447 GB, free: 13.24 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004439/1.147, allocations: 135.3 kB / 0.6448 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02387/1.171, allocations: 9.852 MB / 0.6544 GB, free: 9.227 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/1.172, allocations: 392 kB / 0.6548 GB, free: 8.969 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002408/1.173, allocations: 47.94 kB / 0.6548 GB, free: 8.922 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07597/1.249, allocations: 30.39 MB / 0.6845 GB, free: 3.035 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004092/1.249, allocations: 121.9 kB / 0.6846 GB, free: 2.918 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008351/1.25, allocations: 310.1 kB / 0.6849 GB, free: 2.617 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05292/1.303, allocations: 12.68 MB / 0.6973 GB, free: 6.863 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/1.303, allocations: 4 kB / 0.6973 GB, free: 6.859 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.785e-06/1.303, allocations: 0 / 0.6973 GB, free: 6.859 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/1.303, allocations: 0 / 0.6973 GB, free: 6.859 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.007345/1.31, allocations: 2.276 MB / 0.6995 GB, free: 4.535 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/1.31, allocations: 8.031 kB / 0.6995 GB, free: 4.527 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.805e-05/1.311, allocations: 86.52 kB / 0.6996 GB, free: 4.434 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005677/1.311, allocations: 79.41 kB / 0.6997 GB, free: 4.355 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004419/1.312, allocations: 336.1 kB / 0.7 GB, free: 3.992 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.309e-05/1.312, allocations: 32.66 kB / 0.7001 GB, free: 3.961 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.961e-05/1.312, allocations: 32 kB / 0.7001 GB, free: 3.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/1.313, allocations: 0.5927 MB / 0.7007 GB, free: 3.32 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/1.313, allocations: 0 / 0.7007 GB, free: 3.32 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/1.313, allocations: 12 kB / 0.7007 GB, free: 3.309 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.835e-05/1.313, allocations: 23.19 kB / 0.7007 GB, free: 3.289 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/1.314, allocations: 0.5247 MB / 0.7012 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002961/1.317, allocations: 2.491 MB / 0.7036 GB, free: 72 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/1.318, allocations: 0.4998 MB / 0.7041 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005635/1.319, allocations: 348.9 kB / 0.7045 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5191/1.838, allocations: 121.8 MB / 0.8234 GB, free: 297.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/1.838, allocations: 36.31 kB / 0.8235 GB, free: 297.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 4.107e-06/1.838, allocations: 0 / 0.8235 GB, free: 297.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.006882/1.845, allocations: 2.398 MB / 0.8258 GB, free: 296.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/1.845, allocations: 59.56 kB / 0.8259 GB, free: 296.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/1.846, allocations: 262.1 kB / 0.8261 GB, free: 296.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/1.846, allocations: 34.92 kB / 0.8262 GB, free: 296.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/1.846, allocations: 184.2 kB / 0.8263 GB, free: 296.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/1.846, allocations: 267.6 kB / 0.8266 GB, free: 295.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/1.846, allocations: 105.6 kB / 0.8267 GB, free: 295.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.132e-05/1.846, allocations: 351.5 kB / 0.827 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004411/1.847, allocations: 271.5 kB / 0.8273 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004876/1.847, allocations: 398 kB / 0.8277 GB, free: 295 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/1.848, allocations: 0.6936 MB / 0.8283 GB, free: 294.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/1.848, allocations: 4.406 kB / 0.8283 GB, free: 294.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001444/1.85, allocations: 0.811 MB / 0.8291 GB, free: 294.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/1.85, allocations: 12.97 kB / 0.8291 GB, free: 294.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/1.85, allocations: 3.031 kB / 0.8291 GB, free: 294.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005407/1.85, allocations: 107.2 kB / 0.8292 GB, free: 294.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005084/1.851, allocations: 110.2 kB / 0.8294 GB, free: 294 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09087/1.942, allocations: 24.99 MB / 0.8538 GB, free: 274.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006762/1.942, allocations: 32.03 kB / 0.8538 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/1.942, allocations: 19.98 kB / 0.8538 GB, free: 274.2 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 (47): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 2} * 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.0004199/1.943, allocations: 184.2 kB / 0.854 GB, free: 274 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/1.943, allocations: 43.47 kB / 0.854 GB, free: 274 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/1.945, allocations: 1.703 MB / 0.8557 GB, free: 272.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/1.945, allocations: 7.203 kB / 0.8557 GB, free: 272.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/1.945, allocations: 2.188 kB / 0.8557 GB, free: 272.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001414/1.946, allocations: 1.275 MB / 0.8569 GB, free: 270.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/1.949, allocations: 1.74 MB / 0.8586 GB, free: 269 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.949, allocations: 0 / 0.8586 GB, free: 269 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003/1.949, allocations: 79.55 kB / 0.8587 GB, free: 269 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003885/1.95, allocations: 198.2 kB / 0.8589 GB, free: 268.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/1.95, allocations: 8 kB / 0.8589 GB, free: 268.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001579/1.951, allocations: 2.58 MB / 0.8614 GB, free: 266 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.951, allocations: 4.031 kB / 0.8614 GB, free: 266 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/1.953, allocations: 1.451 MB / 0.8628 GB, free: 264.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/1.953, allocations: 112.6 kB / 0.863 GB, free: 264.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.04e-05/1.953, allocations: 16.06 kB / 0.863 GB, free: 264.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/1.954, allocations: 31.84 kB / 0.863 GB, free: 264.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/1.954, allocations: 43.94 kB / 0.863 GB, free: 264.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/1.954, allocations: 12 kB / 0.8631 GB, free: 264.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002125/1.954, allocations: 223 kB / 0.8633 GB, free: 264.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.954, allocations: 0 / 0.8633 GB, free: 264.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008445/1.962, allocations: 2.892 MB / 0.8661 GB, free: 261.5 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.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), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0177/1.98, allocations: 5.408 MB / 0.8714 GB, free: 256.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002135/1.982, allocations: 1.01 MB / 0.8724 GB, free: 255.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/1.982, allocations: 0.5625 kB / 0.8724 GB, free: 255.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007038/1.983, allocations: 0.5227 MB / 0.8729 GB, free: 254.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/1.985, allocations: 396 kB / 0.8732 GB, free: 254.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/1.997, allocations: 6.002 MB / 0.8791 GB, free: 248.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/1.997, allocations: 0.8564 MB / 0.8799 GB, free: 247.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004427/1.997, allocations: 111.2 kB / 0.8801 GB, free: 247.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/1.998, allocations: 167.4 kB / 0.8802 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.292e-06/1.998, allocations: 3.938 kB / 0.8802 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1666/2.164, allocations: 120.8 MB / 0.9982 GB, free: 126.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.51/18.67, allocations: 11.88 kB / 0.9982 GB, free: 126.1 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph_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_component_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)