Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001257/0.001257, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001267/0.001267, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002597/0.002597, allocations: 288.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 103.8 kB / 0.6821 GB, free: 6.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4573/0.46, allocations: 86.97 MB / 0.7671 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002572/0.4626, allocations: 1.534 MB / 0.7686 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003163/0.4629, allocations: 116.5 kB / 0.7687 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.755e-05/0.4629, allocations: 4 kB / 0.7687 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.463, allocations: 11.86 kB / 0.7687 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.283e-05/0.4631, allocations: 7.875 kB / 0.7687 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002062/0.4633, allocations: 27.97 kB / 0.7687 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.4634, allocations: 55.84 kB / 0.7688 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.4635, allocations: 19.98 kB / 0.7688 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.503e-05/0.4635, allocations: 27.91 kB / 0.7688 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.103e-05/0.4636, allocations: 31.84 kB / 0.7688 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.4636, allocations: 4 kB / 0.7689 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.725e-05/0.4637, allocations: 12 kB / 0.7689 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.183e-05/0.4637, allocations: 15.92 kB / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.248e-05/0.4638, allocations: 27.86 kB / 0.7689 GB, free: 2 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.4639, allocations: 59.59 kB / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.4639, allocations: 0 / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4639, allocations: 0 / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.4639, allocations: 0 / 0.769 GB, free: 1.945 MB / 0.5294 GB 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.0005644/0.4645, allocations: 389 kB / 0.7693 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.4645, allocations: 8.031 kB / 0.7693 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.121e-05/0.4645, allocations: 8.938 kB / 0.7693 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.4647, allocations: 196.1 kB / 0.7695 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.4647, allocations: 4.375 kB / 0.7695 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.4648, allocations: 384 / 0.7695 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.4651, allocations: 90.2 kB / 0.7696 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.4651, allocations: 4.125 kB / 0.7696 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.4651, allocations: 7.938 kB / 0.7696 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.4651, allocations: 0 / 0.7696 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003317/0.4654, allocations: 79.91 kB / 0.7697 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.466, allocations: 328.7 kB / 0.77 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.4662, allocations: 54.53 kB / 0.7701 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.4664, allocations: 40.92 kB / 0.7701 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.4664, allocations: 4 kB / 0.7701 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.4664, allocations: 38.55 kB / 0.7702 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.4664, allocations: 0 / 0.7702 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0005802/0.467, allocations: 137.6 kB / 0.7703 GB, free: 428 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.467, allocations: 55.41 kB / 0.7703 GB, free: 360 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.236e-05/0.4671, allocations: 117.8 kB / 0.7705 GB, free: 232 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.4671, allocations: 25.7 kB / 0.7705 GB, free: 200 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.661e-05/0.4672, allocations: 99.95 kB / 0.7706 GB, free: 96 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.4672, allocations: 11.95 kB / 0.7706 GB, free: 84 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.259e-05/0.4673, allocations: 9.719 kB / 0.7706 GB, free: 68 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.4674, allocations: 326.8 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.4676, allocations: 35.97 kB / 0.7709 GB, free: 15.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.4677, allocations: 31.95 kB / 0.771 GB, free: 15.67 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.468, allocations: 77.05 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.468, allocations: 0 / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000356/0.4684, allocations: 109.5 kB / 0.7711 GB, free: 15.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.4684, allocations: 11.98 kB / 0.7712 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.4684, allocations: 0 / 0.7712 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.4684, allocations: 0 / 0.7712 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.4685, allocations: 19.92 kB / 0.7712 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.4685, allocations: 0 / 0.7712 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.014e-05/0.4686, allocations: 7.984 kB / 0.7712 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.4686, allocations: 8 kB / 0.7712 GB, free: 15.43 MB / 0.545 GB 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 0.0001053/0.4688, allocations: 121.8 kB / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.4688, allocations: 0 / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003945/0.4692, allocations: 113.5 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.4692, allocations: 0 / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.4692, allocations: 4 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.4692, allocations: 0 / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.4694, allocations: 189.5 kB / 0.7716 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4694, allocations: 0 / 0.7716 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.788e-05/0.4695, allocations: 15.97 kB / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4695, allocations: 0 / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.4695, allocations: 8 kB / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.4695, allocations: 0 / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.4695, allocations: 0 / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004005/0.4699, allocations: 207.4 kB / 0.7718 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.901e-05/0.4699, allocations: 81.06 kB / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.47, allocations: 0 / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.4701, allocations: 11.98 kB / 0.7719 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.4701, allocations: 11.92 kB / 0.7719 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.4701, allocations: 4 kB / 0.7719 GB, free: 14.58 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.554e-05/0.4702, allocations: 91.27 kB / 0.772 GB, free: 14.49 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.4702, allocations: 0 / 0.772 GB, free: 14.49 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002262/0.4704, allocations: 11.94 kB / 0.772 GB, free: 14.48 MB / 0.545 GB 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.0001317/0.4705, allocations: 107.2 kB / 0.7721 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003699/0.4709, allocations: 79.91 kB / 0.7722 GB, free: 14.29 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4709, allocations: 0 / 0.7722 GB, free: 14.29 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.4711, allocations: 31.97 kB / 0.7722 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.4713, allocations: 15.22 kB / 0.7723 GB, free: 14.24 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000333/0.4717, allocations: 157.1 kB / 0.7724 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.472, allocations: 0.6924 MB / 0.7731 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.895e-05/0.472, allocations: 8.25 kB / 0.7731 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.44e-05/0.4721, allocations: 7.438 kB / 0.7731 GB, free: 13.33 MB / 0.545 GB Notification: Performance of SimCode: time 3.1e-07/0.4721, allocations: 0 / 0.7731 GB, free: 13.33 MB / 0.545 GB Notification: Performance of Templates: time 0.003303/0.4754, allocations: 0.7752 MB / 0.7738 GB, free: 12.56 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)