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.00167/0.00167, 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.001876/0.001876, allocations: 193.7 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1528/0.1528, allocations: 2.762 MB / 293.2 MB, free: 3.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001423, allocations: 63.91 kB / 354.5 MB, free: 4.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09455/0.096, allocations: 50.23 MB / 404.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.01061/0.1067, allocations: 8.811 MB / 413.6 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007773/0.1145, allocations: 8.45 MB / 422 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001902/0.1147, allocations: 0 / 422 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000549/0.1153, allocations: 163 kB / 422.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003658/0.1157, allocations: 95.28 kB / 422.3 MB, free: 440 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.1895/0.3052, allocations: 1.432 MB / 423.7 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004747/0.3057, allocations: 242.2 kB / 423.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.666e-05/0.3058, allocations: 15.47 kB / 423.9 MB, free: 36.74 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.09228/0.3981, allocations: 13.56 MB / 437.5 MB, free: 31.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003594/0.3985, allocations: 67.3 kB / 437.6 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.197e-05/0.3986, allocations: 6.344 kB / 437.6 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002543/0.4011, allocations: 304.8 kB / 437.9 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.548e-05/0.4012, allocations: 33.47 kB / 437.9 MB, free: 31.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.4014, allocations: 69 kB / 438 MB, free: 31.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.4028, allocations: 355.2 kB / 438.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.4028, allocations: 3.938 kB / 438.3 MB, free: 31.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4028, allocations: 0 / 438.3 MB, free: 31.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.4028, allocations: 0 / 438.3 MB, free: 31.67 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.0007249/0.4035, allocations: 497.4 kB / 438.8 MB, free: 31.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.4036, allocations: 9.5 kB / 438.8 MB, free: 31.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.556e-05/0.4036, allocations: 58.84 kB / 438.9 MB, free: 31.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004529/0.4041, allocations: 86.64 kB / 439 MB, free: 31.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.4043, allocations: 195.1 kB / 439.2 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/0.4043, allocations: 20.22 kB / 439.2 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.4044, allocations: 14.12 kB / 439.2 MB, free: 31.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003807/0.4047, allocations: 247.1 kB / 439.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.4048, allocations: 3.219 kB / 439.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.4048, allocations: 3.812 kB / 439.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.4048, allocations: 10.22 kB / 439.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003745/0.4052, allocations: 239.2 kB / 439.7 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008458/0.406, allocations: 0.8569 MB / 440.5 MB, free: 30.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.4063, allocations: 169.1 kB / 440.7 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.4065, allocations: 159 kB / 440.9 MB, free: 30.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.4066, allocations: 10.38 kB / 440.9 MB, free: 30.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.4066, allocations: 34.56 kB / 440.9 MB, free: 30.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.423e-06/0.4066, allocations: 0 / 440.9 MB, free: 30.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0006831/0.4073, allocations: 410.2 kB / 441.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.267e-05/0.4073, allocations: 55.25 kB / 441.4 MB, free: 30.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.806e-05/0.4074, allocations: 113.9 kB / 441.5 MB, free: 30.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.4074, allocations: 25.7 kB / 441.5 MB, free: 29.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.322e-05/0.4075, allocations: 117.8 kB / 441.6 MB, free: 29.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.944e-05/0.4075, allocations: 102.7 kB / 441.7 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-05/0.4076, allocations: 38.64 kB / 441.7 MB, free: 29.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.965e-05/0.4077, allocations: 330.5 kB / 442.1 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.4079, allocations: 119.8 kB / 442.2 MB, free: 29.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.4081, allocations: 162.7 kB / 442.3 MB, free: 29.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.4084, allocations: 208.6 kB / 442.5 MB, free: 29.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.4084, allocations: 0 / 442.5 MB, free: 29.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004678/0.4089, allocations: 300.4 kB / 442.8 MB, free: 29.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.4089, allocations: 6.062 kB / 442.8 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4089, allocations: 0 / 442.8 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.409, allocations: 2.844 kB / 442.8 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.4091, allocations: 29.81 kB / 442.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.4091, allocations: 0 / 442.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.4092, allocations: 28.38 kB / 442.9 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.4092, allocations: 13.23 kB / 442.9 MB, free: 29.31 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 8.223e-05/0.4093, allocations: 122.7 kB / 443 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.4094, allocations: 25.84 kB / 443.1 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005458/0.4099, allocations: 329.2 kB / 443.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.41, allocations: 10.03 kB / 443.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.41, allocations: 4 kB / 443.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.41, allocations: 0 / 443.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.4102, allocations: 294 kB / 443.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4102, allocations: 3.938 kB / 443.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.983e-05/0.4103, allocations: 18.94 kB / 443.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.4103, allocations: 0 / 443.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.4104, allocations: 7.031 kB / 443.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.4104, allocations: 0 / 443.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4104, allocations: 0 / 443.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004547/0.4108, allocations: 428.6 kB / 444.1 MB, free: 28.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.4109, allocations: 102.8 kB / 444.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.4109, allocations: 3.469 kB / 444.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.411, allocations: 3.156 kB / 444.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.4111, allocations: 17.16 kB / 444.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.4111, allocations: 3.188 kB / 444.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.501e-05/0.4111, allocations: 93.06 kB / 444.4 MB, free: 28.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4111, allocations: 0 / 444.4 MB, free: 28.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003566/0.4115, allocations: 56.25 kB / 444.4 MB, free: 28.59 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.0009437/0.4125, allocations: 1.125 MB / 445.5 MB, free: 27.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005422/0.413, allocations: 370.5 kB / 445.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.413, allocations: 0 / 445.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.4133, allocations: 238.1 kB / 446.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005845/0.4139, allocations: 75.91 kB / 446.2 MB, free: 27.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.4161, allocations: 2.343 MB / 448.5 MB, free: 26.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001592/0.4162, allocations: 0.7457 MB / 449.3 MB, free: 25.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.4164, allocations: 25.12 kB / 449.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.842e-05/0.4165, allocations: 67 kB / 449.4 MB, free: 25.53 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4165, allocations: 0 / 449.4 MB, free: 25.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02517/0.4416, allocations: 8.042 MB / 457.4 MB, free: 24.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.617/8.059, allocations: 7.391 kB / 457.4 MB, free: 24.44 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 & /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)