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.0009028/0.0009028, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.004537/0.004537, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.219/1.219, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04303/0.04303, allocations: 9.075 MB / 279.8 MB, free: 12.14 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.0004555/0.0004555, allocations: 12 kB / 339.8 MB, free: 25.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07164/0.07211, allocations: 49.18 MB / 389 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.2674/0.3396, allocations: 142.3 MB / 0.5189 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2799/0.6195, allocations: 98.1 MB / 0.6147 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005783/0.6202, allocations: 6.031 kB / 0.6147 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002625/0.6228, allocations: 1.171 MB / 0.6158 GB, free: 1.836 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003077/0.6259, allocations: 1.467 MB / 0.6172 GB, free: 1.828 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06067/0.6866, allocations: 25.16 MB / 0.6418 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001643/0.6882, allocations: 1.821 MB / 0.6436 GB, free: 136 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/0.6884, allocations: 98.52 kB / 0.6437 GB, free: 112 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01337/0.7018, allocations: 9.395 MB / 0.6529 GB, free: 13 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004469/0.7023, allocations: 387.2 kB / 0.6532 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.187e-05/0.7023, allocations: 19 kB / 0.6532 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05387/0.7562, allocations: 31.47 MB / 0.684 GB, free: 10.74 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002268/0.7564, allocations: 99.39 kB / 0.6841 GB, free: 10.68 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004732/0.7569, allocations: 308.6 kB / 0.6844 GB, free: 10.51 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03574/0.7927, allocations: 13.69 MB / 0.6977 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.7927, allocations: 0 / 0.6977 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.7927, allocations: 0 / 0.6977 GB, free: 20 kB / 478.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.7927, allocations: 0 / 0.6977 GB, free: 20 kB / 478.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.005597/0.7983, allocations: 2.491 MB / 0.7002 GB, free: 13.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.7984, allocations: 8.031 kB / 0.7002 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.128e-05/0.7985, allocations: 85.58 kB / 0.7003 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005464/0.799, allocations: 91.3 kB / 0.7003 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003633/0.7994, allocations: 338.8 kB / 0.7007 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.679e-05/0.7994, allocations: 32.2 kB / 0.7007 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.946e-05/0.7995, allocations: 30.94 kB / 0.7007 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.8007, allocations: 0.6122 MB / 0.7013 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.8007, allocations: 0 / 0.7013 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.8008, allocations: 15.56 kB / 0.7013 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.792e-05/0.8008, allocations: 22.75 kB / 0.7014 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.802, allocations: 0.5737 MB / 0.7019 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002256/0.8043, allocations: 2.512 MB / 0.7044 GB, free: 9.871 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.8054, allocations: 0.5143 MB / 0.7049 GB, free: 9.539 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005326/0.8059, allocations: 355.9 kB / 0.7052 GB, free: 9.195 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3575/1.163, allocations: 135.8 MB / 0.8378 GB, free: 258.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/1.163, allocations: 42.23 kB / 0.8379 GB, free: 258.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 3.126e-06/1.163, allocations: 0 / 0.8379 GB, free: 258.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.005345/1.169, allocations: 2.403 MB / 0.8402 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/1.169, allocations: 59.12 kB / 0.8403 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/1.169, allocations: 264.2 kB / 0.8405 GB, free: 257.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/1.169, allocations: 33.7 kB / 0.8406 GB, free: 257.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.307e-05/1.169, allocations: 183.5 kB / 0.8407 GB, free: 257.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/1.169, allocations: 271.2 kB / 0.841 GB, free: 256.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.033e-05/1.169, allocations: 60.25 kB / 0.8411 GB, free: 256.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.247e-05/1.17, allocations: 350.6 kB / 0.8414 GB, free: 256.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/1.17, allocations: 292.6 kB / 0.8417 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004969/1.171, allocations: 411.8 kB / 0.8421 GB, free: 256.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009666/1.171, allocations: 0.749 MB / 0.8428 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/1.172, allocations: 0 / 0.8428 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001291/1.173, allocations: 0.8254 MB / 0.8436 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/1.173, allocations: 7.5 kB / 0.8436 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/1.173, allocations: 4.688 kB / 0.8436 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002385/1.173, allocations: 62.89 kB / 0.8437 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000579/1.174, allocations: 134.5 kB / 0.8438 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08902/1.263, allocations: 24.49 MB / 0.8677 GB, free: 234.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005129/1.263, allocations: 59.88 kB / 0.8678 GB, free: 234.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/1.263, allocations: 19.98 kB / 0.8678 GB, free: 234.5 MB / 0.5762 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.0002505/1.264, allocations: 183.4 kB / 0.868 GB, free: 234.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.375e-05/1.264, allocations: 43.44 kB / 0.868 GB, free: 234.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/1.265, allocations: 1.606 MB / 0.8696 GB, free: 232.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/1.265, allocations: 12.53 kB / 0.8696 GB, free: 232.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/1.265, allocations: 4 kB / 0.8696 GB, free: 232.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001175/1.267, allocations: 1.219 MB / 0.8708 GB, free: 231.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/1.268, allocations: 1.648 MB / 0.8724 GB, free: 229.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/1.268, allocations: 4 kB / 0.8724 GB, free: 229.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003027/1.269, allocations: 89.09 kB / 0.8725 GB, free: 229.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003005/1.269, allocations: 118.9 kB / 0.8726 GB, free: 229.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/1.269, allocations: 12 kB / 0.8726 GB, free: 229.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008636/1.27, allocations: 1.899 MB / 0.8745 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.27, allocations: 0 / 0.8745 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/1.272, allocations: 1.292 MB / 0.8757 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.69e-05/1.272, allocations: 140.4 kB / 0.8759 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.751e-05/1.272, allocations: 15.88 kB / 0.8759 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003411/1.272, allocations: 51.89 kB / 0.8759 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.305e-05/1.272, allocations: 43.94 kB / 0.876 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/1.272, allocations: 9.094 kB / 0.876 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001866/1.272, allocations: 247 kB / 0.8762 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/1.272, allocations: 0 / 0.8762 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006971/1.279, allocations: 3.185 MB / 0.8793 GB, free: 222.7 MB / 0.5762 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.0137/1.293, allocations: 5.81 MB / 0.885 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00167/1.295, allocations: 1.012 MB / 0.886 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.295, allocations: 0 / 0.886 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006205/1.295, allocations: 0.4918 MB / 0.8865 GB, free: 215.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/1.297, allocations: 378.1 kB / 0.8868 GB, free: 215.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009238/1.307, allocations: 6.515 MB / 0.8932 GB, free: 208.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/1.307, allocations: 0.8486 MB / 0.894 GB, free: 207.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000389/1.307, allocations: 143.1 kB / 0.8941 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/1.307, allocations: 171.4 kB / 0.8943 GB, free: 207.6 MB / 0.5762 GB Notification: Performance of SimCode: time 8.92e-07/1.307, allocations: 0 / 0.8943 GB, free: 207.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1377/1.445, allocations: 123.9 MB / 1.015 GB, free: 83.45 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001329/1.445, allocations: 246.7 kB / 1.016 GB, free: 83.19 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.313/7.758, allocations: 0 / 1.016 GB, free: 83.19 MB / 0.5762 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)