Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7546/0.7546, allocations: 128.7 MB / 144.5 MB, free: 1.395 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001229/0.001229, allocations: 194 kB / 174.2 MB, free: 5.934 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.1 MB / 408.9 MB, free: 9.734 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001078, allocations: 100.3 kB / 485.1 MB, free: 13.58 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001063, allocations: 56.58 kB / 0.558 GB, free: 97.56 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1687, allocations: 75.48 MB / 0.6317 GB, free: 33.04 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Average): time 0.002598/0.1713, allocations: 1.581 MB / 0.6332 GB, free: 31.44 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003564/0.1717, allocations: 119.7 kB / 0.6333 GB, free: 31.32 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.752e-05/0.1718, allocations: 7.938 kB / 0.6333 GB, free: 31.31 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.1719, allocations: 3.938 kB / 0.6334 GB, free: 31.31 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 2.72e-05/0.172, allocations: 3.938 kB / 0.6334 GB, free: 31.3 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.1722, allocations: 23.97 kB / 0.6334 GB, free: 31.28 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 8.335e-05/0.1723, allocations: 51.84 kB / 0.6334 GB, free: 31.23 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.1724, allocations: 31.97 kB / 0.6335 GB, free: 31.2 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.155e-05/0.1725, allocations: 19.92 kB / 0.6335 GB, free: 31.18 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.413e-05/0.1725, allocations: 23.91 kB / 0.6335 GB, free: 31.16 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.1725, allocations: 4 kB / 0.6335 GB, free: 31.15 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.126e-05/0.1726, allocations: 19.88 kB / 0.6335 GB, free: 31.13 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 4.511e-05/0.1727, allocations: 11.98 kB / 0.6335 GB, free: 31.12 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 3.797e-05/0.1727, allocations: 19.86 kB / 0.6336 GB, free: 31.1 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.1728, allocations: 59.8 kB / 0.6336 GB, free: 31.04 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1729, allocations: 4 kB / 0.6336 GB, free: 31.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1729, allocations: 0 / 0.6336 GB, free: 31.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.167e-06/0.1729, allocations: 0 / 0.6336 GB, free: 31.04 MB / 442.7 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.0005246/0.1734, allocations: 382.5 kB / 0.634 GB, free: 30.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1734, allocations: 12.03 kB / 0.634 GB, free: 30.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.453e-05/0.1735, allocations: 8.844 kB / 0.634 GB, free: 30.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.1736, allocations: 176.3 kB / 0.6342 GB, free: 30.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.1737, allocations: 4.375 kB / 0.6342 GB, free: 30.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.1737, allocations: 4.375 kB / 0.6342 GB, free: 30.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.174, allocations: 94.12 kB / 0.6343 GB, free: 30.28 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.174, allocations: 192 / 0.6343 GB, free: 30.28 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.174, allocations: 3.938 kB / 0.6343 GB, free: 30.28 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.174, allocations: 4 kB / 0.6343 GB, free: 30.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/0.1743, allocations: 79.92 kB / 0.6343 GB, free: 30.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.1748, allocations: 328.6 kB / 0.6347 GB, free: 29.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.175, allocations: 58.55 kB / 0.6347 GB, free: 29.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.1751, allocations: 44.91 kB / 0.6348 GB, free: 29.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.359e-05/0.1752, allocations: 0 / 0.6348 GB, free: 29.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.1752, allocations: 34.56 kB / 0.6348 GB, free: 29.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1752, allocations: 0 / 0.6348 GB, free: 29.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005428/0.1758, allocations: 145.5 kB / 0.6349 GB, free: 29.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.1758, allocations: 55.39 kB / 0.635 GB, free: 29.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.551e-05/0.1759, allocations: 113.8 kB / 0.6351 GB, free: 29.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.328e-06/0.1759, allocations: 29.64 kB / 0.6351 GB, free: 29.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.66e-05/0.1759, allocations: 96.03 kB / 0.6352 GB, free: 29.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.176, allocations: 15.83 kB / 0.6352 GB, free: 29.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.176, allocations: 17.72 kB / 0.6352 GB, free: 29.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.923e-05/0.1761, allocations: 322.8 kB / 0.6356 GB, free: 28.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.1762, allocations: 35.89 kB / 0.6356 GB, free: 28.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.1764, allocations: 35.95 kB / 0.6356 GB, free: 28.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.1766, allocations: 76.72 kB / 0.6357 GB, free: 28.69 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1766, allocations: 0 / 0.6357 GB, free: 28.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002886/0.1769, allocations: 101.6 kB / 0.6358 GB, free: 28.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1769, allocations: 4 kB / 0.6358 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1769, allocations: 4 kB / 0.6358 GB, free: 28.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.177, allocations: 4 kB / 0.6358 GB, free: 28.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.1771, allocations: 15.97 kB / 0.6358 GB, free: 28.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1771, allocations: 0 / 0.6358 GB, free: 28.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.239e-05/0.1772, allocations: 15.89 kB / 0.6358 GB, free: 28.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.1772, allocations: 4 kB / 0.6358 GB, free: 28.54 MB / 442.7 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 6.003e-05/0.1773, allocations: 113.8 kB / 0.6359 GB, free: 28.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/0.1773, allocations: 7.984 kB / 0.636 GB, free: 28.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003357/0.1776, allocations: 117.5 kB / 0.6361 GB, free: 28.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1777, allocations: 0 / 0.6361 GB, free: 28.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1777, allocations: 0 / 0.6361 GB, free: 28.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1777, allocations: 4 kB / 0.6361 GB, free: 28.28 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.1778, allocations: 177.6 kB / 0.6362 GB, free: 28.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1778, allocations: 0 / 0.6362 GB, free: 28.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.699e-05/0.1779, allocations: 23.97 kB / 0.6363 GB, free: 28.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1779, allocations: 4 kB / 0.6363 GB, free: 28.03 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.1779, allocations: 0 / 0.6363 GB, free: 28.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.1779, allocations: 0 / 0.6363 GB, free: 28.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1779, allocations: 4 kB / 0.6363 GB, free: 28.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005635/0.1785, allocations: 0.7824 MB / 0.637 GB, free: 27.19 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.955e-05/0.1785, allocations: 85.02 kB / 0.6371 GB, free: 27.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.1786, allocations: 0 / 0.6371 GB, free: 27.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.824e-05/0.1787, allocations: 19.91 kB / 0.6371 GB, free: 27.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.1787, allocations: 0 / 0.6371 GB, free: 27.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.1787, allocations: 4.422 kB / 0.6371 GB, free: 27.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.185e-05/0.1788, allocations: 95.27 kB / 0.6372 GB, free: 26.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.92e-07/0.1788, allocations: 0 / 0.6372 GB, free: 26.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003091/0.1791, allocations: 15.94 kB / 0.6372 GB, free: 26.95 MB / 442.7 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.0001292/0.1792, allocations: 107.2 kB / 0.6373 GB, free: 26.84 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0003248/0.1795, allocations: 71.92 kB / 0.6374 GB, free: 26.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1796, allocations: 4 kB / 0.6374 GB, free: 26.76 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.1797, allocations: 47.98 kB / 0.6375 GB, free: 26.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.18, allocations: 6.125 kB / 0.6375 GB, free: 26.71 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003703/0.1804, allocations: 282.2 kB / 0.6377 GB, free: 26.39 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.1806, allocations: 0.6926 MB / 0.6384 GB, free: 25.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 4.278e-05/0.1806, allocations: 11.98 kB / 0.6384 GB, free: 25.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.249e-05/0.1807, allocations: 7.438 kB / 0.6384 GB, free: 25.66 MB / 442.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1807, allocations: 0 / 0.6384 GB, free: 25.66 MB / 442.7 MB Notification: Performance of Templates: time 0.002546/0.1832, allocations: 0.6529 MB / 0.6391 GB, free: 25.01 MB / 442.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)