Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_3.0.0_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001066/0.001066, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001151/0.001151, allocations: 193.3 kB / 16.25 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.778/2.778, allocations: 472.6 MB / 0.7448 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 62.44 kB / 0.9115 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3585, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002802/0.3614, allocations: 1.588 MB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00035/0.3618, allocations: 119.7 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.274e-05/0.3618, allocations: 0 / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.515e-05/0.3618, allocations: 3.938 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.913e-05/0.3619, allocations: 8 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.3622, allocations: 15.98 kB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.348e-05/0.3622, allocations: 31.91 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.3623, allocations: 11.98 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.065e-05/0.3624, allocations: 7.938 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.236e-05/0.3624, allocations: 23.92 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.231e-05/0.3625, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.119e-05/0.3625, allocations: 11.98 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.357e-05/0.3626, allocations: 7.984 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.977e-05/0.3626, allocations: 15.94 kB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.3627, allocations: 35.89 kB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3627, allocations: 0 / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3627, allocations: 0 / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.3628, allocations: 0 / 1.07 GB, free: 8.871 MB / 0.8262 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.0005009/0.3633, allocations: 343.7 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3633, allocations: 12.03 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.534e-05/0.3633, allocations: 0.9375 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.3635, allocations: 172.3 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.3635, allocations: 8.375 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.3635, allocations: 384 / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.3637, allocations: 54.23 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3637, allocations: 192 / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3638, allocations: 3.938 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3638, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.3639, allocations: 43.95 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/0.3643, allocations: 272.8 kB / 1.07 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.3647, allocations: 62.47 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.977e-05/0.3648, allocations: 24.91 kB / 1.07 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001181/0.3649, allocations: 81.11 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.3649, allocations: 38.55 kB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3649, allocations: 0 / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003741/0.3653, allocations: 93.58 kB / 1.071 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.3654, allocations: 51.41 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.299e-05/0.3654, allocations: 109.8 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.3655, allocations: 29.64 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.056e-05/0.3655, allocations: 84.14 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.3655, allocations: 7.844 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.3656, allocations: 21.7 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3657, allocations: 310.8 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.632e-05/0.3658, allocations: 19.98 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.924e-05/0.3659, allocations: 23.97 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.366, allocations: 45.28 kB / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.366, allocations: 3.938 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002029/0.3663, allocations: 85.48 kB / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3663, allocations: 4 kB / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3663, allocations: 0 / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.3663, allocations: 0 / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.764e-05/0.3664, allocations: 11.98 kB / 1.071 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.3664, allocations: 4 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.531e-05/0.3665, allocations: 7.984 kB / 1.071 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.3665, allocations: 4 kB / 1.071 GB, free: 6.633 MB / 0.8262 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 0.0001045/0.3666, allocations: 113.8 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.3666, allocations: 4 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002468/0.3669, allocations: 85.08 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3669, allocations: 4 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3669, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.3669, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.3671, allocations: 169.6 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3671, allocations: 0 / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.323e-05/0.3671, allocations: 11.98 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3672, allocations: 0 / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.3672, allocations: 0 / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3672, allocations: 0 / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3672, allocations: 0 / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002455/0.3674, allocations: 175.4 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.3675, allocations: 85.02 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.3675, allocations: 0 / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.584e-05/0.3676, allocations: 11.98 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.3676, allocations: 7.875 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.3676, allocations: 4 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.276e-05/0.3677, allocations: 87.27 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3677, allocations: 4 kB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002138/0.3679, allocations: 4 kB / 1.072 GB, free: 5.773 MB / 0.8262 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.0001481/0.3681, allocations: 99.25 kB / 1.072 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002191/0.3683, allocations: 47.95 kB / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3683, allocations: 3.938 kB / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.368e-05/0.3684, allocations: 31.91 kB / 1.072 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.3687, allocations: 10.92 kB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002811/0.369, allocations: 117.5 kB / 1.072 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3693, allocations: 0.6768 MB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.318e-05/0.3693, allocations: 8.469 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.595e-05/0.3694, allocations: 11.42 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3694, allocations: 0 / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of Templates: time 0.002854/0.3722, allocations: 0.6421 MB / 1.074 GB, free: 4.074 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)