Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.Math.Examples.Average.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001483/0.001483, allocations: 197 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205.1 MB / 222 MB, free: 5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6668/0.6668, allocations: 95.47 MB / 364.8 MB, free: 10.18 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 59.91 kB / 444.7 MB, free: 10.16 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4208/0.4225, allocations: 69.07 MB / 0.5017 GB, free: 17.65 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002489/0.4251, allocations: 1.558 MB / 0.5032 GB, free: 16.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000395/0.4255, allocations: 96.23 kB / 0.5033 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.15e-05/0.4256, allocations: 0 / 0.5033 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.4257, allocations: 11.94 kB / 0.5033 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.8e-05/0.4258, allocations: 7.938 kB / 0.5033 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.426, allocations: 23.97 kB / 0.5033 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.129e-05/0.4261, allocations: 47.84 kB / 0.5034 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.4262, allocations: 23.98 kB / 0.5034 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.587e-05/0.4263, allocations: 35.84 kB / 0.5034 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.722e-05/0.4263, allocations: 23.91 kB / 0.5035 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.4263, allocations: 4 kB / 0.5035 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.785e-05/0.4264, allocations: 11.94 kB / 0.5035 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.242e-05/0.4265, allocations: 15.92 kB / 0.5035 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.446e-05/0.4265, allocations: 27.86 kB / 0.5035 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.4267, allocations: 53.77 kB / 0.5036 GB, free: 15.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.4267, allocations: 4 kB / 0.5036 GB, free: 15.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4267, allocations: 0 / 0.5036 GB, free: 15.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.4267, allocations: 0 / 0.5036 GB, free: 15.7 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006052/0.4273, allocations: 383.2 kB / 0.5039 GB, free: 15.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4274, allocations: 11.98 kB / 0.504 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.254e-05/0.4274, allocations: 8.875 kB / 0.504 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.4276, allocations: 184.2 kB / 0.5041 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.4276, allocations: 384 / 0.5041 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.4276, allocations: 7.938 kB / 0.5042 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.4279, allocations: 93.62 kB / 0.5042 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.4279, allocations: 0 / 0.5042 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.4279, allocations: 7.938 kB / 0.5042 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.4279, allocations: 3.984 kB / 0.5043 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002754/0.4282, allocations: 83.86 kB / 0.5043 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004644/0.4287, allocations: 320.7 kB / 0.5046 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.4288, allocations: 62.56 kB / 0.5047 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.429, allocations: 44.91 kB / 0.5047 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/0.429, allocations: 4 kB / 0.5047 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.4291, allocations: 34.56 kB / 0.5048 GB, free: 14.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.4291, allocations: 0 / 0.5048 GB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004905/0.4296, allocations: 141.4 kB / 0.5049 GB, free: 14.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/0.4296, allocations: 55.34 kB / 0.505 GB, free: 14.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.14e-05/0.4297, allocations: 133.8 kB / 0.5051 GB, free: 13.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.086e-06/0.4297, allocations: 25.7 kB / 0.5051 GB, free: 13.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.85e-05/0.4297, allocations: 88.14 kB / 0.5052 GB, free: 13.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.4297, allocations: 19.73 kB / 0.5052 GB, free: 13.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.4298, allocations: 13.72 kB / 0.5052 GB, free: 13.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.39e-05/0.4298, allocations: 318.8 kB / 0.5055 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.43, allocations: 35.95 kB / 0.5056 GB, free: 13.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.4301, allocations: 27.97 kB / 0.5056 GB, free: 13.42 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.4304, allocations: 76.77 kB / 0.5057 GB, free: 13.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4304, allocations: 4 kB / 0.5057 GB, free: 13.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002916/0.4307, allocations: 105.5 kB / 0.5058 GB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.4307, allocations: 4 kB / 0.5058 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.4307, allocations: 0 / 0.5058 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.4307, allocations: 0 / 0.5058 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.4309, allocations: 23.97 kB / 0.5058 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.4309, allocations: 7.938 kB / 0.5058 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.44e-05/0.431, allocations: 11.98 kB / 0.5058 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.431, allocations: 0 / 0.5058 GB, free: 13.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 5.685e-05/0.431, allocations: 113.8 kB / 0.5059 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.4311, allocations: 7.906 kB / 0.5059 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003435/0.4314, allocations: 113.5 kB / 0.506 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.4314, allocations: 3.938 kB / 0.506 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4314, allocations: 7.875 kB / 0.5061 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.4315, allocations: 4 kB / 0.5061 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.4316, allocations: 177.6 kB / 0.5062 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4316, allocations: 0 / 0.5062 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.984e-05/0.4317, allocations: 11.98 kB / 0.5062 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.4317, allocations: 7.984 kB / 0.5062 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.4317, allocations: 0 / 0.5062 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.4317, allocations: 4 kB / 0.5063 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4317, allocations: 3.938 kB / 0.5063 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002987/0.432, allocations: 203.7 kB / 0.5065 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.691e-05/0.432, allocations: 77.11 kB / 0.5065 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.4321, allocations: 12 kB / 0.5065 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.753e-05/0.4322, allocations: 11.98 kB / 0.5065 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.4322, allocations: 11.92 kB / 0.5066 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.4322, allocations: 0 / 0.5066 GB, free: 12.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.675e-05/0.4323, allocations: 87.28 kB / 0.5066 GB, free: 12.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4323, allocations: 3.938 kB / 0.5066 GB, free: 12.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.4325, allocations: 15.98 kB / 0.5067 GB, free: 12.21 MB / 382.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001051/0.4326, allocations: 95.25 kB / 0.5068 GB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003041/0.4329, allocations: 79.92 kB / 0.5068 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4329, allocations: 0 / 0.5068 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.4331, allocations: 35.95 kB / 0.5069 GB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.4334, allocations: 10.34 kB / 0.5069 GB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003069/0.4337, allocations: 183 kB / 0.507 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.4338, allocations: 0.6887 MB / 0.5077 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.078e-05/0.4339, allocations: 7.984 kB / 0.5077 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.491e-05/0.4339, allocations: 7.438 kB / 0.5077 GB, free: 11.05 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4339, allocations: 7.938 kB / 0.5077 GB, free: 11.04 MB / 382.1 MB Notification: Performance of Templates: time 0.00272/0.4366, allocations: 0.6246 MB / 0.5084 GB, free: 10.42 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_1.6_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)