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.001471/0.001471, allocations: 105.4 kB / 15.7 MB, free: 24 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.001754/0.001753, allocations: 189 kB / 16.64 MB, free: 6.594 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.784/1.784, allocations: 205.1 MB / 222.5 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04804/0.04804, allocations: 9.092 MB / 279 MB, free: 12.12 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.001563/0.001563, allocations: 63.91 kB / 338.3 MB, free: 25.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1345, allocations: 48.16 MB / 386.5 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.5065/0.6411, allocations: 142.2 MB / 0.5162 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4884/1.13, allocations: 97.71 MB / 0.6117 GB, free: 300 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008412/1.13, allocations: 6.562 kB / 0.6117 GB, free: 300 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0039/1.134, allocations: 1.365 MB / 0.613 GB, free: 292 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004821/1.139, allocations: 1.65 MB / 0.6146 GB, free: 268 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.1125/1.252, allocations: 29.54 MB / 0.6434 GB, free: 13.59 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002563/1.254, allocations: 1.406 MB / 0.6448 GB, free: 13.21 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003315/1.255, allocations: 129 kB / 0.6449 GB, free: 13.18 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01762/1.272, allocations: 9.867 MB / 0.6546 GB, free: 9.184 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000655/1.273, allocations: 380.9 kB / 0.6549 GB, free: 8.93 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.039e-05/1.273, allocations: 40 kB / 0.655 GB, free: 8.891 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07562/1.349, allocations: 35.4 MB / 0.6895 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003391/1.349, allocations: 122.2 kB / 0.6897 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006893/1.35, allocations: 306 kB / 0.69 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0604/1.41, allocations: 14.17 MB / 0.7038 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/1.41, allocations: 0 / 0.7038 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.106e-06/1.41, allocations: 0 / 0.7038 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/1.41, allocations: 0 / 0.7038 GB, free: 0.7031 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.008499/1.419, allocations: 2.571 MB / 0.7063 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/1.419, allocations: 12.03 kB / 0.7063 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/1.419, allocations: 82.52 kB / 0.7064 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006947/1.42, allocations: 91.39 kB / 0.7065 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000595/1.42, allocations: 342.8 kB / 0.7068 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/1.42, allocations: 32.66 kB / 0.7068 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.749e-05/1.42, allocations: 28 kB / 0.7069 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/1.422, allocations: 0.6 MB / 0.7075 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/1.422, allocations: 3.906 kB / 0.7075 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/1.422, allocations: 16 kB / 0.7075 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.327e-05/1.422, allocations: 19.58 kB / 0.7075 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/1.423, allocations: 0.5486 MB / 0.708 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002523/1.426, allocations: 2.501 MB / 0.7105 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/1.427, allocations: 0.4926 MB / 0.711 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005023/1.427, allocations: 330.3 kB / 0.7113 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4941/1.921, allocations: 139 MB / 0.847 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/1.921, allocations: 42.25 kB / 0.847 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 4.278e-06/1.921, allocations: 0.5312 kB / 0.847 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.00804/1.929, allocations: 2.331 MB / 0.8493 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/1.93, allocations: 56.81 kB / 0.8494 GB, free: 273 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/1.93, allocations: 265 kB / 0.8496 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/1.93, allocations: 36.52 kB / 0.8496 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/1.93, allocations: 185.9 kB / 0.8498 GB, free: 272.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/1.93, allocations: 266.5 kB / 0.8501 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/1.931, allocations: 101.7 kB / 0.8502 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000133/1.931, allocations: 354.7 kB / 0.8505 GB, free: 272 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006645/1.931, allocations: 274.1 kB / 0.8508 GB, free: 271.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007295/1.932, allocations: 403.5 kB / 0.8512 GB, free: 271.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/1.934, allocations: 0.7034 MB / 0.8518 GB, free: 271.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/1.934, allocations: 3.906 kB / 0.8519 GB, free: 271.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001965/1.935, allocations: 0.8013 MB / 0.8526 GB, free: 270.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/1.936, allocations: 7.906 kB / 0.8526 GB, free: 270.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/1.936, allocations: 6.25 kB / 0.8526 GB, free: 270.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003321/1.936, allocations: 61.17 kB / 0.8527 GB, free: 270.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008665/1.937, allocations: 129.5 kB / 0.8528 GB, free: 270.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09665/2.033, allocations: 19.07 MB / 0.8715 GB, free: 253.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008225/2.034, allocations: 26.48 kB / 0.8715 GB, free: 253.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/2.035, allocations: 19.98 kB / 0.8715 GB, free: 253.4 MB / 0.5919 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.0005744/2.035, allocations: 195.4 kB / 0.8717 GB, free: 253.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002515/2.035, allocations: 39.53 kB / 0.8717 GB, free: 253.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/2.038, allocations: 1.586 MB / 0.8733 GB, free: 251.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.814e-05/2.038, allocations: 11.36 kB / 0.8733 GB, free: 251.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/2.038, allocations: 0 / 0.8733 GB, free: 251.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001736/2.04, allocations: 1.184 MB / 0.8744 GB, free: 250.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/2.043, allocations: 1.625 MB / 0.876 GB, free: 248.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/2.043, allocations: 8.031 kB / 0.876 GB, free: 248.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004874/2.043, allocations: 79.88 kB / 0.8761 GB, free: 248.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003419/2.044, allocations: 105.5 kB / 0.8762 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/2.044, allocations: 12 kB / 0.8762 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00149/2.045, allocations: 2.01 MB / 0.8782 GB, free: 246.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/2.045, allocations: 0 / 0.8782 GB, free: 246.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002578/2.048, allocations: 1.249 MB / 0.8794 GB, free: 244.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/2.048, allocations: 112.5 kB / 0.8795 GB, free: 244.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.204e-05/2.048, allocations: 19.88 kB / 0.8795 GB, free: 244.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00045/2.049, allocations: 23.97 kB / 0.8796 GB, free: 244.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/2.049, allocations: 47.83 kB / 0.8796 GB, free: 244.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.625e-05/2.049, allocations: 12 kB / 0.8796 GB, free: 244.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003614/2.049, allocations: 243 kB / 0.8798 GB, free: 244.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.21e-07/2.049, allocations: 4.062 kB / 0.8798 GB, free: 244.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01542/2.065, allocations: 3.513 MB / 0.8833 GB, free: 241.3 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: 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.03265/2.098, allocations: 6.187 MB / 0.8893 GB, free: 235.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003154/2.101, allocations: 0.9998 MB / 0.8903 GB, free: 234.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/2.101, allocations: 4.062 kB / 0.8903 GB, free: 234.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001058/2.102, allocations: 499.2 kB / 0.8908 GB, free: 234.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/2.105, allocations: 398.7 kB / 0.8912 GB, free: 233.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02107/2.126, allocations: 6.301 MB / 0.8973 GB, free: 227.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005744/2.126, allocations: 0.8486 MB / 0.8981 GB, free: 226.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0007874/2.127, allocations: 147.1 kB / 0.8983 GB, free: 226.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/2.128, allocations: 167.4 kB / 0.8984 GB, free: 226.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.714e-06/2.128, allocations: 3.938 kB / 0.8984 GB, free: 226.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2165/2.344, allocations: 132.6 MB / 1.028 GB, free: 93.31 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.99/21.34, allocations: 11.67 kB / 1.028 GB, free: 93.3 MB / 0.5919 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)