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.00855/0.008551, allocations: 103.7 kB / 15.74 MB, free: 5.953 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.00211/0.00211, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1283/0.1283, allocations: 2.762 MB / 293.3 MB, free: 3.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 71.88 kB / 405.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2343, allocations: 50.23 MB / 455.6 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.006778/0.2411, allocations: 8.819 MB / 464.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005007/0.2461, allocations: 8.455 MB / 472.9 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2463, allocations: 3.938 kB / 472.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004564/0.2468, allocations: 153.6 kB / 473.1 MB, free: 8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.247, allocations: 92.25 kB / 473.1 MB, free: 7.941 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.003002/0.25, allocations: 1.439 MB / 474.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003229/0.2504, allocations: 242 kB / 474.8 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.2504, allocations: 15.56 kB / 474.8 MB, free: 6.973 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.09151/0.3419, allocations: 13.68 MB / 488.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.3422, allocations: 71.86 kB / 488.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.3422, allocations: 5.375 kB / 488.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.3438, allocations: 299.3 kB / 488.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.85e-05/0.3439, allocations: 26.56 kB / 488.9 MB, free: 492 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.344, allocations: 76.27 kB / 489 MB, free: 452 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001164/0.3452, allocations: 350.7 kB / 489.3 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3452, allocations: 0.6094 kB / 489.3 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3452, allocations: 4 kB / 489.3 MB, free: 304 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.3452, allocations: 0 / 489.3 MB, free: 304 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.0007/0.3459, allocations: 0.489 MB / 489.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.346, allocations: 8.688 kB / 489.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.482e-05/0.346, allocations: 49.2 kB / 489.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004467/0.3465, allocations: 93.47 kB / 490 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.3467, allocations: 200.5 kB / 490.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.3468, allocations: 26.59 kB / 490.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/0.3468, allocations: 5.469 kB / 490.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.3472, allocations: 246.7 kB / 490.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3472, allocations: 5.297 kB / 490.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.3472, allocations: 5.25 kB / 490.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.3473, allocations: 13.2 kB / 490.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.3477, allocations: 237.8 kB / 490.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009943/0.3487, allocations: 0.8567 MB / 491.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002791/0.349, allocations: 172.2 kB / 491.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.3492, allocations: 150.7 kB / 491.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.3493, allocations: 5.969 kB / 491.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.3493, allocations: 40.75 kB / 491.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.423e-06/0.3493, allocations: 0 / 491.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007278/0.35, allocations: 411.4 kB / 492.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.3501, allocations: 52.81 kB / 492.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.78e-05/0.3502, allocations: 117.5 kB / 492.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.631e-05/0.3502, allocations: 27.95 kB / 492.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.54e-05/0.3503, allocations: 109.3 kB / 492.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.038e-05/0.3504, allocations: 105.8 kB / 492.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.708e-05/0.3504, allocations: 43.77 kB / 492.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3506, allocations: 322.5 kB / 493.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.3508, allocations: 123.1 kB / 493.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.351, allocations: 172.9 kB / 493.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.3514, allocations: 205 kB / 493.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3514, allocations: 1.656 kB / 493.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005023/0.3519, allocations: 293.9 kB / 493.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3519, allocations: 6.234 kB / 493.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.352, allocations: 2.281 kB / 493.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.352, allocations: 6 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.3521, allocations: 22.14 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.3521, allocations: 1.938 kB / 493.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.3522, allocations: 27.23 kB / 493.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.3523, allocations: 4.734 kB / 493.9 MB, free: 12.93 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.0001083/0.3524, allocations: 129.6 kB / 494 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.93e-05/0.3524, allocations: 13.25 kB / 494.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005474/0.353, allocations: 339.9 kB / 494.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.353, allocations: 6.453 kB / 494.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.353, allocations: 1.438 kB / 494.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.353, allocations: 0.9375 kB / 494.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003093/0.3533, allocations: 300.1 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3533, allocations: 0 / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.954e-05/0.3534, allocations: 16.03 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3534, allocations: 6.172 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3535, allocations: 1.375 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3535, allocations: 1.375 kB / 494.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.3535, allocations: 4.516 kB / 494.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005333/0.354, allocations: 432.1 kB / 495.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.3541, allocations: 93.78 kB / 495.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.584e-05/0.3541, allocations: 9.562 kB / 495.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.3542, allocations: 6.797 kB / 495.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.3543, allocations: 17.89 kB / 495.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.3543, allocations: 3.547 kB / 495.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5e-05/0.3544, allocations: 88.78 kB / 495.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3544, allocations: 0 / 495.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003423/0.3547, allocations: 57.3 kB / 495.4 MB, free: 11.86 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.001161/0.3559, allocations: 1.111 MB / 496.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005797/0.3565, allocations: 355.5 kB / 496.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3565, allocations: 0 / 496.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002933/0.3568, allocations: 247.7 kB / 497.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000549/0.3574, allocations: 89.95 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.002699/0.3601, allocations: 2.372 MB / 499.6 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.3604, allocations: 0.7458 MB / 0.4886 GB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.3605, allocations: 26.12 kB / 0.4886 GB, free: 8.016 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.608e-05/0.3606, allocations: 63.05 kB / 0.4887 GB, free: 7.965 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3606, allocations: 0 / 0.4887 GB, free: 7.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02623/0.3868, allocations: 8.184 MB / 0.4967 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/8.223, allocations: 8.172 kB / 0.4967 GB, free: 0.7734 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)