Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, 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.001708/0.001708, allocations: 197.7 kB / 16.53 MB, free: 6.66 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1303/0.1303, allocations: 2.768 MB / 293.2 MB, free: 3.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 63.91 kB / 354.4 MB, free: 4.383 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.09524, allocations: 50.23 MB / 404.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.2173/0.3125, allocations: 50.7 MB / 455.3 MB, free: 21.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01865/0.3312, allocations: 29.1 MB / 484.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007284/0.332, allocations: 3.156 kB / 484.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.3339, allocations: 0.6116 MB / 485 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006686/0.3406, allocations: 2.242 MB / 487.3 MB, free: 13.89 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.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007913/0.3485, allocations: 2.916 MB / 490.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.3497, allocations: 0.918 MB / 491.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.3498, allocations: 67.19 kB / 491.2 MB, free: 11.63 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.3415/0.6913, allocations: 50.6 MB / 0.5291 GB, free: 8.777 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006782/0.692, allocations: 298.6 kB / 0.5294 GB, free: 8.484 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.6921, allocations: 40 kB / 0.5294 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1669/0.859, allocations: 26.72 MB / 0.5555 GB, free: 13.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003972/0.8595, allocations: 111.5 kB / 0.5556 GB, free: 13.44 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.8606, allocations: 338.4 kB / 0.5559 GB, free: 13.11 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.8708, allocations: 1.836 MB / 0.5577 GB, free: 11.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.8708, allocations: 0 / 0.5577 GB, free: 11.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.8708, allocations: 4 kB / 0.5577 GB, free: 11.26 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.468e-05/0.8709, allocations: 0 / 0.5577 GB, free: 11.26 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.002434/0.8733, allocations: 1.092 MB / 0.5588 GB, free: 10.12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.8734, allocations: 8.031 kB / 0.5588 GB, free: 10.11 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00231/0.8757, allocations: 0.5036 MB / 0.5593 GB, free: 9.609 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000483/0.8762, allocations: 343.4 kB / 0.5596 GB, free: 9.234 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.757e-05/0.8763, allocations: 46.06 kB / 0.5597 GB, free: 9.191 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.28e-05/0.8763, allocations: 52 kB / 0.5597 GB, free: 9.141 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001644/0.878, allocations: 0.8801 MB / 0.5606 GB, free: 8.211 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.515e-05/0.878, allocations: 4 kB / 0.5606 GB, free: 8.207 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-05/0.8781, allocations: 20 kB / 0.5606 GB, free: 8.188 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.621e-05/0.8781, allocations: 31.98 kB / 0.5606 GB, free: 8.156 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.8796, allocations: 0.7078 MB / 0.5613 GB, free: 7.445 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004335/0.8839, allocations: 4.993 MB / 0.5662 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007078/0.8847, allocations: 337.1 kB / 0.5665 GB, free: 1.508 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003412/0.885, allocations: 233.7 kB / 0.5668 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001336/0.8864, allocations: 1.539 MB / 0.5683 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.8864, allocations: 42.5 kB / 0.5683 GB, free: 15.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=74): time 2.275e-06/0.8864, allocations: 0 / 0.5683 GB, free: 15.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=74): time 0.002976/0.8894, allocations: 0.6232 MB / 0.5689 GB, free: 14.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.8895, allocations: 81.05 kB / 0.569 GB, free: 14.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.8896, allocations: 179.5 kB / 0.5692 GB, free: 14.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.8897, allocations: 25.7 kB / 0.5692 GB, free: 14.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.8898, allocations: 275.7 kB / 0.5694 GB, free: 14.29 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/0.89, allocations: 236.3 kB / 0.5697 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004987/0.8905, allocations: 101.9 kB / 0.5698 GB, free: 13.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.8906, allocations: 342.8 kB / 0.5701 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.8909, allocations: 117.3 kB / 0.5702 GB, free: 13.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003547/0.8913, allocations: 289.4 kB / 0.5705 GB, free: 13.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006813/0.8919, allocations: 474.7 kB / 0.5709 GB, free: 12.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.892, allocations: 4 kB / 0.5709 GB, free: 12.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008654/0.8928, allocations: 480.7 kB / 0.5714 GB, free: 12.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.8929, allocations: 4.188 kB / 0.5714 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.8929, allocations: 19.91 kB / 0.5714 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.8929, allocations: 7.938 kB / 0.5714 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.8932, allocations: 71.91 kB / 0.5715 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.8932, allocations: 11.92 kB / 0.5715 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.8934, allocations: 59.28 kB / 0.5716 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.8935, allocations: 23.98 kB / 0.5716 GB, free: 11.94 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * 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.0002009/0.8937, allocations: 185.7 kB / 0.5718 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.337e-05/0.8938, allocations: 31.62 kB / 0.5718 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.092e-05/0.8939, allocations: 33.91 kB / 0.5718 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.8939, allocations: 0 / 0.5718 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.8939, allocations: 4 kB / 0.5718 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.8939, allocations: 3.984 kB / 0.5718 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005887/0.8945, allocations: 0.4944 MB / 0.5723 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.8945, allocations: 4 kB / 0.5723 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.8947, allocations: 35.91 kB / 0.5724 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.8947, allocations: 4 kB / 0.5724 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.8947, allocations: 11.94 kB / 0.5724 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.8947, allocations: 4 kB / 0.5724 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.8947, allocations: 0 / 0.5724 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007399/0.8955, allocations: 0.5253 MB / 0.5729 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.121e-05/0.8956, allocations: 112.5 kB / 0.573 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.8956, allocations: 15.94 kB / 0.573 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.8958, allocations: 11.94 kB / 0.573 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.303e-05/0.8959, allocations: 27.95 kB / 0.573 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.8959, allocations: 7.984 kB / 0.5731 GB, free: 10.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.011e-05/0.896, allocations: 124.1 kB / 0.5732 GB, free: 10.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.896, allocations: 0 / 0.5732 GB, free: 10.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006464/0.8967, allocations: 195.4 kB / 0.5734 GB, free: 10.03 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: 4 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * 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.0005024/0.8972, allocations: 281.3 kB / 0.5736 GB, free: 9.746 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009747/0.8982, allocations: 0.6228 MB / 0.5742 GB, free: 9.105 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.8982, allocations: 4 kB / 0.5742 GB, free: 9.102 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005339/0.8987, allocations: 0.508 MB / 0.5747 GB, free: 8.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.8999, allocations: 200.9 kB / 0.5749 GB, free: 8.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.9014, allocations: 1.056 MB / 0.576 GB, free: 7.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000542/0.9019, allocations: 0.9436 MB / 0.5769 GB, free: 6.258 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005663/0.9025, allocations: 257.9 kB / 0.5771 GB, free: 6.008 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.753e-05/0.9026, allocations: 47.44 kB / 0.5772 GB, free: 5.961 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.9026, allocations: 0 / 0.5772 GB, free: 5.961 MB / 446.1 MB Notification: Performance of Templates: time 0.1831/1.086, allocations: 11.21 MB / 0.5881 GB, free: 142 MB / 446.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1)