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.0008119/0.0008121, allocations: 91.84 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.008912/0.008912, allocations: 170.5 kB / 16.26 MB, free: 6.676 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.465/1.465, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.885/2.885, allocations: 473.4 MB / 0.7469 GB, free: 6.039 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000422/0.0004221, allocations: 16.59 kB / 0.9158 GB, free: 33.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3413, allocations: 162.2 MB / 1.074 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001774/0.3432, allocations: 1.245 MB / 1.075 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004016/0.3436, allocations: 119.7 kB / 1.075 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.995e-05/0.3436, allocations: 4 kB / 1.075 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.3437, allocations: 0 / 1.075 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.093e-05/0.3437, allocations: 11.92 kB / 1.075 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.3439, allocations: 15.98 kB / 1.075 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.067e-05/0.344, allocations: 27.92 kB / 1.076 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.329e-05/0.3441, allocations: 7.984 kB / 1.076 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.388e-05/0.3442, allocations: 11.94 kB / 1.076 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.759e-05/0.3442, allocations: 19.91 kB / 1.076 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.3443, allocations: 4 kB / 1.076 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.908e-05/0.3443, allocations: 7.984 kB / 1.076 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.89e-05/0.3444, allocations: 4 kB / 1.076 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.043e-05/0.3444, allocations: 37.64 kB / 1.076 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.3445, allocations: 35.88 kB / 1.076 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3445, allocations: 0 / 1.076 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3445, allocations: 0 / 1.076 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.3445, allocations: 0 / 1.076 GB, free: 5.977 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.0004522/0.345, allocations: 343.8 kB / 1.076 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.345, allocations: 8.031 kB / 1.076 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.364e-05/0.3451, allocations: 8.844 kB / 1.076 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.3452, allocations: 168.4 kB / 1.076 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.3452, allocations: 384 / 1.076 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.3453, allocations: 8.359 kB / 1.076 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.3455, allocations: 58.23 kB / 1.076 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.3455, allocations: 4.125 kB / 1.076 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.3455, allocations: 7.938 kB / 1.076 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.3455, allocations: 0 / 1.076 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.3457, allocations: 55.95 kB / 1.076 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003898/0.3461, allocations: 260.9 kB / 1.077 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.3465, allocations: 70.47 kB / 1.077 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.3466, allocations: 32.84 kB / 1.077 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.3467, allocations: 81.11 kB / 1.077 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.3467, allocations: 34.56 kB / 1.077 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.3468, allocations: 0 / 1.077 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004201/0.3472, allocations: 117.6 kB / 1.077 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.3472, allocations: 51.41 kB / 1.077 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.961e-05/0.3473, allocations: 105.8 kB / 1.077 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.3473, allocations: 25.7 kB / 1.077 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/0.3474, allocations: 84.08 kB / 1.077 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.3474, allocations: 7.844 kB / 1.077 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.624e-05/0.3475, allocations: 17.72 kB / 1.077 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3476, allocations: 318.8 kB / 1.077 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.3477, allocations: 27.98 kB / 1.077 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.717e-05/0.3478, allocations: 23.97 kB / 1.077 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.348, allocations: 56.83 kB / 1.078 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.348, allocations: 3.938 kB / 1.078 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002395/0.3482, allocations: 85.64 kB / 1.078 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.3483, allocations: 5.719 kB / 1.078 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3483, allocations: 4 kB / 1.078 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.3483, allocations: 0 / 1.078 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-05/0.3484, allocations: 15.98 kB / 1.078 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.3484, allocations: 7.922 kB / 1.078 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.055e-05/0.3485, allocations: 4 kB / 1.078 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-06/0.3485, allocations: 4 kB / 1.078 GB, free: 3.668 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 7.786e-05/0.3486, allocations: 117.8 kB / 1.078 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/0.3486, allocations: 12.42 kB / 1.078 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002878/0.3489, allocations: 89.14 kB / 1.078 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3489, allocations: 4.031 kB / 1.078 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3489, allocations: 4 kB / 1.078 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.3489, allocations: 4 kB / 1.078 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.3491, allocations: 165.6 kB / 1.078 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3491, allocations: 0 / 1.078 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.723e-05/0.3492, allocations: 15.98 kB / 1.078 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3492, allocations: 0 / 1.078 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.3492, allocations: 0 / 1.078 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3492, allocations: 3.938 kB / 1.078 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3492, allocations: 0 / 1.078 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.3495, allocations: 183.5 kB / 1.078 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.952e-05/0.3495, allocations: 81.09 kB / 1.078 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.3496, allocations: 0 / 1.078 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.792e-05/0.3496, allocations: 8 kB / 1.078 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.3497, allocations: 11.98 kB / 1.078 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.3497, allocations: 7.938 kB / 1.078 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.435e-05/0.3497, allocations: 83.27 kB / 1.078 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3498, allocations: 0 / 1.078 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000225/0.35, allocations: 7.906 kB / 1.078 GB, free: 2.777 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.0001478/0.3501, allocations: 107.2 kB / 1.079 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000239/0.3504, allocations: 59.89 kB / 1.079 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3504, allocations: 0 / 1.079 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.3505, allocations: 31.97 kB / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.3508, allocations: 3.938 kB / 1.079 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002968/0.3511, allocations: 124.7 kB / 1.079 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.3513, allocations: 0.677 MB / 1.079 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.301e-05/0.3514, allocations: 4 kB / 1.079 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.3514, allocations: 11.44 kB / 1.079 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3514, allocations: 0 / 1.079 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of Templates: time 0.002857/0.3543, allocations: 0.608 MB / 1.08 GB, free: 1.094 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)