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: translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 102.2 kB / 16.27 MB, free: 6 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.001306/0.001306, allocations: 191 kB / 17.2 MB, free: 5.609 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.353/1.353, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01307/0.01307, allocations: 2.778 MB / 293.8 MB, free: 12.06 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 59.91 kB / 355.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2306, allocations: 50.25 MB / 405.3 MB, free: 32.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.03565/0.2663, allocations: 50.7 MB / 456 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02687/0.2932, allocations: 29.1 MB / 485.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005942/0.2938, allocations: 4 kB / 485.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001769/0.2957, allocations: 0.6175 MB / 485.7 MB, free: 244 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006085/0.3018, allocations: 2.23 MB / 488 MB, free: 13.99 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.008528/0.3104, allocations: 2.927 MB / 490.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.3117, allocations: 0.9247 MB / 491.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.3118, allocations: 57.75 kB / 491.9 MB, free: 10.06 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.7256/1.037, allocations: 51.24 MB / 0.5304 GB, free: 24.99 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004925/1.038, allocations: 305.8 kB / 0.5307 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.465e-05/1.038, allocations: 39 kB / 0.5307 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1548/1.193, allocations: 27.03 MB / 0.5571 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/1.193, allocations: 114.4 kB / 0.5572 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006583/1.194, allocations: 331.9 kB / 0.5575 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005088/1.199, allocations: 1.831 MB / 0.5593 GB, free: 5.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/1.199, allocations: 0 / 0.5593 GB, free: 5.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/1.199, allocations: 0 / 0.5593 GB, free: 5.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/1.199, allocations: 7.984 kB / 0.5593 GB, free: 5.547 MB / 382.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.001392/1.2, allocations: 1.107 MB / 0.5604 GB, free: 4.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/1.2, allocations: 8.031 kB / 0.5604 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001961/1.202, allocations: 0.4926 MB / 0.5609 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/1.203, allocations: 346.1 kB / 0.5612 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.942e-05/1.203, allocations: 43.88 kB / 0.5613 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.208e-05/1.203, allocations: 55.88 kB / 0.5613 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/1.204, allocations: 0.8693 MB / 0.5622 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/1.204, allocations: 7.922 kB / 0.5622 GB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.86e-05/1.204, allocations: 27.5 kB / 0.5622 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/1.204, allocations: 33.22 kB / 0.5623 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/1.205, allocations: 0.7053 MB / 0.5629 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/1.208, allocations: 5.036 MB / 0.5679 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006233/1.209, allocations: 329.9 kB / 0.5682 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/1.209, allocations: 215.4 kB / 0.5684 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001225/1.211, allocations: 1.532 MB / 0.5699 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/1.211, allocations: 36.62 kB / 0.5699 GB, free: 11.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 2.134e-06/1.211, allocations: 0 / 0.5699 GB, free: 11.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.004218/1.215, allocations: 0.5922 MB / 0.5705 GB, free: 11.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/1.215, allocations: 84.39 kB / 0.5706 GB, free: 11.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/1.215, allocations: 192.3 kB / 0.5708 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/1.215, allocations: 25.7 kB / 0.5708 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/1.215, allocations: 287.3 kB / 0.571 GB, free: 10.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/1.215, allocations: 235.9 kB / 0.5713 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/1.215, allocations: 99.97 kB / 0.5714 GB, free: 10.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/1.216, allocations: 335.8 kB / 0.5717 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002076/1.216, allocations: 120.7 kB / 0.5718 GB, free: 10.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003049/1.216, allocations: 300 kB / 0.5721 GB, free: 9.934 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005595/1.217, allocations: 493.5 kB / 0.5726 GB, free: 9.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/1.217, allocations: 4 kB / 0.5726 GB, free: 9.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001098/1.218, allocations: 479.7 kB / 0.573 GB, free: 9.219 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/1.218, allocations: 8 kB / 0.573 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/1.218, allocations: 7.938 kB / 0.573 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/1.218, allocations: 8.719 kB / 0.573 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002345/1.218, allocations: 67.34 kB / 0.5731 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/1.218, allocations: 19.73 kB / 0.5731 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/1.218, allocations: 59.06 kB / 0.5732 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.348e-05/1.218, allocations: 16 kB / 0.5732 GB, free: 9.051 MB / 398.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.0002091/1.219, allocations: 199.3 kB / 0.5734 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/1.219, allocations: 27.62 kB / 0.5734 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.338e-05/1.219, allocations: 27.59 kB / 0.5734 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/1.219, allocations: 4 kB / 0.5734 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.219, allocations: 0 / 0.5734 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/1.219, allocations: 4 kB / 0.5735 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005651/1.219, allocations: 483.9 kB / 0.5739 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/1.219, allocations: 3.984 kB / 0.5739 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/1.22, allocations: 27.98 kB / 0.5739 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/1.22, allocations: 4 kB / 0.5739 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/1.22, allocations: 11.88 kB / 0.574 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/1.22, allocations: 0 / 0.574 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.22, allocations: 3.281 kB / 0.574 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005826/1.22, allocations: 0.5083 MB / 0.5745 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.475e-05/1.22, allocations: 116.6 kB / 0.5746 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/1.22, allocations: 3.938 kB / 0.5746 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/1.22, allocations: 7.938 kB / 0.5746 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/1.221, allocations: 11.98 kB / 0.5746 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/1.221, allocations: 15.67 kB / 0.5746 GB, free: 7.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.571e-05/1.221, allocations: 126.7 kB / 0.5747 GB, free: 7.727 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.221, allocations: 4 kB / 0.5747 GB, free: 7.723 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006636/1.221, allocations: 194.8 kB / 0.5749 GB, free: 7.543 MB / 398.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.0005127/1.222, allocations: 303.4 kB / 0.5752 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007854/1.223, allocations: 0.6023 MB / 0.5758 GB, free: 6.832 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.223, allocations: 0 / 0.5758 GB, free: 6.832 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004331/1.223, allocations: 0.4942 MB / 0.5763 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/1.224, allocations: 203.2 kB / 0.5765 GB, free: 6.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/1.226, allocations: 1.102 MB / 0.5775 GB, free: 5.168 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005238/1.226, allocations: 0.9465 MB / 0.5785 GB, free: 4.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/1.226, allocations: 51.19 kB / 0.5785 GB, free: 4.148 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/1.226, allocations: 0 / 0.5785 GB, free: 4.148 MB / 398.1 MB Notification: Performance of Templates: time 0.01298/1.239, allocations: 8.739 MB / 0.5871 GB, free: 11.63 MB / 414.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.makefile (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 & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1)