Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",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.001254/0.001255, 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.001597/0.001597, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.544/1.544, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04943/0.04943, allocations: 9.106 MB / 278.9 MB, free: 12.17 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.001745/0.001745, allocations: 63.91 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1053, allocations: 48.17 MB / 386.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.3624/0.4677, allocations: 128.5 MB / 0.5028 GB, free: 5.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4448/0.9126, allocations: 111.1 MB / 0.6112 GB, free: 308 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008276/0.9135, allocations: 7.75 kB / 0.6112 GB, free: 308 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003831/0.9174, allocations: 1.364 MB / 0.6126 GB, free: 300 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004143/0.9216, allocations: 1.651 MB / 0.6142 GB, free: 280 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.08625/1.008, allocations: 29.23 MB / 0.6427 GB, free: 13.74 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002266/1.01, allocations: 1.408 MB / 0.6441 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/1.01, allocations: 129.5 kB / 0.6442 GB, free: 13.35 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01901/1.029, allocations: 10.5 MB / 0.6545 GB, free: 9.504 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000823/1.03, allocations: 379.4 kB / 0.6548 GB, free: 9.254 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.623e-05/1.03, allocations: 40 kB / 0.6549 GB, free: 9.215 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0755/1.106, allocations: 33.05 MB / 0.6872 GB, free: 260 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003086/1.106, allocations: 122.6 kB / 0.6873 GB, free: 140 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007267/1.107, allocations: 306.5 kB / 0.6876 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05626/1.163, allocations: 13.93 MB / 0.7012 GB, free: 3.008 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/1.163, allocations: 0 / 0.7012 GB, free: 3.008 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.455e-06/1.163, allocations: 4 kB / 0.7012 GB, free: 3.004 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/1.163, allocations: 0 / 0.7012 GB, free: 3.004 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.008106/1.171, allocations: 2.568 MB / 0.7037 GB, free: 400 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/1.172, allocations: 12.03 kB / 0.7037 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001191/1.172, allocations: 86.52 kB / 0.7038 GB, free: 292 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006849/1.172, allocations: 87.39 kB / 0.7039 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005302/1.173, allocations: 333.6 kB / 0.7042 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/1.173, allocations: 32.66 kB / 0.7042 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.52e-05/1.173, allocations: 35.94 kB / 0.7042 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/1.174, allocations: 0.6037 MB / 0.7048 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/1.174, allocations: 3.906 kB / 0.7048 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/1.175, allocations: 16 kB / 0.7049 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/1.175, allocations: 11.91 kB / 0.7049 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/1.176, allocations: 0.5598 MB / 0.7054 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002979/1.179, allocations: 2.457 MB / 0.7078 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/1.18, allocations: 0.492 MB / 0.7083 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005693/1.181, allocations: 345.9 kB / 0.7086 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4493/1.63, allocations: 139 MB / 0.8443 GB, free: 276.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/1.63, allocations: 39.16 kB / 0.8444 GB, free: 276.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 2.905e-06/1.63, allocations: 0 / 0.8444 GB, free: 276.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.005559/1.636, allocations: 2.339 MB / 0.8467 GB, free: 275.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/1.636, allocations: 59.34 kB / 0.8467 GB, free: 275.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/1.636, allocations: 264.7 kB / 0.847 GB, free: 274.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/1.636, allocations: 29.7 kB / 0.847 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.665e-05/1.636, allocations: 190.3 kB / 0.8472 GB, free: 274.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/1.636, allocations: 261 kB / 0.8474 GB, free: 274.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/1.636, allocations: 103.4 kB / 0.8475 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001102/1.636, allocations: 353.7 kB / 0.8479 GB, free: 274 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004531/1.637, allocations: 272.8 kB / 0.8481 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005025/1.637, allocations: 388.9 kB / 0.8485 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009451/1.638, allocations: 0.6982 MB / 0.8492 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.638, allocations: 3.844 kB / 0.8492 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001213/1.64, allocations: 0.7952 MB / 0.85 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/1.64, allocations: 8.781 kB / 0.85 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/1.64, allocations: 3.969 kB / 0.85 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002193/1.64, allocations: 61.05 kB / 0.85 GB, free: 272.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/1.641, allocations: 141.8 kB / 0.8502 GB, free: 272.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08966/1.73, allocations: 24.19 MB / 0.8738 GB, free: 250.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000492/1.731, allocations: 27.97 kB / 0.8738 GB, free: 250.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/1.731, allocations: 16 kB / 0.8738 GB, free: 250.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * 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, 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.0002846/1.731, allocations: 200.9 kB / 0.874 GB, free: 250.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-05/1.731, allocations: 43.44 kB / 0.8741 GB, free: 250.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/1.733, allocations: 1.71 MB / 0.8757 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/1.733, allocations: 12 kB / 0.8757 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/1.733, allocations: 7.875 kB / 0.8757 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001216/1.734, allocations: 1.292 MB / 0.877 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/1.736, allocations: 1.751 MB / 0.8787 GB, free: 245.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/1.736, allocations: 5.953 kB / 0.8787 GB, free: 245.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003127/1.736, allocations: 79.88 kB / 0.8788 GB, free: 245 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000308/1.737, allocations: 166.3 kB / 0.879 GB, free: 244.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/1.737, allocations: 8 kB / 0.879 GB, free: 244.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/1.738, allocations: 2.566 MB / 0.8815 GB, free: 242.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/1.738, allocations: 0 / 0.8815 GB, free: 242.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/1.74, allocations: 1.392 MB / 0.8828 GB, free: 240.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.483e-05/1.74, allocations: 116.5 kB / 0.8829 GB, free: 240.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.859e-05/1.74, allocations: 15.94 kB / 0.883 GB, free: 240.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/1.74, allocations: 23.97 kB / 0.883 GB, free: 240.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/1.74, allocations: 43.94 kB / 0.883 GB, free: 240.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/1.74, allocations: 11.94 kB / 0.883 GB, free: 240.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001802/1.741, allocations: 223.1 kB / 0.8832 GB, free: 240.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.741, allocations: 0 / 0.8832 GB, free: 240.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008892/1.75, allocations: 3.189 MB / 0.8864 GB, free: 237.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01577/1.765, allocations: 5.709 MB / 0.8919 GB, free: 232.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002197/1.768, allocations: 1.038 MB / 0.893 GB, free: 231.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/1.768, allocations: 0 / 0.893 GB, free: 231.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006687/1.768, allocations: 0.5074 MB / 0.8934 GB, free: 230.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/1.77, allocations: 402.4 kB / 0.8938 GB, free: 230.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/1.781, allocations: 6.097 MB / 0.8998 GB, free: 223.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/1.781, allocations: 0.8565 MB / 0.9006 GB, free: 223.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004152/1.782, allocations: 146.4 kB / 0.9008 GB, free: 222.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/1.782, allocations: 171.4 kB / 0.9009 GB, free: 222.7 MB / 0.5919 GB Notification: Performance of SimCode: time 1.112e-06/1.782, allocations: 0 / 0.9009 GB, free: 222.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1668/1.949, allocations: 125.2 MB / 1.023 GB, free: 97.27 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.51/19.46, allocations: 11.67 kB / 1.023 GB, free: 97.26 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe 2>&1)