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.001366/0.001366, 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.001074/0.001074, allocations: 195.8 kB / 16.14 MB, free: 6.688 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.517/1.517, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.887/2.887, allocations: 472.6 MB / 0.7447 GB, free: 4.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002428/0.002428, allocations: 58.28 kB / 0.9113 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3657, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002876/0.3687, allocations: 1.576 MB / 1.069 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003766/0.3691, allocations: 127.6 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.549e-05/0.3691, allocations: 0 / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.339e-05/0.3691, allocations: 0 / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.151e-05/0.3692, allocations: 7.938 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.3694, allocations: 11.98 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.928e-05/0.3695, allocations: 31.91 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.411e-05/0.3696, allocations: 11.94 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.244e-05/0.3696, allocations: 15.98 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.453e-05/0.3697, allocations: 11.92 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.3697, allocations: 0 / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.146e-05/0.3697, allocations: 12 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.3698, allocations: 7.984 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.628e-05/0.3698, allocations: 15.92 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.3699, allocations: 31.91 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3699, allocations: 0 / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.62e-07/0.3699, allocations: 0 / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.577e-06/0.3699, allocations: 0 / 1.069 GB, free: 9.02 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.000447/0.3704, allocations: 347.7 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.3704, allocations: 8.031 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.3705, allocations: 4.938 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.3706, allocations: 168.4 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.3706, allocations: 4.375 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.3706, allocations: 4.375 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.3708, allocations: 58.16 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3708, allocations: 4.188 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.3708, allocations: 7.938 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3709, allocations: 0 / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.371, allocations: 35.95 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003629/0.3714, allocations: 272.9 kB / 1.07 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/0.3717, allocations: 66.34 kB / 1.07 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.3719, allocations: 24.91 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.372, allocations: 81.09 kB / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.3721, allocations: 38.56 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.3721, allocations: 0 / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003775/0.3724, allocations: 93.62 kB / 1.07 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.3725, allocations: 55.34 kB / 1.071 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.306e-05/0.3726, allocations: 97.86 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.3726, allocations: 25.7 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.663e-05/0.3726, allocations: 88.12 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.3727, allocations: 15.84 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.3727, allocations: 13.72 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3728, allocations: 314.8 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.082e-05/0.3729, allocations: 23.91 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.88e-05/0.373, allocations: 15.98 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001704/0.3732, allocations: 52.81 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3732, allocations: 3.938 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002384/0.3734, allocations: 74.02 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3735, allocations: 8 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3735, allocations: 0 / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3735, allocations: 0 / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-05/0.3736, allocations: 11.98 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3736, allocations: 4 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.706e-05/0.3736, allocations: 11.98 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.3737, allocations: 0 / 1.071 GB, free: 6.781 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.0001467/0.3738, allocations: 114.4 kB / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.3738, allocations: 3.984 kB / 1.071 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.3741, allocations: 81.14 kB / 1.071 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3741, allocations: 8 kB / 1.071 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.3741, allocations: 7.984 kB / 1.071 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3741, allocations: 3.938 kB / 1.071 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.3743, allocations: 157.6 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3744, allocations: 4 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.364e-05/0.3744, allocations: 7.984 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3744, allocations: 7.938 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.3745, allocations: 3.984 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3745, allocations: 0 / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3745, allocations: 0 / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002917/0.3748, allocations: 171.5 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-05/0.3748, allocations: 85.02 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.3748, allocations: 0 / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.818e-05/0.3749, allocations: 7.984 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.975e-05/0.375, allocations: 7.984 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.375, allocations: 0 / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.345e-05/0.375, allocations: 87.28 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.473e-06/0.375, allocations: 0 / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002191/0.3753, allocations: 11.94 kB / 1.072 GB, free: 5.918 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.0001443/0.3754, allocations: 103.2 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002271/0.3756, allocations: 43.95 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3757, allocations: 0 / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.3758, allocations: 27.98 kB / 1.072 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.3761, allocations: 7.922 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002943/0.3764, allocations: 122.7 kB / 1.072 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.3767, allocations: 0.6809 MB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.352e-05/0.3767, allocations: 8 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.67e-05/0.3768, allocations: 11.44 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.3768, allocations: 0 / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of Templates: time 0.002762/0.3795, allocations: 0.616 MB / 1.074 GB, free: 4.242 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)