Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",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.006507/0.006507, allocations: 107.1 kB / 15.74 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.001459/0.001459, allocations: 195.8 kB / 16.68 MB, free: 5.93 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01236/0.01236, allocations: 2.786 MB / 293.3 MB, free: 11.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 63.84 kB / 405.4 MB, free: 29.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.08239, allocations: 50.22 MB / 455.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.05435/0.1368, allocations: 50.76 MB / 0.4945 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2288/0.3656, allocations: 29.1 MB / 0.523 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006922/0.3663, allocations: 2.188 kB / 0.523 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001607/0.368, allocations: 0.6201 MB / 0.5236 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006911/0.3749, allocations: 2.255 MB / 0.5258 GB, free: 2.73 MB / 382.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.CO2.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium1.Medium.setSat_p'. [/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.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008465/0.3834, allocations: 2.92 MB / 0.5286 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001229/0.3846, allocations: 0.9325 MB / 0.5295 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.3848, allocations: 60.73 kB / 0.5296 GB, free: 1.527 MB / 382.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.3264/0.7111, allocations: 51.05 MB / 0.5794 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006835/0.7118, allocations: 309 kB / 0.5797 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.712, allocations: 40 kB / 0.5798 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2311/0.943, allocations: 26.93 MB / 0.6061 GB, free: 4.828 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002404/0.9433, allocations: 115.7 kB / 0.6062 GB, free: 4.762 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006667/0.944, allocations: 342.8 kB / 0.6065 GB, free: 4.441 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009832/0.9538, allocations: 1.857 MB / 0.6083 GB, free: 2.867 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.796e-06/0.9538, allocations: 4 kB / 0.6083 GB, free: 2.863 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.9539, allocations: 0 / 0.6083 GB, free: 2.863 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.959e-05/0.9539, allocations: 0 / 0.6083 GB, free: 2.863 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.00235/0.9562, allocations: 1.096 MB / 0.6094 GB, free: 1.723 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.9563, allocations: 8.031 kB / 0.6094 GB, free: 1.715 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001569/0.9565, allocations: 126.9 kB / 0.6095 GB, free: 1.582 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002118/0.9586, allocations: 0.5035 MB / 0.61 GB, free: 1.078 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002141/0.9608, allocations: 335.6 kB / 0.6103 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.677e-05/0.9608, allocations: 45.88 kB / 0.6104 GB, free: 0.668 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-05/0.9609, allocations: 59.94 kB / 0.6104 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.9625, allocations: 0.8684 MB / 0.6113 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.9625, allocations: 0 / 0.6113 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.447e-05/0.9626, allocations: 32 kB / 0.6113 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.412e-05/0.9627, allocations: 31.97 kB / 0.6113 GB, free: 15.63 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002199/0.9649, allocations: 0.7 MB / 0.612 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004113/0.969, allocations: 5.112 MB / 0.617 GB, free: 9.215 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007486/0.9697, allocations: 345 kB / 0.6174 GB, free: 8.859 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.9701, allocations: 217.6 kB / 0.6176 GB, free: 8.641 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001508/0.9716, allocations: 1.54 MB / 0.6191 GB, free: 6.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.9717, allocations: 38.5 kB / 0.6191 GB, free: 6.883 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.134e-06/0.9717, allocations: 0 / 0.6191 GB, free: 6.883 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001555/0.9732, allocations: 0.6008 MB / 0.6197 GB, free: 6.277 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.9733, allocations: 80.94 kB / 0.6198 GB, free: 6.184 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.9735, allocations: 186.7 kB / 0.6199 GB, free: 5.992 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.9735, allocations: 29.7 kB / 0.62 GB, free: 5.957 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.9737, allocations: 291.4 kB / 0.6202 GB, free: 5.664 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.9739, allocations: 230 kB / 0.6205 GB, free: 5.441 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.974, allocations: 93.92 kB / 0.6206 GB, free: 5.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.9742, allocations: 342.8 kB / 0.6209 GB, free: 4.996 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/0.9744, allocations: 125.2 kB / 0.621 GB, free: 4.875 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.9748, allocations: 300 kB / 0.6213 GB, free: 4.508 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006133/0.9754, allocations: 488.6 kB / 0.6218 GB, free: 3.953 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.9754, allocations: 8 kB / 0.6218 GB, free: 3.945 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008339/0.9763, allocations: 488.2 kB / 0.6222 GB, free: 3.461 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.9763, allocations: 7.938 kB / 0.6222 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.9763, allocations: 8 kB / 0.6222 GB, free: 3.445 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.9764, allocations: 8 kB / 0.6223 GB, free: 3.438 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.9767, allocations: 83.83 kB / 0.6223 GB, free: 3.355 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007399/0.9775, allocations: 1.18 MB / 0.6235 GB, free: 2.129 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.9778, allocations: 59.27 kB / 0.6235 GB, free: 2.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.9778, allocations: 20 kB / 0.6236 GB, free: 2.051 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput,medium1.baseProperties.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003097/0.9782, allocations: 194.7 kB / 0.6237 GB, free: 1.852 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.42e-05/0.9783, allocations: 31.62 kB / 0.6238 GB, free: 1.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.277e-05/0.9783, allocations: 30.64 kB / 0.6238 GB, free: 1.793 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.9784, allocations: 0 / 0.6238 GB, free: 1.793 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.9784, allocations: 3.938 kB / 0.6238 GB, free: 1.789 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.9784, allocations: 4 kB / 0.6238 GB, free: 1.785 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00079/0.9792, allocations: 0.5021 MB / 0.6243 GB, free: 1.238 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.9792, allocations: 0 / 0.6243 GB, free: 1.238 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.9794, allocations: 35.98 kB / 0.6243 GB, free: 1.203 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.9794, allocations: 0 / 0.6243 GB, free: 1.203 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.9794, allocations: 11.98 kB / 0.6243 GB, free: 1.191 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007073/0.9801, allocations: 1.168 MB / 0.6255 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.9802, allocations: 4.031 kB / 0.6255 GB, free: 15.97 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006828/0.9808, allocations: 0.5177 MB / 0.626 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.981, allocations: 112.6 kB / 0.6261 GB, free: 15.31 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.981, allocations: 4 kB / 0.6261 GB, free: 15.31 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.9812, allocations: 8 kB / 0.6261 GB, free: 15.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.269e-05/0.9813, allocations: 11.98 kB / 0.6261 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.9813, allocations: 12.17 kB / 0.6261 GB, free: 15.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 9.966e-05/0.9814, allocations: 128.2 kB / 0.6263 GB, free: 15.15 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9814, allocations: 3.938 kB / 0.6263 GB, free: 15.15 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007768/0.9822, allocations: 191.4 kB / 0.6264 GB, free: 14.96 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001655/0.9838, allocations: 1.249 MB / 0.6277 GB, free: 13.71 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.9849, allocations: 0.6137 MB / 0.6283 GB, free: 13.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.9849, allocations: 0 / 0.6283 GB, free: 13.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006005/0.9855, allocations: 0.5154 MB / 0.6288 GB, free: 12.48 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.9866, allocations: 197 kB / 0.629 GB, free: 12.29 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/0.9915, allocations: 3.636 MB / 0.6325 GB, free: 8.441 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006137/0.9921, allocations: 0.9426 MB / 0.6334 GB, free: 7.469 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004819/0.9926, allocations: 227.8 kB / 0.6336 GB, free: 7.246 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/0.9929, allocations: 267.4 kB / 0.6339 GB, free: 6.984 MB / 478.1 MB Notification: Performance of SimCode: time 7.91e-07/0.9929, allocations: 4 kB / 0.6339 GB, free: 6.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04735/1.04, allocations: 18.34 MB / 0.6518 GB, free: 4.648 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/13.3, allocations: 10.94 kB / 0.6518 GB, free: 4.641 MB / 494.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)