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.0006772/0.0006772, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.004108/0.004108, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.169/1.169, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.331/1.331, allocations: 252 MB / 0.5105 GB, free: 4.641 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.0006308/0.0006309, allocations: 12.47 kB / 0.6249 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3652, allocations: 106.3 MB / 0.7287 GB, free: 11.32 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001641/0.3669, allocations: 1.24 MB / 0.7299 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0003617/0.3673, allocations: 120.5 kB / 0.73 GB, free: 9.953 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.555e-05/0.3673, allocations: 0 / 0.73 GB, free: 9.953 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.3674, allocations: 0 / 0.73 GB, free: 9.953 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.434e-05/0.3674, allocations: 3.938 kB / 0.7301 GB, free: 9.949 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001833/0.3676, allocations: 23.97 kB / 0.7301 GB, free: 9.926 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.502e-05/0.3677, allocations: 27.92 kB / 0.7301 GB, free: 9.898 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 7.498e-05/0.3678, allocations: 8 kB / 0.7301 GB, free: 9.891 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.002e-05/0.3678, allocations: 15.92 kB / 0.7301 GB, free: 9.875 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.179e-05/0.3678, allocations: 7.984 kB / 0.7301 GB, free: 9.867 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.3679, allocations: 0 / 0.7301 GB, free: 9.867 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.08e-05/0.3679, allocations: 11.98 kB / 0.7301 GB, free: 9.855 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.347e-05/0.3679, allocations: 11.94 kB / 0.7302 GB, free: 9.844 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.606e-05/0.368, allocations: 33.62 kB / 0.7302 GB, free: 9.805 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.034e-05/0.3681, allocations: 31.89 kB / 0.7302 GB, free: 9.773 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3681, allocations: 4 kB / 0.7302 GB, free: 9.77 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3681, allocations: 4 kB / 0.7302 GB, free: 9.766 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.626e-06/0.3681, allocations: 0 / 0.7302 GB, free: 9.766 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.0004216/0.3685, allocations: 345.5 kB / 0.7306 GB, free: 9.379 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.3686, allocations: 12.03 kB / 0.7306 GB, free: 9.367 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.649e-05/0.3686, allocations: 0.9375 kB / 0.7306 GB, free: 9.367 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.3687, allocations: 168.2 kB / 0.7307 GB, free: 9.164 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.3687, allocations: 8.375 kB / 0.7307 GB, free: 9.156 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.3688, allocations: 8.312 kB / 0.7307 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.3689, allocations: 66.16 kB / 0.7308 GB, free: 9.078 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.369, allocations: 192 / 0.7308 GB, free: 9.078 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.369, allocations: 3.938 kB / 0.7308 GB, free: 9.074 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.369, allocations: 0 / 0.7308 GB, free: 9.074 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.3692, allocations: 55.95 kB / 0.7309 GB, free: 9.02 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003418/0.3695, allocations: 257 kB / 0.7311 GB, free: 8.719 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.3698, allocations: 74.41 kB / 0.7312 GB, free: 8.637 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.431e-05/0.3699, allocations: 28.91 kB / 0.7312 GB, free: 8.605 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.37, allocations: 85.09 kB / 0.7313 GB, free: 8.504 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3701, allocations: 34.55 kB / 0.7313 GB, free: 8.461 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3701, allocations: 0 / 0.7313 GB, free: 8.461 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003777/0.3705, allocations: 109.6 kB / 0.7314 GB, free: 8.348 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.3705, allocations: 55.39 kB / 0.7315 GB, free: 8.281 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.263e-05/0.3706, allocations: 109.7 kB / 0.7316 GB, free: 8.164 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.3706, allocations: 25.7 kB / 0.7316 GB, free: 8.133 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.297e-05/0.3707, allocations: 84.14 kB / 0.7317 GB, free: 8.047 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.3707, allocations: 7.891 kB / 0.7317 GB, free: 8.039 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.3707, allocations: 13.72 kB / 0.7317 GB, free: 8.02 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.3708, allocations: 318.8 kB / 0.732 GB, free: 7.699 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.08e-05/0.3709, allocations: 23.98 kB / 0.732 GB, free: 7.676 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.958e-05/0.371, allocations: 23.97 kB / 0.7321 GB, free: 7.652 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.3712, allocations: 60.75 kB / 0.7321 GB, free: 7.59 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3712, allocations: 7.938 kB / 0.7321 GB, free: 7.582 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002155/0.3714, allocations: 81.66 kB / 0.7322 GB, free: 7.496 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.3714, allocations: 8 kB / 0.7322 GB, free: 7.488 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3714, allocations: 0 / 0.7322 GB, free: 7.488 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.3715, allocations: 3.938 kB / 0.7322 GB, free: 7.484 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.862e-05/0.3715, allocations: 19.98 kB / 0.7322 GB, free: 7.465 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3715, allocations: 0 / 0.7322 GB, free: 7.465 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.562e-05/0.3716, allocations: 11.98 kB / 0.7322 GB, free: 7.453 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.3716, allocations: 0 / 0.7322 GB, free: 7.453 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 7.037e-05/0.3717, allocations: 117.8 kB / 0.7324 GB, free: 7.328 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.232e-05/0.3717, allocations: 0 / 0.7324 GB, free: 7.328 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002534/0.372, allocations: 93.14 kB / 0.7324 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.372, allocations: 0 / 0.7324 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.372, allocations: 0 / 0.7324 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.372, allocations: 0 / 0.7324 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.3722, allocations: 173.4 kB / 0.7326 GB, free: 7.008 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3722, allocations: 0 / 0.7326 GB, free: 7.008 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.838e-05/0.3723, allocations: 27.92 kB / 0.7326 GB, free: 6.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3723, allocations: 0 / 0.7326 GB, free: 6.98 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3723, allocations: 3.938 kB / 0.7326 GB, free: 6.977 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3723, allocations: 0 / 0.7326 GB, free: 6.977 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3723, allocations: 0 / 0.7326 GB, free: 6.977 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.3726, allocations: 184 kB / 0.7328 GB, free: 6.781 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.393e-05/0.3726, allocations: 81.11 kB / 0.7329 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.3726, allocations: 0 / 0.7329 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.001e-05/0.3727, allocations: 7.984 kB / 0.7329 GB, free: 6.676 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/0.3728, allocations: 12.03 kB / 0.7329 GB, free: 6.664 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.3728, allocations: 3.984 kB / 0.7329 GB, free: 6.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.184e-05/0.3728, allocations: 83.28 kB / 0.733 GB, free: 6.578 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3728, allocations: 0 / 0.733 GB, free: 6.578 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002114/0.373, allocations: 8 kB / 0.733 GB, free: 6.57 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.0001393/0.3732, allocations: 103.2 kB / 0.7331 GB, free: 6.457 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002231/0.3734, allocations: 63.89 kB / 0.7332 GB, free: 6.395 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3734, allocations: 0 / 0.7332 GB, free: 6.395 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.3735, allocations: 31.97 kB / 0.7332 GB, free: 6.363 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.3738, allocations: 3.938 kB / 0.7332 GB, free: 6.359 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002515/0.3741, allocations: 131.5 kB / 0.7333 GB, free: 6.211 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.3743, allocations: 0.677 MB / 0.734 GB, free: 5.508 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.865e-05/0.3743, allocations: 7.938 kB / 0.734 GB, free: 5.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.282e-05/0.3743, allocations: 7.438 kB / 0.734 GB, free: 5.492 MB / 0.545 GB Notification: Performance of SimCode: time 2.01e-07/0.3744, allocations: 0 / 0.734 GB, free: 5.492 MB / 0.545 GB Notification: Performance of Templates: time 0.002477/0.3768, allocations: 0.6172 MB / 0.7346 GB, free: 4.875 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: