Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state.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_state,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs_state",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs_state",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.001579/0.00158, 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.002044/0.002044, allocations: 193.8 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.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1469/0.1469, allocations: 2.769 MB / 293.2 MB, free: 3.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 354.5 MB, free: 4.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.09246, allocations: 50.23 MB / 404.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state): time 0.008854/0.1014, allocations: 8.113 MB / 412.9 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007322/0.1021, allocations: 0.9341 MB / 413.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.091e-05/0.1022, allocations: 4 kB / 413.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.1024, allocations: 75.58 kB / 413.9 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.919e-05/0.1025, allocations: 19.8 kB / 413.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000275/0.1027, allocations: 115.1 kB / 414 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.974e-05/0.1028, allocations: 63.56 kB / 414.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.342e-05/0.1029, allocations: 4 kB / 414.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.681e-05/0.1029, allocations: 19.92 kB / 414.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.074e-05/0.103, allocations: 23.92 kB / 414.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.898e-06/0.103, allocations: 3.938 kB / 414.1 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2324/0.3354, allocations: 13.52 MB / 427.6 MB, free: 43.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.63e-05/0.3354, allocations: 4.906 kB / 427.6 MB, free: 43.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.721e-05/0.3355, allocations: 23.8 kB / 427.7 MB, free: 43.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.3358, allocations: 86.97 kB / 427.7 MB, free: 43.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3358, allocations: 0 / 427.7 MB, free: 43.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3358, allocations: 4 kB / 427.7 MB, free: 43.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.3358, allocations: 1.406 kB / 427.7 MB, free: 43.42 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0002957/0.3361, allocations: 361.2 kB / 428.1 MB, free: 43.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.3361, allocations: 12.12 kB / 428.1 MB, free: 43.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.291e-05/0.3362, allocations: 37.55 kB / 428.1 MB, free: 43.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.754e-05/0.3363, allocations: 21.52 kB / 428.2 MB, free: 43.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.379e-05/0.3363, allocations: 166.9 kB / 428.3 MB, free: 42.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-06/0.3363, allocations: 3.719 kB / 428.3 MB, free: 42.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.3364, allocations: 7.188 kB / 428.3 MB, free: 42.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.3365, allocations: 69.8 kB / 428.4 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.3365, allocations: 3.938 kB / 428.4 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.3365, allocations: 7.547 kB / 428.4 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3365, allocations: 0 / 428.4 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.108e-05/0.3366, allocations: 34.45 kB / 428.5 MB, free: 42.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000284/0.3368, allocations: 310.1 kB / 428.8 MB, free: 42.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.849e-05/0.3369, allocations: 57.27 kB / 428.8 MB, free: 42.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.569e-05/0.3369, allocations: 38.73 kB / 428.9 MB, free: 42.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.337, allocations: 0 / 428.9 MB, free: 42.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.153e-05/0.337, allocations: 37.11 kB / 428.9 MB, free: 42.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.337, allocations: 0 / 428.9 MB, free: 42.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0001916/0.3372, allocations: 114.6 kB / 429 MB, free: 42.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.875e-05/0.3372, allocations: 51.41 kB / 429.1 MB, free: 42.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.477e-05/0.3372, allocations: 91.17 kB / 429.1 MB, free: 42.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.304e-06/0.3373, allocations: 29.7 kB / 429.2 MB, free: 42.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.26e-05/0.3373, allocations: 84.98 kB / 429.3 MB, free: 42.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.182e-05/0.3373, allocations: 51.03 kB / 429.3 MB, free: 42.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.3373, allocations: 26.16 kB / 429.3 MB, free: 42.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.88e-05/0.3374, allocations: 324.5 kB / 429.6 MB, free: 41.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.556e-05/0.3374, allocations: 15.81 kB / 429.7 MB, free: 41.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.14e-05/0.3374, allocations: 19.05 kB / 429.7 MB, free: 41.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.214e-05/0.3375, allocations: 63.12 kB / 429.7 MB, free: 41.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3375, allocations: 7.094 kB / 429.7 MB, free: 41.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 9.248e-05/0.3376, allocations: 87.31 kB / 429.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.3376, allocations: 6.438 kB / 429.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3377, allocations: 0 / 429.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3377, allocations: 1.031 kB / 429.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.835e-05/0.3377, allocations: 3.062 kB / 429.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.3377, allocations: 0 / 429.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.591e-05/0.3378, allocations: 1.469 kB / 429.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.657e-06/0.3378, allocations: 9.438 kB / 429.9 MB, free: 41.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (fluid.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 4.645e-05/0.3378, allocations: 118.4 kB / 430 MB, free: 41.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.624e-05/0.3379, allocations: 3.906 kB / 430 MB, free: 41.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.374e-05/0.3379, allocations: 4.578 kB / 430 MB, free: 41.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3379, allocations: 10.11 kB / 430 MB, free: 41.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3379, allocations: 0 / 430 MB, free: 41.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3379, allocations: 0 / 430 MB, free: 41.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.338, allocations: 192.8 kB / 430.2 MB, free: 41.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3381, allocations: 0 / 430.2 MB, free: 41.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.009e-05/0.3381, allocations: 4.5 kB / 430.2 MB, free: 41.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.3381, allocations: 0 / 430.2 MB, free: 41.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.3381, allocations: 3.375 kB / 430.2 MB, free: 41.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3381, allocations: 6.75 kB / 430.2 MB, free: 41.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3381, allocations: 3.938 kB / 430.2 MB, free: 41.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.3382, allocations: 185.6 kB / 430.4 MB, free: 41.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.3383, allocations: 87.86 kB / 430.5 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.3383, allocations: 0 / 430.5 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.243e-05/0.3383, allocations: 3.375 kB / 430.5 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.48e-05/0.3383, allocations: 2.938 kB / 430.5 MB, free: 41.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.3384, allocations: 6.938 kB / 430.5 MB, free: 41.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.317e-06/0.3384, allocations: 79.22 kB / 430.6 MB, free: 41.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3384, allocations: 0 / 430.6 MB, free: 41.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002315/0.3386, allocations: 21.53 kB / 430.6 MB, free: 41.04 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: 1 (fluid.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003602/0.339, allocations: 0.7533 MB / 431.3 MB, free: 40.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001527/0.3391, allocations: 111 kB / 431.4 MB, free: 40.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3392, allocations: 3.281 kB / 431.4 MB, free: 40.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.818e-05/0.3392, allocations: 95.7 kB / 431.5 MB, free: 40.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008858/0.3401, allocations: 32.77 kB / 431.6 MB, free: 40.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004932/0.3406, allocations: 323.6 kB / 431.9 MB, free: 40.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.3407, allocations: 0.718 MB / 432.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.443e-05/0.3408, allocations: 10.06 kB / 432.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.3409, allocations: 40.38 kB / 432.6 MB, free: 39.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3409, allocations: 0 / 432.6 MB, free: 39.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.3579, allocations: 3.943 MB / 436.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.655/8.013, allocations: 11.8 kB / 436.6 MB, free: 38.72 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state_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_state.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs_state.pipe 2>&1)