Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_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_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_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.007075/0.007075, allocations: 95.83 kB / 15.73 MB, free: 6.039 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.001852/0.001852, allocations: 200 kB / 16.68 MB, free: 5.969 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.271/1.271, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04801/0.04801, allocations: 9.092 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.001962/0.001962, allocations: 67.89 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2245, allocations: 48.16 MB / 435.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.1371/0.3616, allocations: 142.2 MB / 0.5638 GB, free: 2.102 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2931/0.6548, allocations: 97.71 MB / 0.6593 GB, free: 360 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004279/0.6552, allocations: 5.688 kB / 0.6593 GB, free: 360 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00243/0.6577, allocations: 1.364 MB / 0.6606 GB, free: 352 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002489/0.6602, allocations: 1.657 MB / 0.6622 GB, free: 304 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.05989/0.7201, allocations: 29.53 MB / 0.6911 GB, free: 6.984 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001762/0.7219, allocations: 1.397 MB / 0.6924 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.7221, allocations: 138.2 kB / 0.6926 GB, free: 5.871 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01549/0.7376, allocations: 9.866 MB / 0.7022 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004785/0.7381, allocations: 378.7 kB / 0.7025 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.723e-05/0.7382, allocations: 44 kB / 0.7026 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05878/0.797, allocations: 35.39 MB / 0.7372 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000226/0.7973, allocations: 123 kB / 0.7373 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005047/0.7978, allocations: 303.8 kB / 0.7376 GB, free: 13 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03767/0.8355, allocations: 14.2 MB / 0.7514 GB, free: 15.88 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.8355, allocations: 0 / 0.7514 GB, free: 15.88 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.774e-06/0.8355, allocations: 0 / 0.7514 GB, free: 15.88 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.305e-06/0.8355, allocations: 0 / 0.7514 GB, free: 15.88 MB / 0.545 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.00581/0.8413, allocations: 2.675 MB / 0.754 GB, free: 13.15 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.8414, allocations: 12.03 kB / 0.7541 GB, free: 13.14 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.8415, allocations: 82.52 kB / 0.7541 GB, free: 13.05 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005558/0.8421, allocations: 95.62 kB / 0.7542 GB, free: 12.96 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.8425, allocations: 342.5 kB / 0.7545 GB, free: 12.59 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/0.8426, allocations: 32.22 kB / 0.7546 GB, free: 12.56 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-05/0.8426, allocations: 39.94 kB / 0.7546 GB, free: 12.52 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.8439, allocations: 0.5971 MB / 0.7552 GB, free: 11.9 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.8439, allocations: 0 / 0.7552 GB, free: 11.9 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/0.844, allocations: 16 kB / 0.7552 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.844, allocations: 15.28 kB / 0.7552 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.8453, allocations: 0.5493 MB / 0.7558 GB, free: 11.33 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002789/0.8481, allocations: 2.504 MB / 0.7582 GB, free: 8.609 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.8493, allocations: 0.4997 MB / 0.7587 GB, free: 8.102 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005963/0.8499, allocations: 330.3 kB / 0.759 GB, free: 7.777 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3615/1.211, allocations: 139 MB / 0.8948 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/1.211, allocations: 37.12 kB / 0.8948 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.365e-06/1.211, allocations: 4.219 kB / 0.8948 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.004974/1.216, allocations: 2.332 MB / 0.8971 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.976e-05/1.217, allocations: 61.38 kB / 0.8971 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/1.217, allocations: 263.7 kB / 0.8974 GB, free: 215.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/1.217, allocations: 37.42 kB / 0.8974 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/1.217, allocations: 184.2 kB / 0.8976 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.896e-05/1.217, allocations: 278.2 kB / 0.8979 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/1.217, allocations: 98.81 kB / 0.8979 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.401e-05/1.217, allocations: 357.7 kB / 0.8983 GB, free: 215.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004124/1.218, allocations: 268.1 kB / 0.8985 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004599/1.218, allocations: 404.3 kB / 0.8989 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008679/1.219, allocations: 0.7198 MB / 0.8996 GB, free: 214 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.219, allocations: 0.8438 kB / 0.8996 GB, free: 214 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001192/1.22, allocations: 0.798 MB / 0.9004 GB, free: 213.2 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/1.22, allocations: 8.938 kB / 0.9004 GB, free: 213.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.515e-06/1.22, allocations: 0 / 0.9004 GB, free: 213.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002283/1.22, allocations: 63.23 kB / 0.9005 GB, free: 213.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/1.221, allocations: 132.3 kB / 0.9006 GB, free: 213 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06095/1.282, allocations: 19.1 MB / 0.9193 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003878/1.282, allocations: 32.05 kB / 0.9193 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/1.282, allocations: 23.98 kB / 0.9193 GB, free: 193.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (48): * Single equations (assignments): 41 * 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, 1} * 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.0002039/1.283, allocations: 178.8 kB / 0.9195 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.129e-05/1.283, allocations: 43.72 kB / 0.9195 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/1.284, allocations: 1.593 MB / 0.9211 GB, free: 191.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/1.284, allocations: 7.938 kB / 0.9211 GB, free: 191.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/1.284, allocations: 4 kB / 0.9211 GB, free: 191.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001098/1.285, allocations: 1.176 MB / 0.9222 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001666/1.287, allocations: 1.637 MB / 0.9238 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/1.287, allocations: 0 / 0.9238 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002858/1.287, allocations: 79.88 kB / 0.9239 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00022/1.287, allocations: 111.3 kB / 0.924 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/1.287, allocations: 8 kB / 0.924 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007581/1.288, allocations: 2.004 MB / 0.926 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/1.288, allocations: 0 / 0.926 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/1.29, allocations: 1.247 MB / 0.9272 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.165e-05/1.29, allocations: 126.9 kB / 0.9273 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/1.29, allocations: 8 kB / 0.9273 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000275/1.29, allocations: 23.97 kB / 0.9274 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/1.29, allocations: 47.94 kB / 0.9274 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/1.29, allocations: 16 kB / 0.9274 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000163/1.29, allocations: 239 kB / 0.9276 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.29, allocations: 4 kB / 0.9277 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006384/1.297, allocations: 3.576 MB / 0.9311 GB, free: 181.3 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.p,volume.medium.h) * Number of discrete variables: 9 ($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 (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01372/1.311, allocations: 6.237 MB / 0.9372 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001725/1.312, allocations: 1.011 MB / 0.9382 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.312, allocations: 0 / 0.9382 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007102/1.313, allocations: 0.4956 MB / 0.9387 GB, free: 173.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/1.315, allocations: 400.4 kB / 0.9391 GB, free: 173.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009506/1.324, allocations: 6.364 MB / 0.9453 GB, free: 167 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/1.325, allocations: 0.8486 MB / 0.9461 GB, free: 166.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003343/1.325, allocations: 147.1 kB / 0.9463 GB, free: 166 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/1.325, allocations: 171.4 kB / 0.9464 GB, free: 165.8 MB / 0.6075 GB Notification: Performance of SimCode: time 5.01e-07/1.325, allocations: 0 / 0.9464 GB, free: 165.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.659/4.985, allocations: 132.8 MB / 1.076 GB, free: 32.86 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.48/29.46, allocations: 23.53 kB / 1.076 GB, free: 32.84 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1)