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.005335/0.005335, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001271/0.001271, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.417/1.417, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.095 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.001677/0.001677, allocations: 75.91 kB / 387 MB, free: 8.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2783, allocations: 48.15 MB / 435.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.145/0.4233, allocations: 142.2 MB / 0.5638 GB, free: 2.098 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3444/0.7678, allocations: 97.7 MB / 0.6593 GB, free: 292 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006334/0.7685, allocations: 7.562 kB / 0.6593 GB, free: 292 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003791/0.7723, allocations: 1.365 MB / 0.6606 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004036/0.7764, allocations: 1.653 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.07725/0.8537, allocations: 29.56 MB / 0.6911 GB, free: 7.008 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001796/0.8555, allocations: 1.419 MB / 0.6925 GB, free: 5.988 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.8557, allocations: 127.3 kB / 0.6926 GB, free: 5.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01561/0.8713, allocations: 9.869 MB / 0.7022 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004694/0.8718, allocations: 381.8 kB / 0.7026 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.336e-05/0.8719, allocations: 44 kB / 0.7026 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05271/0.9246, allocations: 29.41 MB / 0.7313 GB, free: 3.055 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.925, allocations: 115.6 kB / 0.7315 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004964/0.9255, allocations: 308.4 kB / 0.7317 GB, free: 2.645 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03661/0.9621, allocations: 11.9 MB / 0.7434 GB, free: 7.574 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.9622, allocations: 0 / 0.7434 GB, free: 7.574 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.763e-06/0.9622, allocations: 0 / 0.7434 GB, free: 7.574 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.475e-06/0.9622, allocations: 0 / 0.7434 GB, free: 7.574 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.004655/0.9668, allocations: 2.139 MB / 0.7455 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.9669, allocations: 12.03 kB / 0.7455 GB, free: 5.379 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.709e-05/0.967, allocations: 82.52 kB / 0.7455 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005028/0.9675, allocations: 83.34 kB / 0.7456 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004072/0.9679, allocations: 338.2 kB / 0.746 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.861e-05/0.968, allocations: 32.66 kB / 0.746 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.968, allocations: 35.41 kB / 0.746 GB, free: 4.777 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.9691, allocations: 0.5883 MB / 0.7466 GB, free: 4.172 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.9692, allocations: 0 / 0.7466 GB, free: 4.172 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.794e-05/0.9692, allocations: 12 kB / 0.7466 GB, free: 4.16 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.9692, allocations: 18.42 kB / 0.7466 GB, free: 4.145 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.9704, allocations: 0.513 MB / 0.7471 GB, free: 3.637 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.9728, allocations: 2.489 MB / 0.7496 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009883/0.9738, allocations: 490.8 kB / 0.75 GB, free: 464 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004945/0.9743, allocations: 334.8 kB / 0.7503 GB, free: 128 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3474/1.322, allocations: 113.3 MB / 0.861 GB, free: 251.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/1.322, allocations: 33.47 kB / 0.861 GB, free: 251.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.895e-06/1.322, allocations: 0 / 0.861 GB, free: 251.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005952/1.328, allocations: 2.639 MB / 0.8636 GB, free: 250.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.247e-05/1.328, allocations: 59.03 kB / 0.8636 GB, free: 250.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/1.328, allocations: 256.8 kB / 0.8639 GB, free: 250 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/1.328, allocations: 33.64 kB / 0.8639 GB, free: 250 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.169e-05/1.328, allocations: 194.9 kB / 0.8641 GB, free: 249.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/1.328, allocations: 262.5 kB / 0.8643 GB, free: 249.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/1.328, allocations: 97.55 kB / 0.8644 GB, free: 249.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.019e-05/1.328, allocations: 354.7 kB / 0.8648 GB, free: 249.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004327/1.329, allocations: 275.6 kB / 0.865 GB, free: 249 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004609/1.329, allocations: 408 kB / 0.8654 GB, free: 248.7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008903/1.33, allocations: 0.7128 MB / 0.8661 GB, free: 248.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.33, allocations: 2.125 kB / 0.8661 GB, free: 248.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001274/1.332, allocations: 0.8153 MB / 0.8669 GB, free: 247.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/1.332, allocations: 7.5 kB / 0.8669 GB, free: 247.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/1.332, allocations: 0 / 0.8669 GB, free: 247.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008031/1.332, allocations: 143.6 kB / 0.8671 GB, free: 247.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/1.333, allocations: 132.2 kB / 0.8672 GB, free: 247.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/1.335, allocations: 3.757 MB / 0.8708 GB, free: 243.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000366/1.335, allocations: 35.59 kB / 0.8709 GB, free: 243.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/1.335, allocations: 15.75 kB / 0.8709 GB, free: 243.9 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.0002983/1.335, allocations: 187 kB / 0.8711 GB, free: 243.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/1.336, allocations: 42.25 kB / 0.8711 GB, free: 243.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/1.337, allocations: 1.681 MB / 0.8728 GB, free: 242.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/1.337, allocations: 14.59 kB / 0.8728 GB, free: 242.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/1.337, allocations: 0 / 0.8728 GB, free: 242.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001175/1.339, allocations: 1.253 MB / 0.874 GB, free: 241.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/1.341, allocations: 1.729 MB / 0.8757 GB, free: 240.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/1.341, allocations: 3.969 kB / 0.8757 GB, free: 240.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003251/1.341, allocations: 63.52 kB / 0.8757 GB, free: 240.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005739/1.342, allocations: 262.2 kB / 0.876 GB, free: 240.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/1.342, allocations: 11.95 kB / 0.876 GB, free: 240.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007197/1.342, allocations: 1.765 MB / 0.8777 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/1.342, allocations: 7.875 kB / 0.8777 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/1.344, allocations: 1.463 MB / 0.8792 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/1.344, allocations: 106.6 kB / 0.8793 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.447e-05/1.344, allocations: 8.562 kB / 0.8793 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003418/1.345, allocations: 31.28 kB / 0.8793 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/1.345, allocations: 51.81 kB / 0.8794 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/1.345, allocations: 12.14 kB / 0.8794 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002256/1.345, allocations: 222.9 kB / 0.8796 GB, free: 237.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.202e-06/1.345, allocations: 0 / 0.8796 GB, free: 237.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005233/1.35, allocations: 1.978 MB / 0.8815 GB, free: 237.1 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.01086/1.361, allocations: 4.506 MB / 0.8859 GB, free: 233.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001813/1.363, allocations: 0.8892 MB / 0.8868 GB, free: 232.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/1.363, allocations: 3.938 kB / 0.8868 GB, free: 232.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006515/1.364, allocations: 439.6 kB / 0.8872 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.001708/1.366, allocations: 392.1 kB / 0.8876 GB, free: 231.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008597/1.374, allocations: 5.704 MB / 0.8931 GB, free: 225.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/1.375, allocations: 0.8482 MB / 0.894 GB, free: 224.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003932/1.375, allocations: 91.41 kB / 0.8941 GB, free: 224.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/1.375, allocations: 167.4 kB / 0.8942 GB, free: 224.5 MB / 0.6075 GB Notification: Performance of SimCode: time 8.52e-07/1.375, allocations: 0 / 0.8942 GB, free: 224.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09956/1.475, allocations: 78.15 MB / 0.9705 GB, free: 146.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/16.92, allocations: 11.59 kB / 0.9705 GB, free: 146.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)