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.005786/0.005786, allocations: 97.81 kB / 15.73 MB, free: 6.004 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.001243/0.001243, allocations: 195 kB / 16.67 MB, free: 5.934 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.517/1.517, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1187/0.1187, allocations: 2.765 MB / 293.3 MB, free: 3.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 63.89 kB / 405.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2767, allocations: 50.23 MB / 455.6 MB, free: 20.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.007568/0.2843, allocations: 8.823 MB / 464.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005896/0.2903, allocations: 8.46 MB / 472.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.2905, allocations: 5.062 kB / 472.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005689/0.291, allocations: 153 kB / 473.1 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003424/0.2914, allocations: 88.61 kB / 473.1 MB, free: 7.973 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.003839/0.2952, allocations: 1.431 MB / 474.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.2956, allocations: 250.3 kB / 474.8 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.29e-05/0.2957, allocations: 11.03 kB / 474.8 MB, free: 7.008 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.09584/0.3916, allocations: 13.68 MB / 488.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002308/0.3918, allocations: 67.08 kB / 488.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.3919, allocations: 5.938 kB / 488.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001715/0.3936, allocations: 308 kB / 488.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.72e-05/0.3937, allocations: 26.86 kB / 488.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.3938, allocations: 78.5 kB / 489 MB, free: 468 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001801/0.3956, allocations: 356 kB / 489.3 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3957, allocations: 0 / 489.3 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3957, allocations: 1.094 kB / 489.3 MB, free: 320 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.3957, allocations: 0 / 489.3 MB, free: 320 kB / 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.0009585/0.3966, allocations: 494 kB / 489.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/0.3967, allocations: 10.34 kB / 489.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.273e-05/0.3968, allocations: 49.03 kB / 489.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005402/0.3974, allocations: 96.38 kB / 490 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.3977, allocations: 197.3 kB / 490.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.276e-05/0.3977, allocations: 22.28 kB / 490.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.561e-05/0.3977, allocations: 10.38 kB / 490.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005138/0.3983, allocations: 252 kB / 490.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3983, allocations: 0 / 490.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.3983, allocations: 9.344 kB / 490.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.3983, allocations: 15.47 kB / 490.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004771/0.3988, allocations: 239.7 kB / 490.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.4001, allocations: 0.8637 MB / 491.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.4004, allocations: 172.2 kB / 491.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.4007, allocations: 151.9 kB / 491.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.88e-05/0.4007, allocations: 12.7 kB / 491.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.4008, allocations: 34.56 kB / 491.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.863e-06/0.4008, allocations: 0 / 491.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008013/0.4016, allocations: 407.1 kB / 492.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.4016, allocations: 57.91 kB / 492.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.4018, allocations: 111.8 kB / 492.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.4018, allocations: 27.77 kB / 492.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.507e-05/0.4019, allocations: 107 kB / 492.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.499e-05/0.4019, allocations: 117.1 kB / 492.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-05/0.402, allocations: 44.77 kB / 492.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4021, allocations: 322.3 kB / 493.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/0.4024, allocations: 119.6 kB / 493.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.4027, allocations: 176.7 kB / 493.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004016/0.4031, allocations: 204.7 kB / 493.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4031, allocations: 1.406 kB / 493.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005608/0.4037, allocations: 297.6 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.4037, allocations: 5.375 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.4037, allocations: 2.578 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.4037, allocations: 3.594 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.4039, allocations: 21.05 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.4039, allocations: 2.062 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.404, allocations: 31.3 kB / 493.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.404, allocations: 4.531 kB / 493.9 MB, free: 12.92 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.0001316/0.4042, allocations: 135.8 kB / 494.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.463e-05/0.4042, allocations: 10.53 kB / 494.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006102/0.4049, allocations: 331.7 kB / 494.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/0.4049, allocations: 7.109 kB / 494.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4049, allocations: 0 / 494.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.4049, allocations: 2.453 kB / 494.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003644/0.4053, allocations: 299.8 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4053, allocations: 5.375 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.4054, allocations: 15.94 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.4054, allocations: 0.5156 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.4054, allocations: 1.891 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.4054, allocations: 1.375 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4054, allocations: 0 / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006019/0.406, allocations: 440.3 kB / 495.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.4061, allocations: 95.25 kB / 495.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.4061, allocations: 4.703 kB / 495.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.4063, allocations: 11.61 kB / 495.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.994e-05/0.4063, allocations: 10.09 kB / 495.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.4064, allocations: 7.594 kB / 495.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.134e-05/0.4064, allocations: 87.72 kB / 495.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4064, allocations: 1.375 kB / 495.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.4068, allocations: 68.03 kB / 495.4 MB, free: 11.84 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.001905/0.4088, allocations: 1.111 MB / 496.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006294/0.4094, allocations: 356.1 kB / 496.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4094, allocations: 4 kB / 496.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003121/0.4097, allocations: 243.3 kB / 497.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005936/0.4103, allocations: 77.91 kB / 497.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00318/0.4135, allocations: 2.375 MB / 499.6 MB, free: 8.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.4139, allocations: 0.7461 MB / 0.4886 GB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.414, allocations: 30.36 kB / 0.4886 GB, free: 8.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.4141, allocations: 63.86 kB / 0.4887 GB, free: 7.953 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4141, allocations: 0 / 0.4887 GB, free: 7.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.4403, allocations: 8.186 MB / 0.4967 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.169/8.61, allocations: 12.3 kB / 0.4967 GB, free: 0.7539 MB / 366.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)