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.001097/0.001097, allocations: 108 kB / 15.6 MB, free: 132 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.001197/0.001197, allocations: 198 kB / 16.54 MB, free: 6.672 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1324/0.1324, allocations: 2.761 MB / 293.1 MB, free: 3.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 63.91 kB / 354.4 MB, free: 4.371 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1045, allocations: 50.23 MB / 404.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2269/0.3315, allocations: 50.7 MB / 455.3 MB, free: 21.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01716/0.3486, allocations: 29.1 MB / 484.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005557/0.3492, allocations: 2.688 kB / 484.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.3508, allocations: 0.6143 MB / 485 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005429/0.3562, allocations: 2.24 MB / 487.3 MB, free: 13.85 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.008147/0.3644, allocations: 2.924 MB / 490.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001121/0.3655, allocations: 0.9279 MB / 491.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.3657, allocations: 57.19 kB / 491.2 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.3288/0.6945, allocations: 50.61 MB / 0.5291 GB, free: 8.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006918/0.6952, allocations: 302.7 kB / 0.5294 GB, free: 8.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.6954, allocations: 36 kB / 0.5294 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1694/0.8648, allocations: 26.72 MB / 0.5555 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.865, allocations: 107.5 kB / 0.5556 GB, free: 13.42 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005315/0.8655, allocations: 346.3 kB / 0.556 GB, free: 13.08 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005908/0.8714, allocations: 1.828 MB / 0.5577 GB, free: 11.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.8715, allocations: 0 / 0.5577 GB, free: 11.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.8715, allocations: 0 / 0.5577 GB, free: 11.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.8715, allocations: 0 / 0.5577 GB, free: 11.25 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.001537/0.873, allocations: 1.108 MB / 0.5588 GB, free: 10.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.8731, allocations: 16.02 kB / 0.5588 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002022/0.8751, allocations: 0.4919 MB / 0.5593 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004082/0.8755, allocations: 331.5 kB / 0.5596 GB, free: 9.219 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-05/0.8756, allocations: 46.06 kB / 0.5597 GB, free: 9.176 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.199e-05/0.8757, allocations: 56 kB / 0.5597 GB, free: 9.121 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.8772, allocations: 0.8684 MB / 0.5606 GB, free: 8.203 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.8772, allocations: 7.938 kB / 0.5606 GB, free: 8.195 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/0.8772, allocations: 24 kB / 0.5606 GB, free: 8.172 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.571e-05/0.8773, allocations: 31.98 kB / 0.5606 GB, free: 8.141 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.8786, allocations: 0.7 MB / 0.5613 GB, free: 7.438 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003913/0.8826, allocations: 5.051 MB / 0.5663 GB, free: 1.789 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006805/0.8832, allocations: 329.7 kB / 0.5666 GB, free: 1.449 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/0.8836, allocations: 229.6 kB / 0.5668 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00133/0.8849, allocations: 1.515 MB / 0.5683 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.885, allocations: 38.5 kB / 0.5683 GB, free: 15.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.074e-06/0.885, allocations: 0 / 0.5683 GB, free: 15.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.003913/0.8889, allocations: 0.6002 MB / 0.5689 GB, free: 14.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.8889, allocations: 77.11 kB / 0.569 GB, free: 14.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.8891, allocations: 187 kB / 0.5691 GB, free: 14.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.8892, allocations: 33.7 kB / 0.5692 GB, free: 14.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.8893, allocations: 287.4 kB / 0.5695 GB, free: 14.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.8895, allocations: 228.5 kB / 0.5697 GB, free: 14.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.8896, allocations: 97.91 kB / 0.5698 GB, free: 13.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.8898, allocations: 346.8 kB / 0.5701 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002552/0.89, allocations: 117.3 kB / 0.5702 GB, free: 13.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003456/0.8904, allocations: 300 kB / 0.5705 GB, free: 13.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006664/0.8911, allocations: 484.5 kB / 0.571 GB, free: 12.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.8911, allocations: 4 kB / 0.571 GB, free: 12.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008545/0.892, allocations: 492.8 kB / 0.5714 GB, free: 12.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.892, allocations: 8 kB / 0.5714 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.892, allocations: 11.94 kB / 0.5714 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.892, allocations: 8 kB / 0.5715 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.8923, allocations: 67.91 kB / 0.5715 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/0.8923, allocations: 11.94 kB / 0.5715 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002414/0.8926, allocations: 55.36 kB / 0.5716 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.8926, allocations: 24 kB / 0.5716 GB, free: 11.88 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.0002579/0.8929, allocations: 185.8 kB / 0.5718 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.432e-05/0.893, allocations: 31.56 kB / 0.5718 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.426e-05/0.8931, allocations: 38.58 kB / 0.5719 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.8931, allocations: 0 / 0.5719 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.8931, allocations: 3.938 kB / 0.5719 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.8931, allocations: 4 kB / 0.5719 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006776/0.8938, allocations: 494.4 kB / 0.5723 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.8938, allocations: 4 kB / 0.5723 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.8939, allocations: 23.98 kB / 0.5724 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.8939, allocations: 0 / 0.5724 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.894, allocations: 15.94 kB / 0.5724 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.894, allocations: 0 / 0.5724 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.894, allocations: 0 / 0.5724 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006683/0.8947, allocations: 0.5135 MB / 0.5729 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.796e-05/0.8947, allocations: 108.6 kB / 0.573 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.8948, allocations: 7.938 kB / 0.573 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.895, allocations: 11.98 kB / 0.573 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.125e-05/0.895, allocations: 15.98 kB / 0.573 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.8951, allocations: 8 kB / 0.573 GB, free: 10.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.778e-05/0.8952, allocations: 123.2 kB / 0.5731 GB, free: 10.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8952, allocations: 192 / 0.5731 GB, free: 10.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006888/0.8959, allocations: 191.3 kB / 0.5733 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: 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.0005889/0.8965, allocations: 313.2 kB / 0.5736 GB, free: 9.715 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008412/0.8973, allocations: 0.6076 MB / 0.5742 GB, free: 9.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.8973, allocations: 0 / 0.5742 GB, free: 9.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005083/0.8978, allocations: 499.8 kB / 0.5747 GB, free: 8.531 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.899, allocations: 197 kB / 0.5749 GB, free: 8.336 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.9009, allocations: 1.029 MB / 0.5759 GB, free: 7.277 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007185/0.9016, allocations: 0.9465 MB / 0.5768 GB, free: 6.301 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006189/0.9023, allocations: 261.9 kB / 0.5771 GB, free: 6.043 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.753e-05/0.9024, allocations: 43.44 kB / 0.5771 GB, free: 6 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.9024, allocations: 0 / 0.5771 GB, free: 6 MB / 446.1 MB Notification: Performance of Templates: time 0.184/1.086, allocations: 10.75 MB / 0.5876 GB, free: 142 MB / 446.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 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)