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.00534/0.005344, allocations: 105 kB / 15.74 MB, free: 6.039 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.001138/0.001138, allocations: 200.8 kB / 16.68 MB, free: 5.957 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.216/1.216, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.391/1.391, allocations: 251.7 MB / 0.5094 GB, free: 3.09 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.001346/0.001346, allocations: 79.88 kB / 0.7258 GB, free: 9.023 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1972, allocations: 104.7 MB / 0.828 GB, free: 224 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002418/0.1996, allocations: 1.514 MB / 0.8295 GB, free: 14.7 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0003184/0.2, allocations: 128.4 kB / 0.8296 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.461e-05/0.2, allocations: 0 / 0.8296 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.726e-05/0.2, allocations: 3.938 kB / 0.8296 GB, free: 14.56 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.148e-05/0.2001, allocations: 4 kB / 0.8297 GB, free: 14.56 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.2003, allocations: 23.91 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 7.275e-05/0.2004, allocations: 27.92 kB / 0.8297 GB, free: 14.51 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2005, allocations: 8 kB / 0.8297 GB, free: 14.5 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 4.348e-05/0.2006, allocations: 19.91 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 4.546e-05/0.2006, allocations: 11.98 kB / 0.8297 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.399e-05/0.2006, allocations: 4 kB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 5.971e-05/0.2007, allocations: 12 kB / 0.8298 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.768e-05/0.2007, allocations: 11.92 kB / 0.8298 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.573e-05/0.2007, allocations: 15.94 kB / 0.8298 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.2009, allocations: 39.83 kB / 0.8298 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2009, allocations: 0 / 0.8298 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of FrontEnd: time 9.12e-07/0.2009, allocations: 0 / 0.8298 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.2009, allocations: 0 / 0.8298 GB, free: 14.39 MB / 0.6544 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.0004373/0.2013, allocations: 343.5 kB / 0.8301 GB, free: 14 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.2014, allocations: 8.031 kB / 0.8302 GB, free: 13.99 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.2014, allocations: 8.844 kB / 0.8302 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.2015, allocations: 160.4 kB / 0.8303 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.2016, allocations: 8.375 kB / 0.8303 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.2016, allocations: 8.297 kB / 0.8303 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.2018, allocations: 62.22 kB / 0.8304 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.2018, allocations: 192 / 0.8304 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.2018, allocations: 3.938 kB / 0.8304 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2018, allocations: 0 / 0.8304 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.202, allocations: 43.95 kB / 0.8304 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003566/0.2023, allocations: 260.9 kB / 0.8307 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.2026, allocations: 66.41 kB / 0.8307 GB, free: 13.28 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.588e-05/0.2027, allocations: 28.89 kB / 0.8308 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-05/0.2028, allocations: 77.11 kB / 0.8309 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.2029, allocations: 38.56 kB / 0.8309 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.2029, allocations: 3.938 kB / 0.8309 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.000342/0.2032, allocations: 97.47 kB / 0.831 GB, free: 13 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.2032, allocations: 55.41 kB / 0.831 GB, free: 12.94 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.2034, allocations: 93.86 kB / 0.8311 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.2034, allocations: 29.69 kB / 0.8312 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.429e-05/0.2034, allocations: 96.08 kB / 0.8312 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.2034, allocations: 3.906 kB / 0.8313 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.691e-05/0.2035, allocations: 17.72 kB / 0.8313 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.2036, allocations: 314.8 kB / 0.8316 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.31e-05/0.2037, allocations: 19.98 kB / 0.8316 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.581e-05/0.2038, allocations: 11.98 kB / 0.8316 GB, free: 12.33 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.2039, allocations: 52.81 kB / 0.8316 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2039, allocations: 3.938 kB / 0.8317 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001873/0.2041, allocations: 77.59 kB / 0.8317 GB, free: 12.19 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.2042, allocations: 4 kB / 0.8317 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.2042, allocations: 3.984 kB / 0.8317 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.2042, allocations: 0 / 0.8317 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.109e-05/0.2043, allocations: 8 kB / 0.8317 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.2043, allocations: 3.984 kB / 0.8317 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.926e-05/0.2043, allocations: 12 kB / 0.8318 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.2043, allocations: 0 / 0.8318 GB, free: 12.16 MB / 0.6544 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 7.231e-05/0.2044, allocations: 118.3 kB / 0.8319 GB, free: 12.03 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.2044, allocations: 7.891 kB / 0.8319 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002423/0.2047, allocations: 85.12 kB / 0.832 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2047, allocations: 3.938 kB / 0.832 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2047, allocations: 4 kB / 0.832 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2047, allocations: 0 / 0.832 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/0.2049, allocations: 173.6 kB / 0.8321 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2049, allocations: 0 / 0.8321 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.589e-05/0.205, allocations: 8 kB / 0.8321 GB, free: 11.69 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.205, allocations: 0 / 0.8321 GB, free: 11.69 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.205, allocations: 3.984 kB / 0.8321 GB, free: 11.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.205, allocations: 0 / 0.8321 GB, free: 11.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.205, allocations: 0 / 0.8321 GB, free: 11.69 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.2052, allocations: 171.5 kB / 0.8323 GB, free: 11.5 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.2053, allocations: 77.11 kB / 0.8324 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.2053, allocations: 3.984 kB / 0.8324 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-05/0.2054, allocations: 4 kB / 0.8324 GB, free: 11.4 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.562e-05/0.2055, allocations: 11.98 kB / 0.8324 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.2055, allocations: 0 / 0.8324 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.08e-05/0.2055, allocations: 83.22 kB / 0.8325 GB, free: 11.31 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2055, allocations: 7.938 kB / 0.8325 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002122/0.2057, allocations: 11.94 kB / 0.8325 GB, free: 11.29 MB / 0.6544 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.0001782/0.2059, allocations: 107.2 kB / 0.8326 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002185/0.2061, allocations: 39.95 kB / 0.8326 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2062, allocations: 0 / 0.8326 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.126e-05/0.2063, allocations: 27.98 kB / 0.8327 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.2065, allocations: 15.92 kB / 0.8327 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003458/0.2069, allocations: 117.4 kB / 0.8328 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.2072, allocations: 0.6805 MB / 0.8335 GB, free: 10.24 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 2.799e-05/0.2072, allocations: 4 kB / 0.8335 GB, free: 10.24 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.2072, allocations: 11.44 kB / 0.8335 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of SimCode: time 5.31e-07/0.2072, allocations: 4 kB / 0.8335 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of Templates: time 0.003203/0.2104, allocations: 0.7193 MB / 0.8342 GB, free: 9.504 MB / 0.6544 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)