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.006607/0.006607, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001514/0.001515, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.437/1.437, allocations: 205.1 MB / 222.6 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.04734/0.04734, 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.001417/0.001417, allocations: 67.91 kB / 387 MB, free: 8.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3188, allocations: 48.15 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.1381/0.4569, allocations: 128.7 MB / 0.5507 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3603/0.8172, allocations: 111.1 MB / 0.6592 GB, free: 256 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006995/0.818, allocations: 6.438 kB / 0.6592 GB, free: 256 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003034/0.8211, allocations: 1.38 MB / 0.6606 GB, free: 244 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003654/0.8247, allocations: 1.67 MB / 0.6622 GB, free: 192 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.08357/0.9083, allocations: 29.31 MB / 0.6908 GB, free: 7.129 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.9106, allocations: 1.43 MB / 0.6922 GB, free: 6.105 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002589/0.9108, allocations: 126.8 kB / 0.6923 GB, free: 6.008 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.912, allocations: 0.6027 MB / 0.6929 GB, free: 5.559 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004987/0.9125, allocations: 391.4 kB / 0.6933 GB, free: 5.25 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.775e-05/0.9125, allocations: 40 kB / 0.6933 GB, free: 5.211 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07637/0.9889, allocations: 35 MB / 0.7275 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003311/0.9893, allocations: 123.4 kB / 0.7276 GB, free: 6.652 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006417/0.99, allocations: 305.5 kB / 0.7279 GB, free: 6.355 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.05721/1.047, allocations: 13.92 MB / 0.7415 GB, free: 9.512 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.214e-05/1.047, allocations: 11.94 kB / 0.7415 GB, free: 9.5 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.986e-06/1.047, allocations: 0 / 0.7415 GB, free: 9.5 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.701e-05/1.047, allocations: 0 / 0.7415 GB, free: 9.5 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.008846/1.056, allocations: 2.559 MB / 0.744 GB, free: 6.898 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/1.056, allocations: 8.031 kB / 0.744 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/1.056, allocations: 90.52 kB / 0.7441 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006652/1.057, allocations: 91.3 kB / 0.7442 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/1.058, allocations: 341.8 kB / 0.7445 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/1.058, allocations: 28.66 kB / 0.7446 GB, free: 6.309 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.704e-05/1.058, allocations: 32 kB / 0.7446 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/1.059, allocations: 0.604 MB / 0.7452 GB, free: 5.656 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/1.059, allocations: 4 kB / 0.7452 GB, free: 5.652 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.116e-05/1.059, allocations: 12 kB / 0.7452 GB, free: 5.641 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.052e-05/1.059, allocations: 22.48 kB / 0.7452 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/1.06, allocations: 0.5442 MB / 0.7457 GB, free: 5.082 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002604/1.063, allocations: 2.54 MB / 0.7482 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/1.064, allocations: 0.5093 MB / 0.7487 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005029/1.065, allocations: 338.3 kB / 0.749 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5746/1.639, allocations: 139 MB / 0.8848 GB, free: 72 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/1.639, allocations: 44.09 kB / 0.8848 GB, free: 71.96 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.446e-06/1.639, allocations: 0 / 0.8848 GB, free: 71.96 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005432/1.645, allocations: 2.328 MB / 0.8871 GB, free: 71.48 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.331e-05/1.645, allocations: 62.38 kB / 0.8871 GB, free: 71.42 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/1.645, allocations: 249.5 kB / 0.8874 GB, free: 71.32 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/1.645, allocations: 35.48 kB / 0.8874 GB, free: 71.29 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.827e-05/1.645, allocations: 182.6 kB / 0.8876 GB, free: 71.17 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/1.645, allocations: 269.2 kB / 0.8878 GB, free: 71.01 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/1.645, allocations: 102.2 kB / 0.8879 GB, free: 70.99 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.517e-05/1.646, allocations: 352.4 kB / 0.8883 GB, free: 70.68 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004199/1.646, allocations: 264 kB / 0.8885 GB, free: 70.68 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/1.646, allocations: 399.6 kB / 0.8889 GB, free: 70.54 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009283/1.647, allocations: 0.7121 MB / 0.8896 GB, free: 70.39 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/1.647, allocations: 0 / 0.8896 GB, free: 70.39 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001261/1.649, allocations: 0.7844 MB / 0.8904 GB, free: 70.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/1.649, allocations: 5.844 kB / 0.8904 GB, free: 70.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/1.649, allocations: 3.375 kB / 0.8904 GB, free: 70.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002326/1.649, allocations: 63.03 kB / 0.8904 GB, free: 70.29 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/1.649, allocations: 103.8 kB / 0.8905 GB, free: 70.29 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06539/1.715, allocations: 16.59 MB / 0.9067 GB, free: 64.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004252/1.715, allocations: 27.8 kB / 0.9068 GB, free: 64.07 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/1.715, allocations: 24.78 kB / 0.9068 GB, free: 64.07 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.0002176/1.715, allocations: 194.1 kB / 0.907 GB, free: 63.95 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.292e-05/1.716, allocations: 43.09 kB / 0.907 GB, free: 63.93 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/1.717, allocations: 1.539 MB / 0.9085 GB, free: 63.67 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/1.717, allocations: 16.3 kB / 0.9085 GB, free: 63.67 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/1.717, allocations: 3.281 kB / 0.9085 GB, free: 63.67 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001102/1.718, allocations: 1.134 MB / 0.9096 GB, free: 63.19 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/1.72, allocations: 1.603 MB / 0.9112 GB, free: 62.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/1.72, allocations: 0 / 0.9112 GB, free: 62.84 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003253/1.72, allocations: 79.53 kB / 0.9113 GB, free: 62.84 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001966/1.721, allocations: 45.3 kB / 0.9113 GB, free: 62.83 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/1.721, allocations: 13.36 kB / 0.9113 GB, free: 62.83 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006817/1.721, allocations: 1.418 MB / 0.9127 GB, free: 61.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.721, allocations: 3.938 kB / 0.9127 GB, free: 61.48 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/1.723, allocations: 1.18 MB / 0.9139 GB, free: 61.26 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.936e-05/1.723, allocations: 121.9 kB / 0.914 GB, free: 61.14 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/1.723, allocations: 14.69 kB / 0.914 GB, free: 61.14 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002917/1.723, allocations: 21.66 kB / 0.914 GB, free: 61.14 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.48e-05/1.724, allocations: 44.66 kB / 0.9141 GB, free: 61.14 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.366e-05/1.724, allocations: 14.34 kB / 0.9141 GB, free: 61.14 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001916/1.724, allocations: 236.7 kB / 0.9143 GB, free: 61.05 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/1.724, allocations: 4.062 kB / 0.9143 GB, free: 61.05 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007992/1.732, allocations: 3.516 MB / 0.9178 GB, free: 60.33 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.0183/1.75, allocations: 6.066 MB / 0.9237 GB, free: 56.14 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001632/1.752, allocations: 0.9469 MB / 0.9246 GB, free: 55.52 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/1.752, allocations: 0 / 0.9246 GB, free: 55.52 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006976/1.752, allocations: 0.4936 MB / 0.9251 GB, free: 55.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001731/1.754, allocations: 405.4 kB / 0.9255 GB, free: 54.94 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/1.765, allocations: 6.255 MB / 0.9316 GB, free: 50.16 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/1.766, allocations: 0.8561 MB / 0.9324 GB, free: 49.34 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004183/1.766, allocations: 158.7 kB / 0.9326 GB, free: 49.23 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/1.766, allocations: 172 kB / 0.9327 GB, free: 49.2 MB / 0.6075 GB Notification: Performance of SimCode: time 6.12e-07/1.766, allocations: 0 / 0.9327 GB, free: 49.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5065/2.273, allocations: 132.5 MB / 1.062 GB, free: 336.6 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.58/18.85, allocations: 6.078 kB / 1.062 GB, free: 336.6 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)