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.001344/0.001344, allocations: 105.7 kB / 16.27 MB, free: 6.004 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.001074/0.001074, allocations: 193.9 kB / 17.2 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.323/1.323, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.0119/0.0119, allocations: 2.774 MB / 293.8 MB, free: 12.06 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 59.91 kB / 355.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1934, allocations: 50.24 MB / 405.3 MB, free: 32.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.03753/0.2309, allocations: 50.7 MB / 456 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02331/0.2543, allocations: 29.1 MB / 485.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005102/0.2549, allocations: 7.938 kB / 485.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.2565, allocations: 0.6136 MB / 485.7 MB, free: 244 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005831/0.2623, allocations: 2.234 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.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.007526/0.2699, allocations: 2.936 MB / 490.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.2711, allocations: 0.9209 MB / 491.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.2712, allocations: 61.75 kB / 491.9 MB, free: 10.04 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.5093/0.7805, allocations: 50.59 MB / 0.5298 GB, free: 25.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007366/0.7813, allocations: 305.4 kB / 0.5301 GB, free: 25.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.109e-05/0.7814, allocations: 42.12 kB / 0.5301 GB, free: 25.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1575/0.9388, allocations: 26.7 MB / 0.5562 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.9391, allocations: 113.9 kB / 0.5563 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004642/0.9396, allocations: 335.8 kB / 0.5566 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.9456, allocations: 1.831 MB / 0.5584 GB, free: 6.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.9456, allocations: 0 / 0.5584 GB, free: 6.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.9456, allocations: 0 / 0.5584 GB, free: 6.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.9457, allocations: 4 kB / 0.5584 GB, free: 6.395 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.001241/0.9469, allocations: 1.101 MB / 0.5595 GB, free: 5.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.9469, allocations: 12.03 kB / 0.5595 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001815/0.9488, allocations: 0.493 MB / 0.56 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.9491, allocations: 350.9 kB / 0.5603 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.66e-05/0.9492, allocations: 46.31 kB / 0.5603 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.691e-05/0.9492, allocations: 54.81 kB / 0.5604 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.9504, allocations: 0.8699 MB / 0.5612 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.9504, allocations: 3.281 kB / 0.5612 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.555e-05/0.9505, allocations: 23.31 kB / 0.5613 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.9505, allocations: 35.34 kB / 0.5613 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.9516, allocations: 0.7017 MB / 0.562 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.9547, allocations: 5.033 MB / 0.5669 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006558/0.9553, allocations: 337.1 kB / 0.5672 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.9556, allocations: 224.3 kB / 0.5674 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001374/0.957, allocations: 1.522 MB / 0.5689 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.9571, allocations: 42.12 kB / 0.569 GB, free: 12.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 2.094e-06/0.9571, allocations: 0 / 0.569 GB, free: 12.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.002857/0.9599, allocations: 0.5947 MB / 0.5695 GB, free: 12.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.96, allocations: 77.11 kB / 0.5696 GB, free: 12.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.9602, allocations: 193.2 kB / 0.5698 GB, free: 12.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.9602, allocations: 29.7 kB / 0.5698 GB, free: 12.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.9604, allocations: 285 kB / 0.5701 GB, free: 11.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.9605, allocations: 236.6 kB / 0.5703 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.9607, allocations: 98.22 kB / 0.5704 GB, free: 11.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.9608, allocations: 340.2 kB / 0.5707 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.961, allocations: 115.6 kB / 0.5709 GB, free: 11.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.9614, allocations: 310.5 kB / 0.5712 GB, free: 10.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005917/0.962, allocations: 487.8 kB / 0.5716 GB, free: 10.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.962, allocations: 96 / 0.5716 GB, free: 10.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007344/0.9627, allocations: 485.3 kB / 0.5721 GB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.9628, allocations: 8 kB / 0.5721 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.9628, allocations: 11.94 kB / 0.5721 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.9628, allocations: 8.719 kB / 0.5721 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.9631, allocations: 69.25 kB / 0.5722 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.9631, allocations: 19.08 kB / 0.5722 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.9633, allocations: 51 kB / 0.5722 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.9634, allocations: 23.25 kB / 0.5723 GB, free: 9.891 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.0002149/0.9636, allocations: 184.3 kB / 0.5724 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.653e-05/0.9637, allocations: 27.62 kB / 0.5725 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.266e-05/0.9637, allocations: 37.7 kB / 0.5725 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.9638, allocations: 0 / 0.5725 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.9638, allocations: 4 kB / 0.5725 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.9638, allocations: 8 kB / 0.5725 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005775/0.9644, allocations: 483.9 kB / 0.573 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.9644, allocations: 4 kB / 0.573 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.9645, allocations: 30.86 kB / 0.573 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.9645, allocations: 0 / 0.573 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.9645, allocations: 11.92 kB / 0.573 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.9646, allocations: 0 / 0.573 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.9646, allocations: 0 / 0.573 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006053/0.9652, allocations: 0.5146 MB / 0.5735 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.632e-05/0.9653, allocations: 108.6 kB / 0.5736 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.9653, allocations: 11.55 kB / 0.5736 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.9655, allocations: 4 kB / 0.5736 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.009e-05/0.9655, allocations: 15.92 kB / 0.5737 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.9656, allocations: 8 kB / 0.5737 GB, free: 8.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.028e-05/0.9657, allocations: 127.7 kB / 0.5738 GB, free: 8.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9657, allocations: 4 kB / 0.5738 GB, free: 8.566 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006775/0.9663, allocations: 194.4 kB / 0.574 GB, free: 8.383 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.000526/0.9669, allocations: 301.6 kB / 0.5743 GB, free: 8.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008132/0.9677, allocations: 0.611 MB / 0.5749 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.9677, allocations: 0 / 0.5749 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004564/0.9682, allocations: 0.4949 MB / 0.5753 GB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/0.9701, allocations: 191.2 kB / 0.5755 GB, free: 7.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.9718, allocations: 1.111 MB / 0.5766 GB, free: 6.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006219/0.9724, allocations: 0.9503 MB / 0.5775 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.9725, allocations: 47.25 kB / 0.5776 GB, free: 4.988 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.9725, allocations: 0 / 0.5776 GB, free: 4.988 MB / 398.1 MB Notification: Performance of Templates: time 0.0145/0.987, allocations: 8.686 MB / 0.5861 GB, free: 12.52 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 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)