Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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_Tabular.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",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.001185/0.001185, allocations: 108 kB / 15.61 MB, free: 152 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.001178/0.001178, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1122/0.1122, allocations: 2.754 MB / 293.2 MB, free: 3.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 71.88 kB / 354.5 MB, free: 4.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08238/0.0837, allocations: 50.22 MB / 404.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.191/0.2747, allocations: 50.69 MB / 455.4 MB, free: 21.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01741/0.2922, allocations: 29.11 MB / 484.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006842/0.2929, allocations: 6.844 kB / 484.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00171/0.2947, allocations: 0.6104 MB / 485.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006982/0.3017, allocations: 2.246 MB / 487.4 MB, free: 13.83 MB / 366.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_Tabular.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008147/0.3098, allocations: 2.913 MB / 490.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.3111, allocations: 0.917 MB / 491.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.3112, allocations: 58.47 kB / 491.3 MB, free: 11.59 MB / 366.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.5712/0.8824, allocations: 51.26 MB / 0.5298 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008353/0.8832, allocations: 306.6 kB / 0.5301 GB, free: 7.762 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.8834, allocations: 40 kB / 0.5302 GB, free: 7.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1656/1.049, allocations: 27.03 MB / 0.5566 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002047/1.049, allocations: 115.5 kB / 0.5567 GB, free: 12.4 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/1.05, allocations: 334.4 kB / 0.557 GB, free: 12.07 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006355/1.057, allocations: 1.836 MB / 0.5588 GB, free: 10.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/1.057, allocations: 3.938 kB / 0.5588 GB, free: 10.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/1.057, allocations: 0 / 0.5588 GB, free: 10.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.454e-05/1.057, allocations: 0 / 0.5588 GB, free: 10.23 MB / 430.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.001926/1.059, allocations: 1.104 MB / 0.5599 GB, free: 9.078 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/1.059, allocations: 8.031 kB / 0.5599 GB, free: 9.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001445/1.059, allocations: 119 kB / 0.56 GB, free: 8.945 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002064/1.061, allocations: 0.4919 MB / 0.5605 GB, free: 8.453 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/1.061, allocations: 339.5 kB / 0.5608 GB, free: 8.082 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.912e-05/1.061, allocations: 45.88 kB / 0.5608 GB, free: 8.039 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-05/1.062, allocations: 59.94 kB / 0.5609 GB, free: 7.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/1.063, allocations: 0.8723 MB / 0.5617 GB, free: 7.059 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/1.063, allocations: 4 kB / 0.5618 GB, free: 7.055 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.362e-05/1.063, allocations: 28 kB / 0.5618 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.542e-05/1.063, allocations: 35.97 kB / 0.5618 GB, free: 6.992 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/1.064, allocations: 0.7 MB / 0.5625 GB, free: 6.289 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/1.069, allocations: 5.043 MB / 0.5674 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006856/1.07, allocations: 333.7 kB / 0.5677 GB, free: 312 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/1.07, allocations: 213.6 kB / 0.5679 GB, free: 92 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001324/1.071, allocations: 1.527 MB / 0.5694 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/1.071, allocations: 42.56 kB / 0.5695 GB, free: 14.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.266e-06/1.071, allocations: 3.984 kB / 0.5695 GB, free: 14.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.004636/1.076, allocations: 0.5885 MB / 0.5701 GB, free: 13.74 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/1.076, allocations: 81.11 kB / 0.5701 GB, free: 13.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/1.076, allocations: 186.7 kB / 0.5703 GB, free: 13.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/1.076, allocations: 25.7 kB / 0.5703 GB, free: 13.42 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/1.076, allocations: 303.4 kB / 0.5706 GB, free: 13.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/1.077, allocations: 228.5 kB / 0.5708 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/1.077, allocations: 97.91 kB / 0.5709 GB, free: 12.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/1.077, allocations: 338.8 kB / 0.5713 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/1.077, allocations: 117.3 kB / 0.5714 GB, free: 12.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005917/1.078, allocations: 304 kB / 0.5717 GB, free: 11.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006449/1.078, allocations: 492.4 kB / 0.5721 GB, free: 11.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/1.078, allocations: 4 kB / 0.5721 GB, free: 11.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008123/1.079, allocations: 476.4 kB / 0.5726 GB, free: 10.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/1.079, allocations: 11.94 kB / 0.5726 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/1.079, allocations: 4 kB / 0.5726 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/1.079, allocations: 8 kB / 0.5726 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002454/1.08, allocations: 75.84 kB / 0.5727 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/1.08, allocations: 12.73 kB / 0.5727 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/1.08, allocations: 55.38 kB / 0.5727 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/1.08, allocations: 23.94 kB / 0.5728 GB, free: 10.74 MB / 446.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): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002113/1.08, allocations: 193.7 kB / 0.573 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.942e-05/1.08, allocations: 31.56 kB / 0.573 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.087e-05/1.08, allocations: 26.64 kB / 0.573 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/1.08, allocations: 4 kB / 0.573 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/1.08, allocations: 0 / 0.573 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/1.08, allocations: 3.938 kB / 0.573 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000592/1.081, allocations: 498.4 kB / 0.5735 GB, free: 9.941 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/1.081, allocations: 4 kB / 0.5735 GB, free: 9.938 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/1.081, allocations: 31.98 kB / 0.5735 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/1.081, allocations: 7.938 kB / 0.5735 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/1.081, allocations: 7.984 kB / 0.5735 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/1.081, allocations: 3.938 kB / 0.5735 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.081, allocations: 0 / 0.5735 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006272/1.082, allocations: 0.5097 MB / 0.574 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.161e-05/1.082, allocations: 112.6 kB / 0.5742 GB, free: 9.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/1.082, allocations: 7.922 kB / 0.5742 GB, free: 9.223 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/1.082, allocations: 8 kB / 0.5742 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/1.082, allocations: 11.98 kB / 0.5742 GB, free: 9.203 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/1.082, allocations: 12 kB / 0.5742 GB, free: 9.191 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.839e-05/1.082, allocations: 124.2 kB / 0.5743 GB, free: 9.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.352e-06/1.082, allocations: 0 / 0.5743 GB, free: 9.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006807/1.083, allocations: 199.2 kB / 0.5745 GB, free: 8.875 MB / 446.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): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001327/1.084, allocations: 1.24 MB / 0.5757 GB, free: 7.602 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008645/1.085, allocations: 0.5998 MB / 0.5763 GB, free: 6.984 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.085, allocations: 4.188 kB / 0.5763 GB, free: 6.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004694/1.086, allocations: 499.8 kB / 0.5768 GB, free: 6.422 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/1.087, allocations: 188.8 kB / 0.577 GB, free: 6.238 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004329/1.091, allocations: 3.573 MB / 0.5804 GB, free: 2.434 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/1.092, allocations: 0.9504 MB / 0.5814 GB, free: 1.457 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005679/1.092, allocations: 265.7 kB / 0.5816 GB, free: 1.191 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/1.093, allocations: 275.3 kB / 0.5819 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/1.093, allocations: 0 / 0.5819 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1836/1.276, allocations: 17.48 MB / 0.599 GB, free: 141.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.094/9.37, allocations: 11.95 kB / 0.599 GB, free: 141.9 MB / 446.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1)