Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001336/0.001337, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00128/0.00128, allocations: 193 kB / 16.13 MB, free: 6.656 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.407/1.407, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.816/2.816, allocations: 472.6 MB / 0.7447 GB, free: 4.996 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 62.45 kB / 0.9113 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3721, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002815/0.3749, allocations: 1.576 MB / 1.069 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004078/0.3754, allocations: 119.7 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.521e-05/0.3754, allocations: 4 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.267e-05/0.3754, allocations: 3.938 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.14e-05/0.3755, allocations: 0 / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001886/0.3757, allocations: 19.98 kB / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.531e-05/0.3758, allocations: 27.92 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.922e-05/0.3759, allocations: 7.984 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.169e-05/0.3759, allocations: 15.92 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.608e-05/0.376, allocations: 15.92 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.376, allocations: 4 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.792e-05/0.376, allocations: 12 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.298e-05/0.3761, allocations: 0 / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.877e-05/0.3761, allocations: 15.92 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.3762, allocations: 35.89 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3762, allocations: 3.938 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.32e-07/0.3762, allocations: 0 / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.3762, allocations: 0 / 1.069 GB, free: 9.055 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.0004577/0.3767, allocations: 347.7 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3768, allocations: 12.03 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.173e-05/0.3768, allocations: 4.938 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.3769, allocations: 164.3 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.3769, allocations: 4.375 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.377, allocations: 384 / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.3772, allocations: 62.22 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.3772, allocations: 192 / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.3772, allocations: 3.938 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.3772, allocations: 0 / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.3774, allocations: 47.95 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003658/0.3778, allocations: 256.9 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.3781, allocations: 66.41 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.3782, allocations: 28.91 kB / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.3784, allocations: 85.09 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.3784, allocations: 30.56 kB / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3784, allocations: 0 / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003886/0.3788, allocations: 97.75 kB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.3788, allocations: 51.41 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.887e-05/0.3789, allocations: 101.8 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.3789, allocations: 33.64 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.72e-05/0.379, allocations: 88.12 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.379, allocations: 11.83 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.3791, allocations: 17.72 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3792, allocations: 310.8 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.63e-05/0.3793, allocations: 23.97 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.293e-05/0.3794, allocations: 23.98 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.3795, allocations: 40.81 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3795, allocations: 3.938 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002275/0.3798, allocations: 81.5 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.3798, allocations: 4 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3798, allocations: 0 / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.3798, allocations: 7.984 kB / 1.071 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.06e-05/0.3799, allocations: 8 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.3799, allocations: 0 / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.8e-05/0.38, allocations: 7.984 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.38, allocations: 0 / 1.071 GB, free: 6.824 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 8.198e-05/0.3801, allocations: 117.8 kB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.494e-05/0.3801, allocations: 0 / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002749/0.3804, allocations: 97.02 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3804, allocations: 3.984 kB / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3804, allocations: 0 / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.3804, allocations: 0 / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.3806, allocations: 165.6 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3806, allocations: 0 / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.884e-05/0.3807, allocations: 11.98 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3807, allocations: 0 / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.3807, allocations: 3.984 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-06/0.3807, allocations: 4 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3807, allocations: 0 / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.381, allocations: 167.5 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.381, allocations: 81.02 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.3811, allocations: 7.984 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.662e-05/0.3811, allocations: 0 / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.118e-05/0.3812, allocations: 23.86 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-06/0.3812, allocations: 0 / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.956e-05/0.3813, allocations: 79.7 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3813, allocations: 0 / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002199/0.3815, allocations: 8 kB / 1.072 GB, free: 5.961 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.0001541/0.3817, allocations: 111.4 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002218/0.3819, allocations: 39.95 kB / 1.072 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3819, allocations: 4 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.949e-05/0.382, allocations: 23.98 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.3823, allocations: 11.92 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00029/0.3826, allocations: 115.2 kB / 1.072 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.3828, allocations: 0.6848 MB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.1e-05/0.3829, allocations: 4 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.828e-05/0.3829, allocations: 11.44 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3829, allocations: 0 / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of Templates: time 0.002816/0.3857, allocations: 0.6189 MB / 1.074 GB, free: 4.281 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_1.6_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)