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.005894/0.005894, allocations: 100.8 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.001472/0.001472, allocations: 189.5 kB / 16.67 MB, free: 5.934 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.384/1.384, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05028/0.05028, allocations: 9.088 MB / 279 MB, free: 12.08 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.001991/0.001991, allocations: 59.91 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3041, allocations: 48.16 MB / 435.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.161/0.4651, allocations: 128.7 MB / 0.5507 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4523/0.9174, allocations: 111.1 MB / 0.6592 GB, free: 276 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007222/0.9182, allocations: 9.5 kB / 0.6592 GB, free: 272 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00363/0.9219, allocations: 1.38 MB / 0.6606 GB, free: 264 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004795/0.9267, allocations: 1.662 MB / 0.6622 GB, free: 216 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.09536/1.022, allocations: 29.34 MB / 0.6908 GB, free: 7.184 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00243/1.025, allocations: 1.423 MB / 0.6922 GB, free: 6.164 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002969/1.025, allocations: 126 kB / 0.6923 GB, free: 6.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/1.026, allocations: 0.6027 MB / 0.6929 GB, free: 5.625 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005932/1.027, allocations: 376.7 kB / 0.6933 GB, free: 5.328 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.42e-05/1.027, allocations: 44 kB / 0.6933 GB, free: 5.285 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07362/1.101, allocations: 35.01 MB / 0.7275 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000343/1.101, allocations: 114.2 kB / 0.7276 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006817/1.102, allocations: 313.9 kB / 0.7279 GB, free: 6.355 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0555/1.157, allocations: 13.97 MB / 0.7416 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/1.157, allocations: 0 / 0.7416 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.844e-06/1.157, allocations: 0 / 0.7416 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.053e-05/1.157, allocations: 0 / 0.7416 GB, free: 9.469 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.007315/1.165, allocations: 2.68 MB / 0.7442 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/1.165, allocations: 8.031 kB / 0.7442 GB, free: 6.734 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/1.165, allocations: 86.52 kB / 0.7443 GB, free: 6.641 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000635/1.165, allocations: 87.62 kB / 0.7444 GB, free: 6.555 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005947/1.166, allocations: 349.6 kB / 0.7447 GB, free: 6.176 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/1.166, allocations: 32.59 kB / 0.7447 GB, free: 6.145 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.233e-05/1.166, allocations: 35.94 kB / 0.7448 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/1.167, allocations: 0.5972 MB / 0.7453 GB, free: 5.492 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/1.167, allocations: 7.891 kB / 0.7453 GB, free: 5.484 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.259e-05/1.168, allocations: 12 kB / 0.7454 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.948e-05/1.168, allocations: 21.55 kB / 0.7454 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/1.169, allocations: 0.5415 MB / 0.7459 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003078/1.172, allocations: 2.552 MB / 0.7484 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/1.173, allocations: 0.5024 MB / 0.7489 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005731/1.174, allocations: 334.3 kB / 0.7492 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6193/1.793, allocations: 139 MB / 0.8849 GB, free: 71.55 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/1.793, allocations: 37.31 kB / 0.885 GB, free: 71.51 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 4.358e-06/1.793, allocations: 0 / 0.885 GB, free: 71.51 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.00563/1.799, allocations: 2.339 MB / 0.8872 GB, free: 71.03 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/1.799, allocations: 59.72 kB / 0.8873 GB, free: 70.96 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/1.799, allocations: 252.3 kB / 0.8875 GB, free: 70.86 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/1.799, allocations: 30.17 kB / 0.8876 GB, free: 70.83 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.918e-05/1.799, allocations: 183.3 kB / 0.8877 GB, free: 70.71 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/1.799, allocations: 292 kB / 0.888 GB, free: 70.56 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/1.8, allocations: 100.8 kB / 0.8881 GB, free: 70.54 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.765e-05/1.8, allocations: 351.2 kB / 0.8885 GB, free: 70.23 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004367/1.8, allocations: 266.4 kB / 0.8887 GB, free: 70.22 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000512/1.801, allocations: 392.8 kB / 0.8891 GB, free: 70.09 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/1.802, allocations: 0.713 MB / 0.8898 GB, free: 69.94 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.802, allocations: 0 / 0.8898 GB, free: 69.94 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001409/1.803, allocations: 0.7884 MB / 0.8906 GB, free: 69.85 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/1.803, allocations: 6.719 kB / 0.8906 GB, free: 69.85 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/1.803, allocations: 6.188 kB / 0.8906 GB, free: 69.84 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002504/1.803, allocations: 62.66 kB / 0.8906 GB, free: 69.83 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/1.804, allocations: 100.1 kB / 0.8907 GB, free: 69.83 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06421/1.868, allocations: 16.61 MB / 0.9069 GB, free: 63.63 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004604/1.869, allocations: 28.56 kB / 0.907 GB, free: 63.63 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/1.869, allocations: 20.77 kB / 0.907 GB, free: 63.63 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.0002586/1.869, allocations: 194.8 kB / 0.9072 GB, free: 63.51 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.618e-05/1.869, allocations: 39.45 kB / 0.9072 GB, free: 63.49 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/1.871, allocations: 1.55 MB / 0.9087 GB, free: 63.23 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/1.871, allocations: 17.95 kB / 0.9087 GB, free: 63.23 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/1.871, allocations: 0 / 0.9087 GB, free: 63.23 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001171/1.872, allocations: 1.137 MB / 0.9099 GB, free: 62.75 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/1.874, allocations: 1.598 MB / 0.9114 GB, free: 62.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.874, allocations: 0 / 0.9114 GB, free: 62.41 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/1.874, allocations: 76.67 kB / 0.9115 GB, free: 62.41 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/1.874, allocations: 48.94 kB / 0.9115 GB, free: 62.39 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/1.874, allocations: 14.75 kB / 0.9115 GB, free: 62.39 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007384/1.875, allocations: 1.422 MB / 0.9129 GB, free: 61.04 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.875, allocations: 4.656 kB / 0.9129 GB, free: 61.04 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001616/1.877, allocations: 1.178 MB / 0.9141 GB, free: 60.82 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/1.877, allocations: 120.7 kB / 0.9142 GB, free: 60.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.86e-05/1.877, allocations: 9.188 kB / 0.9142 GB, free: 60.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002972/1.877, allocations: 28.17 kB / 0.9142 GB, free: 60.71 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.773e-05/1.877, allocations: 39.38 kB / 0.9143 GB, free: 60.71 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/1.877, allocations: 21.27 kB / 0.9143 GB, free: 60.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002141/1.878, allocations: 243.1 kB / 0.9145 GB, free: 60.62 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.878, allocations: 0 / 0.9145 GB, free: 60.62 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008577/1.886, allocations: 3.57 MB / 0.918 GB, free: 59.9 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.01863/1.905, allocations: 6.125 MB / 0.924 GB, free: 55.36 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001815/1.907, allocations: 0.9512 MB / 0.9249 GB, free: 54.74 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/1.907, allocations: 0.6562 kB / 0.9249 GB, free: 54.74 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007518/1.907, allocations: 0.49 MB / 0.9254 GB, free: 54.42 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/1.909, allocations: 405.3 kB / 0.9258 GB, free: 54.16 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/1.922, allocations: 6.342 MB / 0.932 GB, free: 49.29 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/1.922, allocations: 0.8581 MB / 0.9328 GB, free: 48.47 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004518/1.922, allocations: 158.6 kB / 0.933 GB, free: 48.36 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/1.923, allocations: 161.7 kB / 0.9331 GB, free: 48.33 MB / 0.6075 GB Notification: Performance of SimCode: time 7.12e-07/1.923, allocations: 4 kB / 0.9331 GB, free: 48.32 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4948/2.417, allocations: 132.3 MB / 1.062 GB, free: 337.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.06/19.48, allocations: 10.14 kB / 1.062 GB, free: 337.3 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)