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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 102.3 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 219.1 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01273/0.01273, allocations: 2.792 MB / 316 MB, free: 440 kB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit") [Timeout 660] "Notification: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 68.17 kB / 440 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0896/0.09164, allocations: 54.18 MB / 494.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2291/0.3208, allocations: 51.31 MB / 0.5327 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02812/0.3489, allocations: 29.2 MB / 0.5612 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005479/0.3494, allocations: 2.438 kB / 0.5612 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00161/0.351, allocations: 0.6163 MB / 0.5618 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0058/0.3568, allocations: 2.258 MB / 0.564 GB, free: 2.574 MB / 398.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.007896/0.3647, allocations: 2.93 MB / 0.5669 GB, free: 220 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.3661, allocations: 0.9429 MB / 0.5678 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.359e-05/0.3662, allocations: 21.97 kB / 0.5678 GB, free: 15.48 MB / 414.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.4632/0.8293, allocations: 51.34 MB / 0.6179 GB, free: 13.14 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006944/0.83, allocations: 302.5 kB / 0.6182 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.611e-05/0.8301, allocations: 40 kB / 0.6183 GB, free: 12.8 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2324/1.062, allocations: 27.08 MB / 0.6447 GB, free: 1.555 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002053/1.063, allocations: 119.4 kB / 0.6448 GB, free: 1.438 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000534/1.063, allocations: 338.4 kB / 0.6451 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006959/1.07, allocations: 1.866 MB / 0.647 GB, free: 15.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/1.07, allocations: 0 / 0.647 GB, free: 15.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.744e-06/1.07, allocations: 0 / 0.647 GB, free: 15.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.59e-05/1.07, allocations: 0 / 0.647 GB, free: 15.23 MB / 494.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.00162/1.072, allocations: 1.049 MB / 0.648 GB, free: 14.15 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/1.072, allocations: 8.031 kB / 0.648 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002002/1.074, allocations: 0.4961 MB / 0.6485 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/1.075, allocations: 289.6 kB / 0.6488 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/1.075, allocations: 46.06 kB / 0.6488 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.913e-05/1.076, allocations: 63.98 kB / 0.6489 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/1.077, allocations: 0.8765 MB / 0.6497 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/1.077, allocations: 4 kB / 0.6497 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.013e-05/1.077, allocations: 20 kB / 0.6497 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-05/1.077, allocations: 39.97 kB / 0.6498 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/1.079, allocations: 0.7162 MB / 0.6505 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004621/1.083, allocations: 4.966 MB / 0.6553 GB, free: 5.961 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/1.084, allocations: 265.1 kB / 0.6556 GB, free: 5.684 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/1.085, allocations: 157.6 kB / 0.6557 GB, free: 5.523 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001214/1.086, allocations: 0.9117 MB / 0.6566 GB, free: 4.59 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/1.086, allocations: 42.5 kB / 0.6567 GB, free: 4.539 MB / 494.1 MB Notification: Performance of pre-optimization done (n=71): time 2.034e-06/1.086, allocations: 0 / 0.6567 GB, free: 4.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=71): time 0.001603/1.088, allocations: 0.5973 MB / 0.6572 GB, free: 3.938 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.735e-05/1.088, allocations: 81.11 kB / 0.6573 GB, free: 3.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/1.088, allocations: 186.5 kB / 0.6575 GB, free: 3.648 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/1.088, allocations: 25.7 kB / 0.6575 GB, free: 3.617 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001985/1.088, allocations: 292.5 kB / 0.6578 GB, free: 3.324 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001965/1.088, allocations: 253.7 kB / 0.658 GB, free: 3.074 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/1.088, allocations: 97.95 kB / 0.6581 GB, free: 2.969 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/1.089, allocations: 342.8 kB / 0.6585 GB, free: 2.625 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/1.089, allocations: 117.3 kB / 0.6586 GB, free: 2.512 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000383/1.089, allocations: 303.9 kB / 0.6589 GB, free: 2.137 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006742/1.09, allocations: 477 kB / 0.6593 GB, free: 1.594 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/1.09, allocations: 4 kB / 0.6593 GB, free: 1.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008345/1.091, allocations: 480.3 kB / 0.6598 GB, free: 1.113 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/1.091, allocations: 8.719 kB / 0.6598 GB, free: 1.105 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/1.091, allocations: 16.02 kB / 0.6598 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/1.091, allocations: 4.188 kB / 0.6598 GB, free: 1.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002477/1.091, allocations: 75.91 kB / 0.6599 GB, free: 1.012 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/1.091, allocations: 23.84 kB / 0.6599 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/1.091, allocations: 55.52 kB / 0.66 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/1.091, allocations: 20 kB / 0.66 GB, free: 0.9141 MB / 494.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.0002468/1.092, allocations: 201.6 kB / 0.6602 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/1.092, allocations: 31.8 kB / 0.6602 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.951e-05/1.092, allocations: 30.59 kB / 0.6602 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/1.092, allocations: 4 kB / 0.6602 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.092, allocations: 0 / 0.6602 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/1.092, allocations: 3.984 kB / 0.6602 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006527/1.092, allocations: 467.9 kB / 0.6607 GB, free: 144 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.092, allocations: 0 / 0.6607 GB, free: 144 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/1.093, allocations: 31.98 kB / 0.6607 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/1.093, allocations: 0 / 0.6607 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/1.093, allocations: 15.92 kB / 0.6607 GB, free: 96 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/1.093, allocations: 0 / 0.6607 GB, free: 96 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/1.093, allocations: 0 / 0.6607 GB, free: 96 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006905/1.093, allocations: 0.5061 MB / 0.6612 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.08e-05/1.093, allocations: 39.62 kB / 0.6613 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/1.093, allocations: 7.922 kB / 0.6613 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/1.094, allocations: 8 kB / 0.6613 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.578e-05/1.094, allocations: 15.97 kB / 0.6613 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/1.094, allocations: 16 kB / 0.6613 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001044/1.094, allocations: 120.2 kB / 0.6614 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7.1e-08/1.094, allocations: 0 / 0.6614 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007499/1.094, allocations: 195.5 kB / 0.6616 GB, free: 15.17 MB / 0.4981 GB 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.0007516/1.095, allocations: 292.8 kB / 0.6619 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009967/1.096, allocations: 0.5482 MB / 0.6624 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/1.096, allocations: 0.9375 kB / 0.6624 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005579/1.097, allocations: 467.6 kB / 0.6629 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/1.098, allocations: 186.3 kB / 0.663 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/1.1, allocations: 1.124 MB / 0.6641 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006572/1.1, allocations: 0.9463 MB / 0.6651 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/1.101, allocations: 51.38 kB / 0.6651 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of SimCode: time 4.41e-07/1.101, allocations: 0 / 0.6651 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of Templates: time 0.01439/1.115, allocations: 8.815 MB / 0.6737 GB, free: 2.625 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.206588259898126] Failed to read output from testmodel.py, exit status != 0: 1.123161545023322 1.140200469 0.06659508900000001 Calling exit ...