Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 106.6 kB / 16.27 MB, free: 6.414 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.001419/0.001419, allocations: 189.6 kB / 17.2 MB, free: 5.953 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.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01169/0.01169, allocations: 2.774 MB / 293.8 MB, free: 12.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 59.91 kB / 355.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2069, allocations: 50.23 MB / 405.3 MB, free: 32.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.03518/0.2422, allocations: 50.74 MB / 456 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02547/0.2677, allocations: 29.11 MB / 485.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004646/0.2682, allocations: 4 kB / 485.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.2698, allocations: 0.6175 MB / 485.8 MB, free: 216 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005541/0.2754, allocations: 2.238 MB / 488 MB, free: 13.96 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007323/0.2827, allocations: 2.934 MB / 491 MB, free: 11.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.2839, allocations: 0.9287 MB / 491.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.284, allocations: 53.75 kB / 491.9 MB, free: 10.02 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.483/0.767, allocations: 50.6 MB / 0.5298 GB, free: 25.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000552/0.7676, allocations: 295.5 kB / 0.5301 GB, free: 25.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.996e-05/0.7677, allocations: 39.34 kB / 0.5301 GB, free: 25.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1502/0.9179, allocations: 26.72 MB / 0.5562 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.9181, allocations: 117 kB / 0.5563 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003734/0.9185, allocations: 340 kB / 0.5567 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004809/0.9233, allocations: 1.837 MB / 0.5585 GB, free: 6.355 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.9233, allocations: 0 / 0.5585 GB, free: 6.355 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.9233, allocations: 0 / 0.5585 GB, free: 6.355 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.9234, allocations: 3.938 kB / 0.5585 GB, free: 6.352 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.001188/0.9246, allocations: 1.105 MB / 0.5595 GB, free: 5.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.9246, allocations: 11.97 kB / 0.5596 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001769/0.9264, allocations: 0.4965 MB / 0.56 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002888/0.9267, allocations: 337.3 kB / 0.5604 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.472e-05/0.9267, allocations: 50 kB / 0.5604 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.097e-05/0.9268, allocations: 54.25 kB / 0.5605 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.9279, allocations: 0.8712 MB / 0.5613 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.928, allocations: 4 kB / 0.5613 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.52e-05/0.928, allocations: 25.88 kB / 0.5613 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.9281, allocations: 27.67 kB / 0.5614 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.9291, allocations: 0.7103 MB / 0.5621 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002867/0.932, allocations: 5.149 MB / 0.5671 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006216/0.9326, allocations: 334.3 kB / 0.5674 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002616/0.9329, allocations: 218.6 kB / 0.5676 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001209/0.9341, allocations: 1.545 MB / 0.5691 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.9342, allocations: 38 kB / 0.5692 GB, free: 12.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 1.863e-06/0.9342, allocations: 0 / 0.5692 GB, free: 12.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.002497/0.9367, allocations: 0.6088 MB / 0.5698 GB, free: 12.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.9367, allocations: 77.11 kB / 0.5698 GB, free: 12.03 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.9369, allocations: 186.5 kB / 0.57 GB, free: 11.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.9369, allocations: 33.2 kB / 0.57 GB, free: 11.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.9371, allocations: 286.1 kB / 0.5703 GB, free: 11.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.9373, allocations: 230.2 kB / 0.5705 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.9374, allocations: 97.78 kB / 0.5706 GB, free: 11.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.9375, allocations: 342.1 kB / 0.5709 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.9377, allocations: 117.8 kB / 0.5711 GB, free: 10.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.938, allocations: 309.2 kB / 0.5714 GB, free: 10.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005494/0.9386, allocations: 493.1 kB / 0.5718 GB, free: 10.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.9386, allocations: 4 kB / 0.5718 GB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007082/0.9393, allocations: 479.3 kB / 0.5723 GB, free: 9.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.9393, allocations: 8 kB / 0.5723 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.9394, allocations: 7.938 kB / 0.5723 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.9394, allocations: 8 kB / 0.5723 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003295/0.9397, allocations: 86.86 kB / 0.5724 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005578/0.9403, allocations: 1.181 MB / 0.5735 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.9405, allocations: 59.08 kB / 0.5736 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.9406, allocations: 19.81 kB / 0.5736 GB, free: 8.496 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): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00021/0.9408, allocations: 199 kB / 0.5738 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.9409, allocations: 27.62 kB / 0.5738 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.312e-05/0.9409, allocations: 34.14 kB / 0.5739 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.9409, allocations: 0 / 0.5739 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.941, allocations: 11.88 kB / 0.5739 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.941, allocations: 4 kB / 0.5739 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009578/0.9419, allocations: 489.2 kB / 0.5744 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.9419, allocations: 0 / 0.5744 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.9421, allocations: 39.2 kB / 0.5744 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.9422, allocations: 8 kB / 0.5744 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.9422, allocations: 11.8 kB / 0.5744 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004819/0.9427, allocations: 1.163 MB / 0.5755 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.9427, allocations: 4.188 kB / 0.5755 GB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005613/0.9432, allocations: 0.5195 MB / 0.5761 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.265e-05/0.9433, allocations: 112.5 kB / 0.5762 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.9434, allocations: 7.75 kB / 0.5762 GB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.9435, allocations: 7.625 kB / 0.5762 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.9436, allocations: 19.91 kB / 0.5762 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.9436, allocations: 11.94 kB / 0.5762 GB, free: 6.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.316e-05/0.9437, allocations: 123.8 kB / 0.5763 GB, free: 5.938 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9437, allocations: 0 / 0.5763 GB, free: 5.938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006396/0.9444, allocations: 190.6 kB / 0.5765 GB, free: 5.762 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004724/0.9448, allocations: 302.3 kB / 0.5768 GB, free: 5.492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009196/0.9458, allocations: 0.6234 MB / 0.5774 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.9458, allocations: 0.625 kB / 0.5774 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005418/0.9463, allocations: 0.5126 MB / 0.5779 GB, free: 4.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.9475, allocations: 196.2 kB / 0.5781 GB, free: 4.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.949, allocations: 1.128 MB / 0.5792 GB, free: 3.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/0.9496, allocations: 0.9465 MB / 0.5801 GB, free: 2.367 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.9e-05/0.9497, allocations: 51.25 kB / 0.5802 GB, free: 2.32 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.9497, allocations: 0 / 0.5802 GB, free: 2.32 MB / 398.1 MB Notification: Performance of Templates: time 0.0189/0.9686, allocations: 16.2 MB / 0.596 GB, free: 2.324 MB / 414.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)