Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001601, allocations: 110.2 kB / 16.37 MB, free: 6.012 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.001832/0.001832, allocations: 189.5 kB / 17.31 MB, free: 5.613 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.473/1.473, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01179/0.01179, allocations: 2.77 MB / 293.9 MB, free: 11.99 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001344, allocations: 59.91 kB / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2395, allocations: 50.22 MB / 406.1 MB, free: 32.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.03757/0.2772, allocations: 50.72 MB / 456.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02535/0.3025, allocations: 29.1 MB / 485.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006271/0.3032, allocations: 4 kB / 485.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001684/0.3049, allocations: 0.6136 MB / 486.5 MB, free: 104 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005822/0.3108, allocations: 2.238 MB / 488.8 MB, free: 13.84 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008105/0.3189, allocations: 2.928 MB / 491.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.3201, allocations: 0.9193 MB / 492.6 MB, free: 9.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.3203, allocations: 65.69 kB / 492.7 MB, free: 9.91 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.5302/0.8505, allocations: 51.02 MB / 0.5309 GB, free: 24.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004929/0.851, allocations: 301.9 kB / 0.5312 GB, free: 24.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.581e-05/0.8511, allocations: 40.5 kB / 0.5313 GB, free: 24.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1533/1.004, allocations: 26.93 MB / 0.5576 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002116/1.005, allocations: 112.1 kB / 0.5577 GB, free: 6.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009534/1.006, allocations: 340.8 kB / 0.558 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005772/1.011, allocations: 1.852 MB / 0.5598 GB, free: 5.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/1.011, allocations: 0 / 0.5598 GB, free: 5.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/1.011, allocations: 0 / 0.5598 GB, free: 5.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.389e-05/1.011, allocations: 0 / 0.5598 GB, free: 5.488 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.00148/1.013, allocations: 1.112 MB / 0.5609 GB, free: 4.492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/1.013, allocations: 8.031 kB / 0.5609 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001969/1.015, allocations: 0.4949 MB / 0.5614 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/1.017, allocations: 343.6 kB / 0.5617 GB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.112e-05/1.017, allocations: 45.06 kB / 0.5618 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.215e-05/1.017, allocations: 57.61 kB / 0.5618 GB, free: 3.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/1.018, allocations: 0.8683 MB / 0.5627 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/1.018, allocations: 4 kB / 0.5627 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.978e-05/1.018, allocations: 25.55 kB / 0.5627 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.653e-05/1.018, allocations: 38.09 kB / 0.5627 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/1.019, allocations: 0.7009 MB / 0.5634 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003765/1.023, allocations: 5 MB / 0.5683 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000644/1.024, allocations: 324 kB / 0.5686 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002721/1.024, allocations: 223.7 kB / 0.5688 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001312/1.025, allocations: 1.526 MB / 0.5703 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/1.026, allocations: 38.56 kB / 0.5703 GB, free: 11.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 1.904e-06/1.026, allocations: 3.188 kB / 0.5704 GB, free: 11.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.00148/1.027, allocations: 0.5911 MB / 0.5709 GB, free: 11.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/1.027, allocations: 82.36 kB / 0.571 GB, free: 11.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/1.027, allocations: 188.2 kB / 0.5712 GB, free: 11.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/1.027, allocations: 25.7 kB / 0.5712 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/1.027, allocations: 288.9 kB / 0.5715 GB, free: 10.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/1.028, allocations: 245.3 kB / 0.5717 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/1.028, allocations: 98.34 kB / 0.5718 GB, free: 10.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/1.028, allocations: 334.2 kB / 0.5721 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/1.028, allocations: 118.7 kB / 0.5722 GB, free: 10.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003209/1.028, allocations: 302.4 kB / 0.5725 GB, free: 9.902 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/1.029, allocations: 494.4 kB / 0.573 GB, free: 9.504 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/1.029, allocations: 4 kB / 0.573 GB, free: 9.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007841/1.03, allocations: 478.9 kB / 0.5735 GB, free: 9.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/1.03, allocations: 8 kB / 0.5735 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/1.03, allocations: 7.938 kB / 0.5735 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/1.03, allocations: 8.188 kB / 0.5735 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/1.03, allocations: 73.94 kB / 0.5736 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/1.03, allocations: 19.2 kB / 0.5736 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/1.03, allocations: 51.62 kB / 0.5736 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.633e-05/1.031, allocations: 27.23 kB / 0.5737 GB, free: 9.012 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.000226/1.031, allocations: 195.3 kB / 0.5738 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.911e-05/1.031, allocations: 31.61 kB / 0.5739 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.895e-05/1.031, allocations: 29.91 kB / 0.5739 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/1.031, allocations: 4 kB / 0.5739 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/1.031, allocations: 0 / 0.5739 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/1.031, allocations: 0 / 0.5739 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006473/1.032, allocations: 481.2 kB / 0.5744 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/1.032, allocations: 3.938 kB / 0.5744 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/1.032, allocations: 35.05 kB / 0.5744 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/1.032, allocations: 4 kB / 0.5744 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/1.032, allocations: 15.86 kB / 0.5744 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/1.032, allocations: 0 / 0.5744 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/1.032, allocations: 0 / 0.5744 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005885/1.032, allocations: 0.5074 MB / 0.5749 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.006e-05/1.032, allocations: 120.6 kB / 0.575 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/1.033, allocations: 7.875 kB / 0.575 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/1.033, allocations: 4 kB / 0.575 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.782e-05/1.033, allocations: 15.73 kB / 0.5751 GB, free: 7.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/1.033, allocations: 8 kB / 0.5751 GB, free: 7.793 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.669e-05/1.033, allocations: 127.4 kB / 0.5752 GB, free: 7.684 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.033, allocations: 0 / 0.5752 GB, free: 7.684 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000681/1.034, allocations: 187.1 kB / 0.5754 GB, free: 7.508 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.0005002/1.034, allocations: 306.4 kB / 0.5757 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007574/1.035, allocations: 0.5974 MB / 0.5762 GB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.035, allocations: 192 / 0.5762 GB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000445/1.035, allocations: 498.9 kB / 0.5767 GB, free: 6.367 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/1.036, allocations: 196.1 kB / 0.5769 GB, free: 6.195 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/1.038, allocations: 1.027 MB / 0.5779 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/1.039, allocations: 0.9463 MB / 0.5788 GB, free: 4.242 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005181/1.039, allocations: 257.1 kB / 0.5791 GB, free: 3.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.007e-05/1.04, allocations: 51.38 kB / 0.5791 GB, free: 3.941 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/1.04, allocations: 0 / 0.5791 GB, free: 3.941 MB / 398.1 MB Notification: Performance of Templates: time 0.0191/1.059, allocations: 10.76 MB / 0.5896 GB, free: 9.293 MB / 414.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)