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.008192/0.008192, allocations: 100.5 kB / 15.73 MB, free: 6.062 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.001571/0.001571, allocations: 195.8 kB / 16.67 MB, free: 5.965 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01258/0.01258, allocations: 2.779 MB / 293.3 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 64.12 kB / 405.4 MB, free: 29.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08758/0.08941, allocations: 50.24 MB / 455.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.01111/0.1006, allocations: 8.82 MB / 464.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008195/0.1088, allocations: 8.458 MB / 472.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.1089, allocations: 0 / 472.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005387/0.1095, allocations: 167 kB / 473.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000306/0.1098, allocations: 87.36 kB / 473.2 MB, free: 9.695 MB / 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.003681/0.1135, allocations: 1.428 MB / 474.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.1139, allocations: 242.9 kB / 474.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.722e-05/0.114, allocations: 21.55 kB / 474.8 MB, free: 8 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.1329/0.2469, allocations: 13.67 MB / 488.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.2471, allocations: 71.62 kB / 488.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.432e-05/0.2471, allocations: 8 kB / 488.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.2484, allocations: 300 kB / 488.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.013e-05/0.2485, allocations: 19.91 kB / 488.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.2486, allocations: 79.61 kB / 489 MB, free: 11.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009331/0.2495, allocations: 354.9 kB / 489.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2496, allocations: 0 / 489.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2496, allocations: 0 / 489.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.2496, allocations: 0 / 489.3 MB, free: 10.66 MB / 366.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.0007585/0.2503, allocations: 494.4 kB / 489.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2504, allocations: 12.03 kB / 489.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.108e-05/0.2505, allocations: 50.73 kB / 489.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000424/0.2509, allocations: 96.7 kB / 490 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.2511, allocations: 196.2 kB / 490.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/0.2512, allocations: 24.11 kB / 490.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.2512, allocations: 8 kB / 490.2 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004412/0.2516, allocations: 255.2 kB / 490.4 MB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.2517, allocations: 0 / 490.4 MB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.2517, allocations: 8 kB / 490.5 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.2517, allocations: 4 kB / 490.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.2521, allocations: 239.9 kB / 490.7 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2532, allocations: 0.862 MB / 491.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/0.2535, allocations: 170.7 kB / 491.7 MB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/0.2538, allocations: 153.1 kB / 491.9 MB, free: 7.914 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.2539, allocations: 11.94 kB / 491.9 MB, free: 7.902 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.2539, allocations: 30.56 kB / 491.9 MB, free: 7.863 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.563e-06/0.2539, allocations: 0 / 491.9 MB, free: 7.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.000815/0.2547, allocations: 410.1 kB / 492.3 MB, free: 7.461 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.2548, allocations: 51.41 kB / 492.4 MB, free: 7.398 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.2549, allocations: 125.8 kB / 492.5 MB, free: 7.266 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2549, allocations: 25.7 kB / 492.5 MB, free: 7.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.255, allocations: 108.6 kB / 492.6 MB, free: 7.125 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.926e-05/0.2551, allocations: 119 kB / 492.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.697e-05/0.2552, allocations: 37.7 kB / 492.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2553, allocations: 322.8 kB / 493.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.2556, allocations: 124.3 kB / 493.2 MB, free: 6.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.2558, allocations: 165.8 kB / 493.4 MB, free: 6.336 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/0.2563, allocations: 216.9 kB / 493.6 MB, free: 6.105 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2563, allocations: 0 / 493.6 MB, free: 6.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005262/0.2568, allocations: 293.3 kB / 493.9 MB, free: 5.812 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.2568, allocations: 11.89 kB / 493.9 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2568, allocations: 4 kB / 493.9 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.2569, allocations: 0 / 493.9 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.257, allocations: 27.92 kB / 493.9 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.257, allocations: 0 / 493.9 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.2571, allocations: 27.77 kB / 493.9 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.2571, allocations: 4 kB / 493.9 MB, free: 5.738 MB / 366.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 0.0001168/0.2573, allocations: 129.9 kB / 494.1 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.929e-05/0.2573, allocations: 15.91 kB / 494.1 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005872/0.2579, allocations: 330.9 kB / 494.4 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.2579, allocations: 7.984 kB / 494.4 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2579, allocations: 0 / 494.4 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2579, allocations: 0 / 494.4 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003615/0.2583, allocations: 297.2 kB / 494.7 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2583, allocations: 4 kB / 494.7 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.578e-05/0.2584, allocations: 23.98 kB / 494.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.2584, allocations: 3.984 kB / 494.7 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.2584, allocations: 3.984 kB / 494.7 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.2584, allocations: 3.938 kB / 494.7 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2585, allocations: 0 / 494.7 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.2591, allocations: 431.1 kB / 495.2 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.33e-05/0.2591, allocations: 96.89 kB / 495.3 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.2592, allocations: 0 / 495.3 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.2593, allocations: 12 kB / 495.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.808e-05/0.2593, allocations: 15.97 kB / 495.3 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2594, allocations: 0 / 495.3 MB, free: 4.289 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.391e-05/0.2594, allocations: 91.22 kB / 495.4 MB, free: 4.199 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2594, allocations: 0 / 495.4 MB, free: 4.199 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003373/0.2598, allocations: 63.88 kB / 495.4 MB, free: 4.137 MB / 366.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.001353/0.2611, allocations: 1.135 MB / 496.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006323/0.2618, allocations: 358.3 kB / 496.9 MB, free: 2.617 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.2618, allocations: 4.312 kB / 496.9 MB, free: 2.613 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000332/0.2621, allocations: 235.7 kB / 497.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005628/0.2627, allocations: 72.06 kB / 497.2 MB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.2657, allocations: 2.381 MB / 499.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004421/0.2662, allocations: 0.7448 MB / 0.4886 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.2663, allocations: 25.12 kB / 0.4886 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.2664, allocations: 71.34 kB / 0.4887 GB, free: 14.95 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2664, allocations: 0 / 0.4887 GB, free: 14.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03214/0.2985, allocations: 8.182 MB / 0.4967 GB, free: 6.809 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.356/8.655, allocations: 16.11 kB / 0.4967 GB, free: 6.793 MB / 382.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)