Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.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.PentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel",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.006805/0.006805, allocations: 100.3 kB / 15.73 MB, free: 6 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.001329/0.001329, allocations: 195.1 kB / 16.67 MB, free: 5.922 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.607/1.607, allocations: 205.1 MB / 222.5 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04988/0.04988, allocations: 9.1 MB / 279 MB, free: 12.06 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.001868/0.001868, allocations: 72.47 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3569, allocations: 48.15 MB / 435.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.1421/0.499, allocations: 128.7 MB / 0.5507 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4737/0.9728, allocations: 111.1 MB / 0.6592 GB, free: 288 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007297/0.9736, allocations: 5.375 kB / 0.6592 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003897/0.9775, allocations: 1.382 MB / 0.6606 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006369/0.984, allocations: 1.667 MB / 0.6622 GB, free: 228 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.09381/1.078, allocations: 29.32 MB / 0.6908 GB, free: 7.148 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002724/1.081, allocations: 1.422 MB / 0.6922 GB, free: 6.133 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003071/1.081, allocations: 128.3 kB / 0.6923 GB, free: 6.035 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/1.082, allocations: 0.5997 MB / 0.6929 GB, free: 5.586 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005139/1.083, allocations: 383.2 kB / 0.6933 GB, free: 5.285 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.055e-05/1.083, allocations: 44 kB / 0.6933 GB, free: 5.242 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06537/1.148, allocations: 35 MB / 0.7275 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002646/1.148, allocations: 121.8 kB / 0.7276 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005213/1.149, allocations: 305.1 kB / 0.7279 GB, free: 6.375 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.05309/1.202, allocations: 13.93 MB / 0.7415 GB, free: 9.527 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/1.202, allocations: 3.984 kB / 0.7415 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.683e-06/1.202, allocations: 0 / 0.7415 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.602e-05/1.202, allocations: 0 / 0.7415 GB, free: 9.523 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.006752/1.209, allocations: 2.568 MB / 0.744 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/1.209, allocations: 8.031 kB / 0.744 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/1.209, allocations: 90.45 kB / 0.7441 GB, free: 6.805 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006471/1.21, allocations: 87.3 kB / 0.7442 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/1.21, allocations: 334.3 kB / 0.7445 GB, free: 6.355 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/1.21, allocations: 40.59 kB / 0.7446 GB, free: 6.316 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/1.21, allocations: 32 kB / 0.7446 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/1.212, allocations: 0.6056 MB / 0.7452 GB, free: 5.664 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.152e-05/1.212, allocations: 0 / 0.7452 GB, free: 5.664 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/1.212, allocations: 16 kB / 0.7452 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.029e-05/1.212, allocations: 22.64 kB / 0.7452 GB, free: 5.629 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/1.213, allocations: 0.5476 MB / 0.7458 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002864/1.216, allocations: 2.542 MB / 0.7482 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/1.218, allocations: 0.5035 MB / 0.7487 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000588/1.218, allocations: 344.7 kB / 0.7491 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5569/1.775, allocations: 139 MB / 0.8848 GB, free: 72.05 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/1.775, allocations: 39.03 kB / 0.8848 GB, free: 72.02 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 4.318e-06/1.775, allocations: 0 / 0.8848 GB, free: 72.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005933/1.781, allocations: 2.324 MB / 0.8871 GB, free: 71.54 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/1.781, allocations: 63.56 kB / 0.8871 GB, free: 71.48 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/1.781, allocations: 256.9 kB / 0.8874 GB, free: 71.38 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/1.781, allocations: 35.77 kB / 0.8874 GB, free: 71.34 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.575e-05/1.782, allocations: 181 kB / 0.8876 GB, free: 71.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/1.782, allocations: 269.4 kB / 0.8878 GB, free: 71.08 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/1.782, allocations: 102.4 kB / 0.8879 GB, free: 71.06 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.53e-05/1.782, allocations: 349.6 kB / 0.8883 GB, free: 70.75 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004681/1.782, allocations: 268.7 kB / 0.8885 GB, free: 70.74 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/1.783, allocations: 394.3 kB / 0.8889 GB, free: 70.61 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/1.784, allocations: 0.7072 MB / 0.8896 GB, free: 70.46 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.784, allocations: 0 / 0.8896 GB, free: 70.46 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0014/1.785, allocations: 0.7826 MB / 0.8904 GB, free: 70.37 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/1.785, allocations: 7.844 kB / 0.8904 GB, free: 70.37 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/1.785, allocations: 3 kB / 0.8904 GB, free: 70.37 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002575/1.786, allocations: 57.72 kB / 0.8904 GB, free: 70.36 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/1.786, allocations: 109 kB / 0.8905 GB, free: 70.36 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06507/1.851, allocations: 16.59 MB / 0.9067 GB, free: 64.14 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004946/1.852, allocations: 31.08 kB / 0.9068 GB, free: 64.14 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/1.852, allocations: 21.27 kB / 0.9068 GB, free: 64.14 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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): 43 * 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 prepare postOptimizeDAE: time 0.0003836/1.852, allocations: 183 kB / 0.907 GB, free: 64.03 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/1.852, allocations: 43 kB / 0.907 GB, free: 64 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001913/1.854, allocations: 1.558 MB / 0.9085 GB, free: 63.74 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.258e-05/1.854, allocations: 18.11 kB / 0.9085 GB, free: 63.74 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.854, allocations: 0 / 0.9085 GB, free: 63.74 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001236/1.856, allocations: 1.137 MB / 0.9096 GB, free: 63.26 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/1.858, allocations: 1.59 MB / 0.9112 GB, free: 62.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/1.858, allocations: 3.938 kB / 0.9112 GB, free: 62.91 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/1.858, allocations: 82.64 kB / 0.9113 GB, free: 62.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000197/1.858, allocations: 41.67 kB / 0.9113 GB, free: 62.89 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/1.858, allocations: 14.25 kB / 0.9113 GB, free: 62.89 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007825/1.859, allocations: 1.42 MB / 0.9127 GB, free: 61.55 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.859, allocations: 4.156 kB / 0.9127 GB, free: 61.54 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/1.861, allocations: 1.176 MB / 0.9139 GB, free: 61.33 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/1.861, allocations: 120.3 kB / 0.914 GB, free: 61.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.383e-05/1.861, allocations: 7.656 kB / 0.914 GB, free: 61.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/1.861, allocations: 30.83 kB / 0.914 GB, free: 61.21 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/1.862, allocations: 47.92 kB / 0.9141 GB, free: 61.21 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.712e-05/1.862, allocations: 17.61 kB / 0.9141 GB, free: 61.21 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002324/1.862, allocations: 238.7 kB / 0.9143 GB, free: 61.12 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/1.862, allocations: 0 / 0.9143 GB, free: 61.12 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009928/1.872, allocations: 3.513 MB / 0.9178 GB, free: 60.51 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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02006/1.892, allocations: 6.066 MB / 0.9237 GB, free: 56.36 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00196/1.894, allocations: 0.9502 MB / 0.9246 GB, free: 55.73 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/1.894, allocations: 0.6562 kB / 0.9246 GB, free: 55.73 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008598/1.895, allocations: 497.7 kB / 0.9251 GB, free: 55.42 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/1.897, allocations: 412.1 kB / 0.9255 GB, free: 55.15 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/1.909, allocations: 6.262 MB / 0.9316 GB, free: 50.37 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/1.909, allocations: 0.8437 MB / 0.9324 GB, free: 49.55 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004099/1.91, allocations: 165.2 kB / 0.9326 GB, free: 49.45 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/1.91, allocations: 170.4 kB / 0.9327 GB, free: 49.41 MB / 0.6075 GB Notification: Performance of SimCode: time 8.92e-07/1.91, allocations: 0 / 0.9327 GB, free: 49.41 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4993/2.409, allocations: 132.6 MB / 1.062 GB, free: 189 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/18.52, allocations: 6.703 kB / 1.062 GB, free: 189 MB / 0.67 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)