Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs",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.001184/0.001184, 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.001437/0.001437, allocations: 194.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1217/0.1217, allocations: 2.761 MB / 293.2 MB, free: 3.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 63.89 kB / 354.5 MB, free: 4.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1193, allocations: 50.23 MB / 404.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.00989/0.1293, allocations: 8.813 MB / 413.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006846/0.1362, allocations: 8.443 MB / 422 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.1363, allocations: 0 / 422 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004713/0.1368, allocations: 167 kB / 422.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003063/0.1371, allocations: 87.34 kB / 422.2 MB, free: 432 kB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.wf.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.wf.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.1831/0.3203, allocations: 1.434 MB / 423.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003941/0.3207, allocations: 250.1 kB / 423.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.155e-05/0.3207, allocations: 15.66 kB / 423.9 MB, free: 36.64 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function 'ExternalMedia.Common.CheckCoolPropOptions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFEvalConstants.evaluate: time 0.08986/0.4106, allocations: 13.56 MB / 437.5 MB, free: 31.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002065/0.4108, allocations: 67.25 kB / 437.6 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.4109, allocations: 6.281 kB / 437.6 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001255/0.4121, allocations: 308.6 kB / 437.9 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.412e-05/0.4122, allocations: 29.91 kB / 437.9 MB, free: 31.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.863e-05/0.4123, allocations: 69.41 kB / 438 MB, free: 31.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007686/0.4131, allocations: 351.5 kB / 438.3 MB, free: 31.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.4131, allocations: 0 / 438.3 MB, free: 31.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4131, allocations: 0 / 438.3 MB, free: 31.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.4131, allocations: 3.375 kB / 438.3 MB, free: 31.6 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0006354/0.4138, allocations: 0.4889 MB / 438.8 MB, free: 31.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4138, allocations: 12.06 kB / 438.8 MB, free: 31.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.964e-05/0.4139, allocations: 49.17 kB / 438.9 MB, free: 31.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003975/0.4143, allocations: 94.36 kB / 439 MB, free: 31.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.4144, allocations: 189.9 kB / 439.1 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.988e-05/0.4145, allocations: 21.61 kB / 439.2 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.4145, allocations: 13.88 kB / 439.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/0.4149, allocations: 244.7 kB / 439.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.4149, allocations: 2.969 kB / 439.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.045e-05/0.4149, allocations: 7.938 kB / 439.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.415, allocations: 10.05 kB / 439.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003798/0.4153, allocations: 236.9 kB / 439.7 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008375/0.4162, allocations: 0.8638 MB / 440.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.4164, allocations: 166.2 kB / 440.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/0.4167, allocations: 162.2 kB / 440.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.658e-05/0.4167, allocations: 6.875 kB / 440.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.4168, allocations: 37.97 kB / 440.9 MB, free: 30.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.323e-06/0.4168, allocations: 0 / 440.9 MB, free: 30.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007084/0.4175, allocations: 403.9 kB / 441.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.4175, allocations: 58.72 kB / 441.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.854e-05/0.4176, allocations: 117.5 kB / 441.5 MB, free: 29.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.4176, allocations: 25.7 kB / 441.5 MB, free: 29.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.665e-05/0.4177, allocations: 115.9 kB / 441.6 MB, free: 29.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.223e-05/0.4177, allocations: 102.8 kB / 441.7 MB, free: 29.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-05/0.4178, allocations: 37.09 kB / 441.7 MB, free: 29.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.943e-05/0.4178, allocations: 327.6 kB / 442.1 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.418, allocations: 124 kB / 442.2 MB, free: 29.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.4182, allocations: 168.1 kB / 442.3 MB, free: 29.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.4185, allocations: 201.6 kB / 442.5 MB, free: 29.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4185, allocations: 0 / 442.5 MB, free: 29.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004384/0.419, allocations: 301.6 kB / 442.8 MB, free: 29.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.419, allocations: 10.09 kB / 442.8 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.419, allocations: 0 / 442.8 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.419, allocations: 2.875 kB / 442.8 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.4192, allocations: 28.39 kB / 442.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.4192, allocations: 0 / 442.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.332e-05/0.4193, allocations: 28.81 kB / 442.9 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.4193, allocations: 6.594 kB / 442.9 MB, free: 29.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (fluid.phaseOutput,fluid.state.phase,fluid.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.814e-05/0.4194, allocations: 130.2 kB / 443 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.877e-05/0.4195, allocations: 18.94 kB / 443.1 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004894/0.42, allocations: 338.1 kB / 443.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.42, allocations: 8.156 kB / 443.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.42, allocations: 0 / 443.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.42, allocations: 0 / 443.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002391/0.4202, allocations: 295.5 kB / 443.7 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4202, allocations: 3.938 kB / 443.7 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.553e-05/0.4203, allocations: 18.78 kB / 443.7 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4203, allocations: 0 / 443.7 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.4204, allocations: 3.375 kB / 443.7 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4204, allocations: 0 / 443.7 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4204, allocations: 0 / 443.7 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004548/0.4208, allocations: 428.5 kB / 444.1 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.4209, allocations: 102 kB / 444.2 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.4209, allocations: 6.266 kB / 444.2 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.421, allocations: 3 kB / 444.2 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.4211, allocations: 15.09 kB / 444.3 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.4211, allocations: 2.938 kB / 444.3 MB, free: 28.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.348e-05/0.4211, allocations: 89.19 kB / 444.3 MB, free: 28.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4211, allocations: 0 / 444.3 MB, free: 28.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003325/0.4215, allocations: 63.88 kB / 444.4 MB, free: 28.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fluid.state.phase,fluid.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009603/0.4224, allocations: 1.128 MB / 445.5 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005738/0.423, allocations: 371.9 kB / 445.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.423, allocations: 0 / 445.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.4233, allocations: 237.5 kB / 446.1 MB, free: 27.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005849/0.4239, allocations: 72.22 kB / 446.2 MB, free: 27.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.4262, allocations: 2.336 MB / 448.5 MB, free: 26.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.4264, allocations: 0.7454 MB / 449.3 MB, free: 25.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001307/0.4265, allocations: 28.36 kB / 449.3 MB, free: 25.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.128e-05/0.4266, allocations: 66.77 kB / 449.4 MB, free: 25.46 MB / 350.1 MB Notification: Performance of SimCode: time 2.074e-06/0.4266, allocations: 0 / 449.4 MB, free: 25.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.4524, allocations: 8.054 MB / 457.4 MB, free: 24.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/8.105, allocations: 4.266 kB / 457.4 MB, free: 24.36 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe 2>&1)