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.000945/0.0009451, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009361/0.0009361, allocations: 190.2 kB / 16.14 MB, free: 6.711 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.18/1.18, allocations: 205.1 MB / 222 MB, free: 4.758 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.317/1.317, allocations: 251.6 MB / 0.5088 GB, free: 3.375 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.00117/0.00117, allocations: 67.91 kB / 0.6216 GB, free: 2.02 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.3781, allocations: 104.7 MB / 0.7238 GB, free: 13.16 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002562/0.3807, allocations: 1.575 MB / 0.7253 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0003186/0.381, allocations: 124.4 kB / 0.7255 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.424e-05/0.381, allocations: 0 / 0.7255 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.3811, allocations: 7.984 kB / 0.7255 GB, free: 11.44 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.123e-05/0.3811, allocations: 0 / 0.7255 GB, free: 11.44 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.3813, allocations: 23.92 kB / 0.7255 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 4.723e-05/0.3813, allocations: 20 kB / 0.7255 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 6.827e-05/0.3814, allocations: 11.97 kB / 0.7255 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.291e-05/0.3815, allocations: 11.94 kB / 0.7255 GB, free: 11.37 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.893e-05/0.3815, allocations: 15.92 kB / 0.7255 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.3815, allocations: 4 kB / 0.7256 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 4.875e-05/0.3816, allocations: 11.98 kB / 0.7256 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.3816, allocations: 0 / 0.7256 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.401e-05/0.3816, allocations: 19.86 kB / 0.7256 GB, free: 11.32 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.259e-05/0.3817, allocations: 35.89 kB / 0.7256 GB, free: 11.29 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3817, allocations: 4 kB / 0.7256 GB, free: 11.28 MB / 0.545 GB Notification: Performance of FrontEnd: time 6.62e-07/0.3817, allocations: 0 / 0.7256 GB, free: 11.28 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.925e-06/0.3817, allocations: 0 / 0.7256 GB, free: 11.28 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.0003886/0.3821, allocations: 341.5 kB / 0.7259 GB, free: 10.9 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.3822, allocations: 16.02 kB / 0.726 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.971e-05/0.3822, allocations: 4.844 kB / 0.726 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.104e-05/0.3823, allocations: 168.3 kB / 0.7261 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.3823, allocations: 384 / 0.7261 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.3823, allocations: 4.375 kB / 0.7261 GB, free: 10.67 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.3825, allocations: 66.22 kB / 0.7262 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.651e-06/0.3825, allocations: 192 / 0.7262 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3825, allocations: 3.938 kB / 0.7262 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.3825, allocations: 0 / 0.7262 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001787/0.3827, allocations: 47.89 kB / 0.7262 GB, free: 10.55 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003037/0.383, allocations: 257 kB / 0.7265 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.3833, allocations: 62.47 kB / 0.7265 GB, free: 10.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.85e-05/0.3834, allocations: 24.91 kB / 0.7266 GB, free: 10.15 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.3835, allocations: 85.09 kB / 0.7267 GB, free: 10.05 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.3836, allocations: 42.5 kB / 0.7267 GB, free: 10 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.3836, allocations: 0 / 0.7267 GB, free: 10 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003388/0.3839, allocations: 93.53 kB / 0.7268 GB, free: 9.902 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.384, allocations: 55.39 kB / 0.7268 GB, free: 9.836 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.634e-05/0.384, allocations: 105.8 kB / 0.7269 GB, free: 9.723 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.384, allocations: 25.7 kB / 0.727 GB, free: 9.691 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.3841, allocations: 88.12 kB / 0.727 GB, free: 9.602 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.3841, allocations: 11.89 kB / 0.7271 GB, free: 9.59 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.3841, allocations: 17.72 kB / 0.7271 GB, free: 9.566 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.599e-05/0.3842, allocations: 314.8 kB / 0.7274 GB, free: 9.25 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.658e-05/0.3843, allocations: 23.91 kB / 0.7274 GB, free: 9.227 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.523e-05/0.3844, allocations: 15.98 kB / 0.7274 GB, free: 9.211 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.3846, allocations: 52.75 kB / 0.7275 GB, free: 9.156 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3846, allocations: 3.938 kB / 0.7275 GB, free: 9.152 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001944/0.3848, allocations: 73.66 kB / 0.7275 GB, free: 9.074 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.3848, allocations: 4 kB / 0.7275 GB, free: 9.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.3848, allocations: 0 / 0.7275 GB, free: 9.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.3848, allocations: 0 / 0.7275 GB, free: 9.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.296e-05/0.3849, allocations: 11.98 kB / 0.7276 GB, free: 9.059 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.626e-06/0.3849, allocations: 0 / 0.7276 GB, free: 9.059 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.263e-05/0.385, allocations: 11.98 kB / 0.7276 GB, free: 9.047 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-06/0.385, allocations: 4 kB / 0.7276 GB, free: 9.043 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.914e-05/0.3851, allocations: 113.8 kB / 0.7277 GB, free: 8.922 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.3851, allocations: 7.906 kB / 0.7277 GB, free: 8.914 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.3853, allocations: 81.08 kB / 0.7278 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3853, allocations: 0 / 0.7278 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3853, allocations: 0 / 0.7278 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.3854, allocations: 4 kB / 0.7278 GB, free: 8.82 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.3855, allocations: 169.5 kB / 0.7279 GB, free: 8.605 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3855, allocations: 0 / 0.7279 GB, free: 8.605 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.165e-05/0.3856, allocations: 15.98 kB / 0.7279 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3856, allocations: 0 / 0.7279 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.3856, allocations: 0 / 0.7279 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3856, allocations: 4 kB / 0.7279 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3856, allocations: 0 / 0.7279 GB, free: 8.586 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002369/0.3859, allocations: 179.9 kB / 0.7281 GB, free: 8.395 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.137e-05/0.3859, allocations: 81.11 kB / 0.7282 GB, free: 8.297 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.3859, allocations: 0 / 0.7282 GB, free: 8.297 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.211e-05/0.386, allocations: 11.92 kB / 0.7282 GB, free: 8.285 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.3861, allocations: 8.031 kB / 0.7282 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.3861, allocations: 7.984 kB / 0.7282 GB, free: 8.27 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.465e-05/0.3861, allocations: 79.28 kB / 0.7283 GB, free: 8.191 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3861, allocations: 4 kB / 0.7283 GB, free: 8.188 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002124/0.3863, allocations: 4 kB / 0.7283 GB, free: 8.184 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.0001111/0.3864, allocations: 103.2 kB / 0.7284 GB, free: 8.07 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002025/0.3867, allocations: 47.95 kB / 0.7284 GB, free: 8.023 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.3867, allocations: 3.938 kB / 0.7285 GB, free: 8.02 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.923e-05/0.3868, allocations: 19.98 kB / 0.7285 GB, free: 8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.387, allocations: 11.94 kB / 0.7285 GB, free: 7.988 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002321/0.3872, allocations: 123.2 kB / 0.7286 GB, free: 7.844 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.3875, allocations: 0.6809 MB / 0.7293 GB, free: 7.137 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.236e-05/0.3875, allocations: 4 kB / 0.7293 GB, free: 7.133 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.248e-05/0.3875, allocations: 11.44 kB / 0.7293 GB, free: 7.121 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.3875, allocations: 0 / 0.7293 GB, free: 7.121 MB / 0.545 GB Notification: Performance of Templates: time 0.002171/0.3897, allocations: 0.6203 MB / 0.7299 GB, free: 6.504 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)