Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.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.Pentane.Pentane_hs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs") translateModel(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00143/0.00143, allocations: 189.2 kB / 16.25 MB, free: 6.625 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.299/1.299, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1186/0.1186, allocations: 2.763 MB / 292.8 MB, free: 3.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.001731, allocations: 59.91 kB / 353.9 MB, free: 4.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09631, allocations: 50.23 MB / 404.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.00952/0.1059, allocations: 8.828 MB / 413 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007366/0.1133, allocations: 8.385 MB / 421.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.1135, allocations: 4 kB / 421.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007601/0.1143, allocations: 147.3 kB / 421.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004145/0.1148, allocations: 83.47 kB / 421.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1787/0.2935, allocations: 1.327 MB / 422.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.2938, allocations: 239.5 kB / 423.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.789e-05/0.2939, allocations: 12.89 kB / 423.2 MB, free: 37.68 MB / 350.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.191/0.4849, allocations: 13.56 MB / 436.7 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.4852, allocations: 76.14 kB / 436.8 MB, free: 32.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.4852, allocations: 6.562 kB / 436.8 MB, free: 32.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.4864, allocations: 302.3 kB / 437.1 MB, free: 32.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.4865, allocations: 25.08 kB / 437.1 MB, free: 32.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.76e-05/0.4866, allocations: 78.84 kB / 437.2 MB, free: 32.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006122/0.4872, allocations: 347.1 kB / 437.5 MB, free: 32.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4872, allocations: 0 / 437.5 MB, free: 32.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4872, allocations: 7.938 kB / 437.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.4873, allocations: 0 / 437.5 MB, free: 32.68 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0006232/0.4879, allocations: 495.1 kB / 438 MB, free: 32.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.4879, allocations: 9.688 kB / 438 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003794/0.4883, allocations: 92 kB / 438.1 MB, free: 32.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.4885, allocations: 196.3 kB / 438.3 MB, free: 32.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/0.4885, allocations: 22.47 kB / 438.3 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.4885, allocations: 6.406 kB / 438.3 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.4889, allocations: 252.8 kB / 438.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.4889, allocations: 1.594 kB / 438.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.4889, allocations: 0 / 438.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.4889, allocations: 13.17 kB / 438.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003366/0.4893, allocations: 243.3 kB / 438.8 MB, free: 32.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007377/0.49, allocations: 0.8569 MB / 439.7 MB, free: 31.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002175/0.4902, allocations: 176.3 kB / 439.9 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.4904, allocations: 153.8 kB / 440 MB, free: 31.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.4905, allocations: 0 / 440 MB, free: 31.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.4905, allocations: 45.19 kB / 440.1 MB, free: 31.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.163e-06/0.4905, allocations: 0 / 440.1 MB, free: 31.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0006242/0.4911, allocations: 403.9 kB / 440.5 MB, free: 31.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.015e-05/0.4912, allocations: 51.41 kB / 440.5 MB, free: 31.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.868e-05/0.4912, allocations: 127.6 kB / 440.6 MB, free: 31.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.4913, allocations: 29.7 kB / 440.7 MB, free: 31.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.048e-05/0.4913, allocations: 110.1 kB / 440.8 MB, free: 30.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.871e-05/0.4914, allocations: 102.8 kB / 440.9 MB, free: 30.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.148e-05/0.4914, allocations: 43.31 kB / 440.9 MB, free: 30.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.591e-05/0.4915, allocations: 321 kB / 441.2 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.4917, allocations: 121.5 kB / 441.3 MB, free: 30.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.4918, allocations: 166.4 kB / 441.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/0.4922, allocations: 210.3 kB / 441.7 MB, free: 30.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4922, allocations: 0 / 441.7 MB, free: 30.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004108/0.4926, allocations: 297.5 kB / 442 MB, free: 30.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.4926, allocations: 6.312 kB / 442 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.4926, allocations: 4 kB / 442 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.4927, allocations: 3.062 kB / 442 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.4928, allocations: 29.11 kB / 442 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.4928, allocations: 0 / 442 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.868e-05/0.4929, allocations: 28.05 kB / 442.1 MB, free: 30.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.4929, allocations: 6.344 kB / 442.1 MB, free: 30.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (fluid.phaseOutput,fluid.state.phase,fluid.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 8.038e-05/0.493, allocations: 119.4 kB / 442.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.641e-05/0.493, allocations: 29 kB / 442.2 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005679/0.4936, allocations: 485.8 kB / 442.7 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004487/0.4941, allocations: 422 kB / 443.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.4941, allocations: 0 / 443.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.4941, allocations: 0 / 443.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009487/0.495, allocations: 0.9197 MB / 444 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4951, allocations: 3.938 kB / 444 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.4952, allocations: 42.38 kB / 444.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.4952, allocations: 4 kB / 444.1 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.4952, allocations: 3.938 kB / 444.1 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4952, allocations: 7.219 kB / 444.1 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4952, allocations: 0 / 444.1 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004984/0.4957, allocations: 0.509 MB / 444.6 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.723e-05/0.4958, allocations: 102.3 kB / 444.7 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.4958, allocations: 14.03 kB / 444.7 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.496, allocations: 18.09 kB / 444.7 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.633e-05/0.496, allocations: 20.03 kB / 444.7 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.496, allocations: 10.5 kB / 444.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.841e-05/0.4961, allocations: 81.88 kB / 444.8 MB, free: 29.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4961, allocations: 0 / 444.8 MB, free: 29.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003354/0.4964, allocations: 70.27 kB / 444.9 MB, free: 29.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (fluid.state.phase,$cse3.phase,fluid.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0004305/0.4968, allocations: 267.3 kB / 445.2 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005878/0.4974, allocations: 414 kB / 445.6 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4975, allocations: 0 / 445.6 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.4977, allocations: 226.1 kB / 445.8 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006556/0.4984, allocations: 120.5 kB / 445.9 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007474/0.4991, allocations: 0.6627 MB / 446.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.4993, allocations: 0.7466 MB / 447.3 MB, free: 28.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.4994, allocations: 28.8 kB / 447.3 MB, free: 28.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.784e-05/0.4995, allocations: 20.12 kB / 447.4 MB, free: 28.15 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4995, allocations: 0 / 447.4 MB, free: 28.15 MB / 350.1 MB Notification: Performance of Templates: time 0.009607/0.5091, allocations: 6.015 MB / 453.4 MB, free: 27.66 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe 2>&1)