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.009445/0.009445, allocations: 100.7 kB / 15.73 MB, free: 6.438 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.001471/0.001471, allocations: 194.9 kB / 16.68 MB, free: 6.355 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.682/1.682, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.6938/0.6938, allocations: 95.48 MB / 365.4 MB, free: 9.777 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.001505/0.001505, allocations: 70.09 kB / 0.5036 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1639, allocations: 69.08 MB / 0.5711 GB, free: 8.336 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002528/0.1665, allocations: 1.513 MB / 0.5725 GB, free: 6.809 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003876/0.1669, allocations: 100.2 kB / 0.5726 GB, free: 6.711 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.61e-05/0.167, allocations: 0 / 0.5726 GB, free: 6.711 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.1671, allocations: 3.938 kB / 0.5726 GB, free: 6.707 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.8e-05/0.1672, allocations: 11.88 kB / 0.5727 GB, free: 6.695 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.1674, allocations: 31.95 kB / 0.5727 GB, free: 6.664 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.1676, allocations: 55.78 kB / 0.5727 GB, free: 6.609 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.1677, allocations: 27.97 kB / 0.5728 GB, free: 6.582 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.462e-05/0.1678, allocations: 23.92 kB / 0.5728 GB, free: 6.559 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.463e-05/0.1679, allocations: 31.84 kB / 0.5728 GB, free: 6.527 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.1679, allocations: 8 kB / 0.5728 GB, free: 6.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.714e-05/0.1679, allocations: 12 kB / 0.5728 GB, free: 6.508 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.519e-05/0.168, allocations: 11.98 kB / 0.5729 GB, free: 6.496 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.628e-05/0.1681, allocations: 27.86 kB / 0.5729 GB, free: 6.469 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.1682, allocations: 59.73 kB / 0.5729 GB, free: 6.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1682, allocations: 0 / 0.5729 GB, free: 6.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1682, allocations: 0 / 0.5729 GB, free: 6.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1682, allocations: 0 / 0.5729 GB, free: 6.41 MB / 446.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.0005989/0.1688, allocations: 387.2 kB / 0.5733 GB, free: 5.984 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1689, allocations: 15.98 kB / 0.5733 GB, free: 5.969 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.529e-05/0.1689, allocations: 4.844 kB / 0.5733 GB, free: 5.965 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.1691, allocations: 184.2 kB / 0.5735 GB, free: 5.746 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.1691, allocations: 8.125 kB / 0.5735 GB, free: 5.738 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.1692, allocations: 4 kB / 0.5735 GB, free: 5.734 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.1695, allocations: 89.62 kB / 0.5736 GB, free: 5.641 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1695, allocations: 3.938 kB / 0.5736 GB, free: 5.637 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.1695, allocations: 7.984 kB / 0.5736 GB, free: 5.629 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.1695, allocations: 4 kB / 0.5736 GB, free: 5.625 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/0.1698, allocations: 75.92 kB / 0.5737 GB, free: 5.551 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005612/0.1704, allocations: 336.6 kB / 0.574 GB, free: 5.172 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.1706, allocations: 54.55 kB / 0.5741 GB, free: 5.109 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.1708, allocations: 44.91 kB / 0.5741 GB, free: 5.062 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.1708, allocations: 0 / 0.5741 GB, free: 5.062 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.1708, allocations: 34.5 kB / 0.5741 GB, free: 5.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.1709, allocations: 4 kB / 0.5741 GB, free: 5.016 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005597/0.1714, allocations: 145.5 kB / 0.5743 GB, free: 4.867 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.1715, allocations: 55.34 kB / 0.5743 GB, free: 4.801 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.108e-05/0.1716, allocations: 117.8 kB / 0.5744 GB, free: 4.676 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.1716, allocations: 33.7 kB / 0.5745 GB, free: 4.637 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.989e-05/0.1716, allocations: 92.05 kB / 0.5746 GB, free: 4.543 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.1717, allocations: 11.83 kB / 0.5746 GB, free: 4.531 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.816e-05/0.1717, allocations: 17.72 kB / 0.5746 GB, free: 4.508 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1718, allocations: 310.8 kB / 0.5749 GB, free: 4.195 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.172, allocations: 35.95 kB / 0.5749 GB, free: 4.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.1721, allocations: 35.97 kB / 0.575 GB, free: 4.125 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.1724, allocations: 76.77 kB / 0.575 GB, free: 4.047 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1724, allocations: 0 / 0.575 GB, free: 4.047 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003292/0.1728, allocations: 109.5 kB / 0.5751 GB, free: 3.934 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.1728, allocations: 4 kB / 0.5751 GB, free: 3.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.1728, allocations: 0 / 0.5751 GB, free: 3.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.1728, allocations: 0 / 0.5751 GB, free: 3.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.173, allocations: 23.91 kB / 0.5752 GB, free: 3.906 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.173, allocations: 0 / 0.5752 GB, free: 3.906 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.867e-05/0.1731, allocations: 11.98 kB / 0.5752 GB, free: 3.895 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.1731, allocations: 3.938 kB / 0.5752 GB, free: 3.891 MB / 446.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 7.865e-05/0.1732, allocations: 117.8 kB / 0.5753 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.1732, allocations: 4 kB / 0.5753 GB, free: 3.762 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003819/0.1736, allocations: 117.4 kB / 0.5754 GB, free: 3.633 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1736, allocations: 3.938 kB / 0.5754 GB, free: 3.629 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1736, allocations: 0 / 0.5754 GB, free: 3.629 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1736, allocations: 0 / 0.5754 GB, free: 3.629 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.1738, allocations: 181.6 kB / 0.5756 GB, free: 3.402 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1738, allocations: 0 / 0.5756 GB, free: 3.402 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.853e-05/0.1739, allocations: 19.97 kB / 0.5756 GB, free: 3.383 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1739, allocations: 384 / 0.5756 GB, free: 3.383 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.1739, allocations: 3.938 kB / 0.5756 GB, free: 3.379 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.174, allocations: 3.938 kB / 0.5756 GB, free: 3.375 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.174, allocations: 0 / 0.5756 GB, free: 3.375 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003679/0.1743, allocations: 207.4 kB / 0.5758 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.11e-05/0.1744, allocations: 85.02 kB / 0.5759 GB, free: 3.055 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.1744, allocations: 0 / 0.5759 GB, free: 3.055 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.1745, allocations: 15.92 kB / 0.5759 GB, free: 3.039 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.1746, allocations: 15.92 kB / 0.5759 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.1746, allocations: 0 / 0.5759 GB, free: 3.023 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.405e-05/0.1746, allocations: 91.28 kB / 0.576 GB, free: 2.934 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1746, allocations: 4 kB / 0.576 GB, free: 2.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002265/0.1749, allocations: 8 kB / 0.576 GB, free: 2.922 MB / 446.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.0001424/0.175, allocations: 99.23 kB / 0.5761 GB, free: 2.816 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003588/0.1754, allocations: 71.92 kB / 0.5762 GB, free: 2.746 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1754, allocations: 0 / 0.5762 GB, free: 2.746 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.1756, allocations: 47.95 kB / 0.5762 GB, free: 2.699 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.1759, allocations: 4 kB / 0.5762 GB, free: 2.695 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003374/0.1762, allocations: 141.5 kB / 0.5764 GB, free: 2.531 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.1765, allocations: 0.6924 MB / 0.577 GB, free: 1.812 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.413e-05/0.1766, allocations: 11.98 kB / 0.5771 GB, free: 1.801 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.68e-05/0.1766, allocations: 7.438 kB / 0.5771 GB, free: 1.793 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1766, allocations: 0 / 0.5771 GB, free: 1.793 MB / 446.1 MB Notification: Performance of Templates: time 0.00308/0.1797, allocations: 0.769 MB / 0.5778 GB, free: 1.031 MB / 446.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)