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.005614/0.005614, allocations: 99.58 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.001465/0.001465, allocations: 192.8 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1209/0.1209, allocations: 2.756 MB / 293.3 MB, free: 3.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 63.89 kB / 405.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2289, allocations: 50.23 MB / 455.6 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.007258/0.2362, allocations: 8.818 MB / 464.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005259/0.2415, allocations: 8.46 MB / 472.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.2417, allocations: 4.969 kB / 472.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005255/0.2422, allocations: 157.2 kB / 473.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003223/0.2426, allocations: 87.36 kB / 473.2 MB, free: 7.992 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.003826/0.2464, allocations: 1.435 MB / 474.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.2467, allocations: 240.9 kB / 474.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.2468, allocations: 23.11 kB / 474.8 MB, free: 7.02 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.1159/0.3627, allocations: 13.66 MB / 488.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.363, allocations: 74.72 kB / 488.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.23e-05/0.363, allocations: 5.594 kB / 488.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001416/0.3644, allocations: 304.1 kB / 488.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.469e-05/0.3645, allocations: 27.45 kB / 488.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.783e-05/0.3646, allocations: 76.05 kB / 489 MB, free: 500 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008837/0.3655, allocations: 357.3 kB / 489.3 MB, free: 348 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3655, allocations: 0 / 489.3 MB, free: 348 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3655, allocations: 1.5 kB / 489.3 MB, free: 348 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3655, allocations: 0.9844 kB / 489.3 MB, free: 348 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.0006556/0.3662, allocations: 494.1 kB / 489.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.3662, allocations: 10.03 kB / 489.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.35e-05/0.3663, allocations: 52.78 kB / 489.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004385/0.3667, allocations: 93.89 kB / 490 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.367, allocations: 192.9 kB / 490.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/0.367, allocations: 25.36 kB / 490.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.034e-05/0.3671, allocations: 9.406 kB / 490.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004436/0.3675, allocations: 253.8 kB / 490.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3675, allocations: 1.094 kB / 490.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3675, allocations: 1.062 kB / 490.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.3676, allocations: 10.33 kB / 490.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004484/0.368, allocations: 243.9 kB / 490.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.3691, allocations: 0.8641 MB / 491.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.3694, allocations: 165.1 kB / 491.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002508/0.3697, allocations: 163.1 kB / 491.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.3697, allocations: 6 kB / 491.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.3698, allocations: 32.36 kB / 491.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.764e-06/0.3698, allocations: 0 / 491.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008282/0.3706, allocations: 413.2 kB / 492.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.3707, allocations: 55.41 kB / 492.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.3708, allocations: 113.9 kB / 492.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.3708, allocations: 25.7 kB / 492.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.37e-05/0.3709, allocations: 108.8 kB / 492.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.913e-05/0.371, allocations: 119.4 kB / 492.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.786e-05/0.3711, allocations: 41.98 kB / 492.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3712, allocations: 322.8 kB / 493.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.3715, allocations: 127.3 kB / 493.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.3717, allocations: 164.4 kB / 493.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.3721, allocations: 208.6 kB / 493.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3721, allocations: 1.188 kB / 493.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005348/0.3727, allocations: 298.1 kB / 493.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3727, allocations: 5.906 kB / 493.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3727, allocations: 1.906 kB / 493.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.3727, allocations: 2.781 kB / 493.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.3729, allocations: 21.08 kB / 493.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.3729, allocations: 3.5 kB / 493.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.373, allocations: 25.92 kB / 493.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.373, allocations: 13.64 kB / 493.9 MB, free: 12.95 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.0001241/0.3732, allocations: 133.8 kB / 494.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.984e-05/0.3732, allocations: 11.88 kB / 494.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005968/0.3738, allocations: 332.4 kB / 494.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.3738, allocations: 7.484 kB / 494.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3738, allocations: 0.7031 kB / 494.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3738, allocations: 0.6094 kB / 494.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003447/0.3742, allocations: 304.2 kB / 494.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3742, allocations: 2.125 kB / 494.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.696e-05/0.3743, allocations: 15.52 kB / 494.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.3743, allocations: 4.547 kB / 494.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.3743, allocations: 1.375 kB / 494.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.3743, allocations: 6.016 kB / 494.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3744, allocations: 0 / 494.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005739/0.3749, allocations: 432 kB / 495.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.625e-05/0.375, allocations: 95.16 kB / 495.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.375, allocations: 2.219 kB / 495.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.3751, allocations: 10.33 kB / 495.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.3752, allocations: 10.38 kB / 495.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.3752, allocations: 3.406 kB / 495.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.547e-05/0.3753, allocations: 86.98 kB / 495.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3753, allocations: 1.375 kB / 495.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003378/0.3756, allocations: 68.36 kB / 495.4 MB, free: 11.88 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.001357/0.377, allocations: 1.127 MB / 496.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006512/0.3777, allocations: 360.1 kB / 496.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3777, allocations: 0 / 496.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003205/0.378, allocations: 239 kB / 497.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000997/0.379, allocations: 77.73 kB / 497.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.3821, allocations: 2.371 MB / 499.6 MB, free: 8.758 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.3825, allocations: 0.7499 MB / 0.4886 GB, free: 8.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.3827, allocations: 21.55 kB / 0.4886 GB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.3828, allocations: 70.53 kB / 0.4887 GB, free: 7.965 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3828, allocations: 1.062 kB / 0.4887 GB, free: 7.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03276/0.4155, allocations: 8.181 MB / 0.4967 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.286/8.702, allocations: 12.17 kB / 0.4967 GB, free: 0.7578 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe 2>&1)