Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009415/0.0009414, 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.0009764/0.0009767, allocations: 190.3 kB / 16.25 MB, free: 6.637 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.227/1.227, allocations: 205.1 MB / 222.1 MB, free: 4.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.318/1.318, allocations: 251.6 MB / 0.5089 GB, free: 3.289 MB / 414.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: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.91 kB / 0.6217 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3972, allocations: 104.7 MB / 0.724 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002366/0.3996, allocations: 1.571 MB / 0.7255 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002792/0.3999, allocations: 128.4 kB / 0.7256 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.788e-05/0.3999, allocations: 0 / 0.7256 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.601e-05/0.4, allocations: 4 kB / 0.7256 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.512e-05/0.4, allocations: 0 / 0.7256 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001853/0.4002, allocations: 19.92 kB / 0.7257 GB, free: 11.37 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.206e-05/0.4003, allocations: 31.97 kB / 0.7257 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 7.79e-05/0.4003, allocations: 8 kB / 0.7257 GB, free: 11.33 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.618e-05/0.4004, allocations: 19.92 kB / 0.7257 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.058e-05/0.4004, allocations: 11.98 kB / 0.7257 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.026e-05/0.4004, allocations: 3.938 kB / 0.7257 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.099e-05/0.4005, allocations: 12 kB / 0.7257 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.142e-05/0.4005, allocations: 7.922 kB / 0.7258 GB, free: 11.28 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.631e-05/0.4005, allocations: 19.92 kB / 0.7258 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.087e-05/0.4006, allocations: 27.91 kB / 0.7258 GB, free: 11.23 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.4007, allocations: 8 kB / 0.7258 GB, free: 11.22 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4007, allocations: 0 / 0.7258 GB, free: 11.22 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.4007, allocations: 0 / 0.7258 GB, free: 11.22 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003929/0.4011, allocations: 345.4 kB / 0.7261 GB, free: 10.84 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.4011, allocations: 12.03 kB / 0.7262 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.729e-05/0.4011, allocations: 8.781 kB / 0.7262 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.898e-05/0.4012, allocations: 168.3 kB / 0.7263 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.4013, allocations: 384 / 0.7263 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.4013, allocations: 4.375 kB / 0.7263 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.4014, allocations: 62.22 kB / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.481e-06/0.4014, allocations: 192 / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.4015, allocations: 3.938 kB / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.4015, allocations: 0 / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.4016, allocations: 43.89 kB / 0.7264 GB, free: 10.5 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003057/0.4019, allocations: 265 kB / 0.7267 GB, free: 10.19 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.4022, allocations: 62.47 kB / 0.7267 GB, free: 10.12 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.352e-05/0.4023, allocations: 20.91 kB / 0.7268 GB, free: 10.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.507e-05/0.4024, allocations: 89.09 kB / 0.7268 GB, free: 9.988 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.4025, allocations: 38.5 kB / 0.7269 GB, free: 9.941 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.4025, allocations: 0 / 0.7269 GB, free: 9.941 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003292/0.4028, allocations: 93.53 kB / 0.727 GB, free: 9.844 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.4028, allocations: 55.41 kB / 0.727 GB, free: 9.777 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.73e-05/0.4029, allocations: 106 kB / 0.7271 GB, free: 9.664 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.4029, allocations: 25.7 kB / 0.7272 GB, free: 9.633 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.815e-05/0.403, allocations: 88.12 kB / 0.7272 GB, free: 9.543 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.292e-05/0.403, allocations: 7.906 kB / 0.7272 GB, free: 9.535 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.784e-05/0.403, allocations: 13.72 kB / 0.7273 GB, free: 9.516 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4031, allocations: 318.8 kB / 0.7276 GB, free: 9.195 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.221e-05/0.4032, allocations: 19.97 kB / 0.7276 GB, free: 9.176 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.921e-05/0.4033, allocations: 23.86 kB / 0.7276 GB, free: 9.152 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.4034, allocations: 52.81 kB / 0.7277 GB, free: 9.098 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4034, allocations: 3.938 kB / 0.7277 GB, free: 9.094 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001857/0.4036, allocations: 73.66 kB / 0.7277 GB, free: 9.016 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.4037, allocations: 4 kB / 0.7277 GB, free: 9.012 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.4037, allocations: 0 / 0.7277 GB, free: 9.012 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.759e-06/0.4037, allocations: 4 kB / 0.7277 GB, free: 9.008 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.024e-05/0.4038, allocations: 7.984 kB / 0.7277 GB, free: 9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.4038, allocations: 4 kB / 0.7277 GB, free: 8.996 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.612e-05/0.4038, allocations: 7.984 kB / 0.7278 GB, free: 8.988 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-06/0.4038, allocations: 4 kB / 0.7278 GB, free: 8.984 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: 2 (rea2Int.y,fac.y) * 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.256e-05/0.4039, allocations: 113.7 kB / 0.7279 GB, free: 8.863 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.4039, allocations: 11.91 kB / 0.7279 GB, free: 8.852 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000217/0.4042, allocations: 77.14 kB / 0.7279 GB, free: 8.766 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.4042, allocations: 0 / 0.7279 GB, free: 8.766 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4042, allocations: 3.984 kB / 0.728 GB, free: 8.762 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.4042, allocations: 4 kB / 0.728 GB, free: 8.758 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.4043, allocations: 165.5 kB / 0.7281 GB, free: 8.547 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4043, allocations: 3.938 kB / 0.7281 GB, free: 8.543 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.624e-05/0.4044, allocations: 11.98 kB / 0.7281 GB, free: 8.531 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.4044, allocations: 0 / 0.7281 GB, free: 8.531 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.4044, allocations: 3.984 kB / 0.7281 GB, free: 8.527 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.4044, allocations: 0 / 0.7281 GB, free: 8.527 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/0.4044, allocations: 4 kB / 0.7281 GB, free: 8.523 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.4047, allocations: 175.4 kB / 0.7283 GB, free: 8.336 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.723e-05/0.4047, allocations: 81.11 kB / 0.7284 GB, free: 8.238 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.4047, allocations: 0 / 0.7284 GB, free: 8.238 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.646e-05/0.4048, allocations: 7.984 kB / 0.7284 GB, free: 8.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.4049, allocations: 7.984 kB / 0.7284 GB, free: 8.223 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.4049, allocations: 4 kB / 0.7284 GB, free: 8.219 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.048e-05/0.4049, allocations: 79.7 kB / 0.7285 GB, free: 8.141 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4049, allocations: 4 kB / 0.7285 GB, free: 8.137 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002016/0.4051, allocations: 4 kB / 0.7285 GB, free: 8.133 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: 2 (fac.y,rea2Int.y) * 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.0001268/0.4052, allocations: 107.3 kB / 0.7286 GB, free: 8.016 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002031/0.4055, allocations: 55.88 kB / 0.7286 GB, free: 7.961 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.4055, allocations: 0 / 0.7286 GB, free: 7.961 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.236e-05/0.4056, allocations: 19.98 kB / 0.7287 GB, free: 7.941 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.4058, allocations: 15.92 kB / 0.7287 GB, free: 7.926 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002443/0.406, allocations: 125.4 kB / 0.7288 GB, free: 7.777 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.4062, allocations: 0.6768 MB / 0.7295 GB, free: 7.074 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.964e-05/0.4063, allocations: 8 kB / 0.7295 GB, free: 7.066 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.223e-05/0.4063, allocations: 11.44 kB / 0.7295 GB, free: 7.055 MB / 0.545 GB Notification: Performance of SimCode: time 2.6e-07/0.4063, allocations: 0 / 0.7295 GB, free: 7.055 MB / 0.545 GB Notification: Performance of Templates: time 0.002289/0.4086, allocations: 0.6445 MB / 0.7301 GB, free: 6.41 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)