Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009472/0.0009472, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.008331/0.008331, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.523/1.523, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.845/2.845, allocations: 473.4 MB / 0.7469 GB, free: 6.027 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003575, allocations: 15.62 kB / 0.9158 GB, free: 33.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3668/0.3672, allocations: 162.2 MB / 1.074 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0008282/0.3681, allocations: 318.9 kB / 1.074 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003798/0.3685, allocations: 59.8 kB / 1.075 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.365e-05/0.3685, allocations: 3.938 kB / 1.075 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.192e-05/0.3686, allocations: 4 kB / 1.075 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.064e-06/0.3686, allocations: 0 / 1.075 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002171/0.3688, allocations: 0 / 1.075 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.501e-05/0.3689, allocations: 8 kB / 1.075 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.496e-05/0.3689, allocations: 0 / 1.075 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/0.369, allocations: 0 / 1.075 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.457e-05/0.369, allocations: 7.984 kB / 1.075 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.369, allocations: 0 / 1.075 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.734e-05/0.3691, allocations: 8 kB / 1.075 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.47e-05/0.3691, allocations: 7.984 kB / 1.075 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.442e-05/0.3692, allocations: 25.7 kB / 1.075 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.3e-05/0.3693, allocations: 11.92 kB / 1.075 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3693, allocations: 0 / 1.075 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3693, allocations: 0 / 1.075 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.3693, allocations: 0 / 1.075 GB, free: 7.059 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003294/0.3696, allocations: 315.6 kB / 1.075 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.3697, allocations: 12.09 kB / 1.075 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.538e-05/0.3697, allocations: 0.9375 kB / 1.075 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.3699, allocations: 168.4 kB / 1.075 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.3699, allocations: 4.312 kB / 1.075 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-06/0.3699, allocations: 384 / 1.075 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.37, allocations: 34.2 kB / 1.075 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.37, allocations: 192 / 1.075 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3701, allocations: 3.938 kB / 1.075 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.3701, allocations: 0 / 1.075 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.094e-05/0.3701, allocations: 11.98 kB / 1.075 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001622/0.3703, allocations: 145.7 kB / 1.075 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.191e-05/0.3703, allocations: 26.58 kB / 1.075 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.302e-05/0.3704, allocations: 7.031 kB / 1.075 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001869/0.3706, allocations: 89.09 kB / 1.075 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.3706, allocations: 30.56 kB / 1.075 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3706, allocations: 0 / 1.075 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.000166/0.3708, allocations: 49.62 kB / 1.075 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.3708, allocations: 55.53 kB / 1.075 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.591e-05/0.3709, allocations: 89.86 kB / 1.076 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.3709, allocations: 25.7 kB / 1.076 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.717e-05/0.3709, allocations: 80.14 kB / 1.076 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.371, allocations: 3.906 kB / 1.076 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.648e-05/0.371, allocations: 17.72 kB / 1.076 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3711, allocations: 318.8 kB / 1.076 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-06/0.3711, allocations: 0 / 1.076 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.568e-06/0.3711, allocations: 7.938 kB / 1.076 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.541e-05/0.3712, allocations: 20.91 kB / 1.076 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3712, allocations: 0 / 1.076 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.942e-05/0.3712, allocations: 33.7 kB / 1.076 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.3713, allocations: 4 kB / 1.076 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.3713, allocations: 0 / 1.076 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3713, allocations: 7.938 kB / 1.076 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.982e-05/0.3714, allocations: 3.984 kB / 1.076 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3714, allocations: 0 / 1.076 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.551e-05/0.3714, allocations: 4.031 kB / 1.076 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.3714, allocations: 4 kB / 1.076 GB, free: 5.273 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.851e-05/0.3715, allocations: 113.8 kB / 1.076 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.803e-06/0.3715, allocations: 0 / 1.076 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.579e-05/0.3716, allocations: 49.03 kB / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.3716, allocations: 0 / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3716, allocations: 0 / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3716, allocations: 4 kB / 1.076 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.089e-05/0.3717, allocations: 149.6 kB / 1.076 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3717, allocations: 4.031 kB / 1.076 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.36e-05/0.3717, allocations: 7.984 kB / 1.076 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3718, allocations: 3.938 kB / 1.076 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.3718, allocations: 3.938 kB / 1.076 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3718, allocations: 0 / 1.076 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3718, allocations: 0 / 1.076 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.53e-05/0.3719, allocations: 69.06 kB / 1.076 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.3719, allocations: 81.11 kB / 1.077 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.3719, allocations: 7.969 kB / 1.077 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.116e-05/0.3719, allocations: 0 / 1.077 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-05/0.372, allocations: 4 kB / 1.077 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.372, allocations: 4 kB / 1.077 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.903e-05/0.372, allocations: 75.28 kB / 1.077 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.372, allocations: 0 / 1.077 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002066/0.3722, allocations: 4 kB / 1.077 GB, free: 4.602 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001571/0.3724, allocations: 111.2 kB / 1.077 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.639e-05/0.3725, allocations: 8 kB / 1.077 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3725, allocations: 3.938 kB / 1.077 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.563e-05/0.3725, allocations: 4 kB / 1.077 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.3726, allocations: 7.938 kB / 1.077 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002044/0.3728, allocations: 82.75 kB / 1.077 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.3731, allocations: 0.677 MB / 1.078 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.461e-05/0.3731, allocations: 0 / 1.078 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.725e-05/0.3732, allocations: 15.55 kB / 1.078 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.3732, allocations: 0 / 1.078 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of Templates: time 0.002271/0.3754, allocations: 312.7 kB / 1.078 GB, free: 3.324 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)