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.005158/0.005158, allocations: 101.6 kB / 15.73 MB, free: 6.449 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.001213/0.001213, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.524/1.524, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1166/0.1166, allocations: 2.755 MB / 293.3 MB, free: 3.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 64.03 kB / 405.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2914, 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_state): time 0.007893/0.2993, allocations: 8.118 MB / 463.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006023/0.2999, allocations: 0.9494 MB / 464.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.521e-05/0.3, allocations: 0 / 464.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002444/0.3002, allocations: 74.06 kB / 464.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.195e-05/0.3003, allocations: 22.81 kB / 464.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.3006, allocations: 121.1 kB / 464.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.359e-05/0.3007, allocations: 59.3 kB / 465 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.648e-05/0.3007, allocations: 10.59 kB / 465 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.49e-05/0.3008, allocations: 13.56 kB / 465 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.927e-05/0.3008, allocations: 14.89 kB / 465 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.008e-05/0.3008, allocations: 3 kB / 465 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07819/0.379, allocations: 13.65 MB / 478.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.123e-05/0.3791, allocations: 5.844 kB / 478.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.951e-05/0.3791, allocations: 25.72 kB / 478.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.3795, allocations: 80.27 kB / 478.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3795, allocations: 4 kB / 478.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3795, allocations: 1.188 kB / 478.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.718e-06/0.3795, allocations: 0 / 478.8 MB, free: 7.605 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.0003617/0.3799, allocations: 358.7 kB / 479.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.38, allocations: 9.953 kB / 479.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.875e-05/0.38, allocations: 38.47 kB / 479.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.3801, allocations: 22.55 kB / 479.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.258e-05/0.3802, allocations: 170.9 kB / 479.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3802, allocations: 9.312 kB / 479.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.3802, allocations: 6.438 kB / 479.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.3804, allocations: 64.27 kB / 479.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.3804, allocations: 7.984 kB / 479.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-06/0.3804, allocations: 1.156 kB / 479.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3804, allocations: 3.203 kB / 479.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.036e-05/0.3805, allocations: 34.59 kB / 479.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003384/0.3808, allocations: 313.9 kB / 479.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.378e-05/0.3809, allocations: 46.48 kB / 479.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.402e-05/0.3809, allocations: 36.41 kB / 479.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.381, allocations: 9.641 kB / 479.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.742e-05/0.381, allocations: 32.42 kB / 479.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.381, allocations: 0 / 479.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0002491/0.3812, allocations: 112.1 kB / 480 MB, free: 6.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.3813, allocations: 53.28 kB / 480.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.051e-05/0.3813, allocations: 97.8 kB / 480.2 MB, free: 6.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.167e-06/0.3813, allocations: 26.95 kB / 480.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.066e-05/0.3813, allocations: 85.2 kB / 480.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.3814, allocations: 61.41 kB / 480.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.3814, allocations: 22.97 kB / 480.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.648e-05/0.3815, allocations: 323.8 kB / 480.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.226e-05/0.3815, allocations: 15.69 kB / 480.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.803e-05/0.3816, allocations: 25.94 kB / 480.7 MB, free: 5.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.49e-05/0.3816, allocations: 61.05 kB / 480.8 MB, free: 5.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3816, allocations: 0 / 480.8 MB, free: 5.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001045/0.3818, allocations: 89.67 kB / 480.9 MB, free: 5.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3818, allocations: 5 kB / 480.9 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3818, allocations: 5.875 kB / 480.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.3818, allocations: 0 / 480.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.482e-05/0.3819, allocations: 4.188 kB / 480.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.3819, allocations: 0 / 480.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.594e-05/0.3819, allocations: 9.031 kB / 480.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.3819, allocations: 2.281 kB / 480.9 MB, free: 5.594 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 5.384e-05/0.382, allocations: 112.8 kB / 481 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.57e-05/0.382, allocations: 5.719 kB / 481 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.382, allocations: 10.23 kB / 481 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3821, allocations: 5.156 kB / 481 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3821, allocations: 0 / 481 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3821, allocations: 5.656 kB / 481 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.3822, allocations: 185.9 kB / 481.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3822, allocations: 0 / 481.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.963e-05/0.3822, allocations: 3.219 kB / 481.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3823, allocations: 0.6562 kB / 481.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.3823, allocations: 1.062 kB / 481.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3823, allocations: 1.062 kB / 481.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3823, allocations: 0.7031 kB / 481.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001272/0.3824, allocations: 192.4 kB / 481.4 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.987e-05/0.3824, allocations: 79.83 kB / 481.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.3824, allocations: 0.75 kB / 481.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.24e-05/0.3825, allocations: 1.219 kB / 481.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.433e-05/0.3825, allocations: 10.8 kB / 481.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.3825, allocations: 2.172 kB / 481.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.067e-05/0.3826, allocations: 75.28 kB / 481.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3826, allocations: 0 / 481.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.3828, allocations: 28.39 kB / 481.6 MB, free: 4.891 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.0004363/0.3832, allocations: 0.7469 MB / 482.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001939/0.3834, allocations: 111.7 kB / 482.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3835, allocations: 0 / 482.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.268e-05/0.3835, allocations: 92.89 kB / 482.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.3846, allocations: 40.95 kB / 482.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005731/0.3852, allocations: 317.3 kB / 482.9 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001754/0.3854, allocations: 0.7154 MB / 483.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.6e-05/0.3855, allocations: 10.33 kB / 483.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.163e-05/0.3855, allocations: 37.39 kB / 483.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3855, allocations: 5.219 kB / 483.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.409, allocations: 4.055 MB / 487.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/8.181, allocations: 26.25 kB / 487.7 MB, free: 2.223 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)