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.001622/0.001622, allocations: 108 kB / 15.6 MB, free: 132 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.001659/0.00166, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.559/1.559, 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.0464/0.0464, allocations: 9.095 MB / 278.9 MB, free: 12.18 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.001807/0.001807, allocations: 67.91 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09675, allocations: 48.16 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.3562/0.453, allocations: 142.2 MB / 0.5161 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3857/0.8387, allocations: 97.7 MB / 0.6115 GB, free: 304 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007375/0.8395, allocations: 7.469 kB / 0.6115 GB, free: 304 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003363/0.8429, allocations: 1.366 MB / 0.6128 GB, free: 296 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003862/0.8468, allocations: 1.658 MB / 0.6145 GB, free: 272 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.08402/0.9308, allocations: 29.54 MB / 0.6433 GB, free: 13.58 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002218/0.9331, allocations: 1.408 MB / 0.6447 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002962/0.9334, allocations: 121.2 kB / 0.6448 GB, free: 13.17 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01663/0.95, allocations: 9.861 MB / 0.6544 GB, free: 9.191 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006084/0.9507, allocations: 383 kB / 0.6548 GB, free: 8.938 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.131e-05/0.9508, allocations: 43.38 kB / 0.6548 GB, free: 8.898 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06303/1.014, allocations: 30.4 MB / 0.6845 GB, free: 3.004 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002862/1.014, allocations: 130.5 kB / 0.6846 GB, free: 2.879 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006389/1.015, allocations: 297.5 kB / 0.6849 GB, free: 2.59 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04887/1.064, allocations: 12.68 MB / 0.6973 GB, free: 6.836 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/1.064, allocations: 0 / 0.6973 GB, free: 6.836 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.435e-06/1.064, allocations: 4 kB / 0.6973 GB, free: 6.832 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/1.064, allocations: 0 / 0.6973 GB, free: 6.832 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.008085/1.072, allocations: 2.283 MB / 0.6995 GB, free: 4.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/1.072, allocations: 8.031 kB / 0.6995 GB, free: 4.492 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.869e-05/1.072, allocations: 86.52 kB / 0.6996 GB, free: 4.398 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005878/1.073, allocations: 75.41 kB / 0.6997 GB, free: 4.324 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/1.073, allocations: 339 kB / 0.7 GB, free: 3.957 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.742e-05/1.073, allocations: 36.59 kB / 0.7001 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.427e-05/1.073, allocations: 36 kB / 0.7001 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/1.075, allocations: 0.5828 MB / 0.7007 GB, free: 3.289 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/1.075, allocations: 7.938 kB / 0.7007 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.353e-05/1.075, allocations: 12 kB / 0.7007 GB, free: 3.27 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.089e-05/1.075, allocations: 22.33 kB / 0.7007 GB, free: 3.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/1.076, allocations: 0.5213 MB / 0.7012 GB, free: 2.734 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00256/1.078, allocations: 2.494 MB / 0.7036 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/1.08, allocations: 0.4974 MB / 0.7041 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005445/1.08, allocations: 342.3 kB / 0.7045 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4236/1.504, allocations: 121.8 MB / 0.8234 GB, free: 297.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.506e-05/1.504, allocations: 35.19 kB / 0.8235 GB, free: 297.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 5.02e-06/1.504, allocations: 1.562 kB / 0.8235 GB, free: 297.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.006474/1.51, allocations: 2.405 MB / 0.8258 GB, free: 296.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/1.51, allocations: 59.25 kB / 0.8259 GB, free: 296.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/1.511, allocations: 253.2 kB / 0.8261 GB, free: 296.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/1.511, allocations: 35.91 kB / 0.8261 GB, free: 296.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.448e-05/1.511, allocations: 200.5 kB / 0.8263 GB, free: 295.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/1.511, allocations: 251.3 kB / 0.8266 GB, free: 295.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/1.511, allocations: 101.7 kB / 0.8267 GB, free: 295.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.142e-05/1.511, allocations: 353.9 kB / 0.827 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004695/1.512, allocations: 275.2 kB / 0.8273 GB, free: 295.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005126/1.512, allocations: 397.3 kB / 0.8276 GB, free: 294.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/1.513, allocations: 0.6945 MB / 0.8283 GB, free: 294.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/1.513, allocations: 5.531 kB / 0.8283 GB, free: 294.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001473/1.515, allocations: 0.8039 MB / 0.8291 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/1.515, allocations: 9.188 kB / 0.8291 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/1.515, allocations: 6.875 kB / 0.8291 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005428/1.515, allocations: 112.9 kB / 0.8292 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/1.516, allocations: 106.1 kB / 0.8293 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09525/1.611, allocations: 24.98 MB / 0.8537 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/1.612, allocations: 28.03 kB / 0.8538 GB, free: 274.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.199e-05/1.612, allocations: 23.98 kB / 0.8538 GB, free: 274.1 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.0003256/1.612, allocations: 188.9 kB / 0.854 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/1.612, allocations: 43.47 kB / 0.854 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/1.614, allocations: 1.703 MB / 0.8557 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/1.614, allocations: 8 kB / 0.8557 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/1.614, allocations: 6 kB / 0.8557 GB, free: 272.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001323/1.616, allocations: 1.271 MB / 0.8569 GB, free: 270.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/1.618, allocations: 1.745 MB / 0.8586 GB, free: 268.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/1.618, allocations: 3.844 kB / 0.8586 GB, free: 268.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/1.618, allocations: 71.98 kB / 0.8587 GB, free: 268.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/1.618, allocations: 194.2 kB / 0.8589 GB, free: 268.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.115e-05/1.618, allocations: 12 kB / 0.8589 GB, free: 268.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/1.62, allocations: 2.574 MB / 0.8614 GB, free: 265.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.62, allocations: 4.156 kB / 0.8614 GB, free: 265.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/1.622, allocations: 1.455 MB / 0.8628 GB, free: 264.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/1.622, allocations: 116.6 kB / 0.863 GB, free: 264.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.26e-05/1.622, allocations: 12.06 kB / 0.863 GB, free: 264.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/1.622, allocations: 27.91 kB / 0.863 GB, free: 264.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/1.622, allocations: 43.94 kB / 0.863 GB, free: 264.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/1.622, allocations: 12 kB / 0.863 GB, free: 264.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001932/1.623, allocations: 219.1 kB / 0.8633 GB, free: 264 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/1.623, allocations: 0 / 0.8633 GB, free: 264 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007828/1.63, allocations: 2.902 MB / 0.8661 GB, free: 261.4 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.01808/1.649, allocations: 5.416 MB / 0.8714 GB, free: 256.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00243/1.651, allocations: 1.01 MB / 0.8724 GB, free: 255.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.651, allocations: 0 / 0.8724 GB, free: 255.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008138/1.652, allocations: 0.5231 MB / 0.8729 GB, free: 254.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/1.654, allocations: 394.1 kB / 0.8732 GB, free: 254.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/1.666, allocations: 5.999 MB / 0.8791 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/1.667, allocations: 0.8565 MB / 0.8799 GB, free: 247.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005109/1.667, allocations: 111.1 kB / 0.88 GB, free: 247.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/1.667, allocations: 171.4 kB / 0.8802 GB, free: 247.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.563e-06/1.668, allocations: 0 / 0.8802 GB, free: 247.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1767/1.844, allocations: 120.8 MB / 0.9982 GB, free: 126 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.09/18.93, allocations: 7.938 kB / 0.9982 GB, free: 126 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)