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.0009807/0.0009807, allocations: 91.61 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.007095/0.007095, allocations: 170.2 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.425/1.425, 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.832/2.832, allocations: 473.4 MB / 0.7469 GB, free: 6.031 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0006268/0.0006269, allocations: 10.81 kB / 0.9158 GB, free: 33.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3391, allocations: 162.2 MB / 1.074 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001885/0.3411, allocations: 1.234 MB / 1.075 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000441/0.3415, allocations: 131.6 kB / 1.075 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.934e-05/0.3416, allocations: 0 / 1.075 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.768e-05/0.3416, allocations: 0 / 1.075 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.291e-05/0.3417, allocations: 11.94 kB / 1.075 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.3419, allocations: 15.98 kB / 1.075 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.828e-05/0.342, allocations: 23.92 kB / 1.076 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.363e-05/0.3421, allocations: 11.98 kB / 1.076 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.774e-05/0.3421, allocations: 15.92 kB / 1.076 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.332e-05/0.3422, allocations: 11.92 kB / 1.076 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.3422, allocations: 0 / 1.076 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.991e-05/0.3423, allocations: 12 kB / 1.076 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.164e-05/0.3423, allocations: 0 / 1.076 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.613e-05/0.3423, allocations: 49.61 kB / 1.076 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.3425, allocations: 31.89 kB / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3425, allocations: 0 / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3425, allocations: 0 / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.3425, allocations: 3.938 kB / 1.076 GB, free: 5.945 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.000436/0.3429, allocations: 341.4 kB / 1.076 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.343, allocations: 12.03 kB / 1.076 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.382e-05/0.343, allocations: 12.84 kB / 1.076 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.3431, allocations: 164.4 kB / 1.076 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.3432, allocations: 384 / 1.076 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.3432, allocations: 384 / 1.076 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.3434, allocations: 66.22 kB / 1.076 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3434, allocations: 4.125 kB / 1.076 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.3434, allocations: 3.938 kB / 1.076 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.3434, allocations: 8 kB / 1.076 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.3437, allocations: 51.95 kB / 1.076 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000367/0.344, allocations: 256.9 kB / 1.077 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.3444, allocations: 70.47 kB / 1.077 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.3445, allocations: 32.84 kB / 1.077 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.3446, allocations: 85.09 kB / 1.077 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.3447, allocations: 34.56 kB / 1.077 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.493e-06/0.3447, allocations: 0 / 1.077 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004212/0.3451, allocations: 109.6 kB / 1.077 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.3451, allocations: 51.41 kB / 1.077 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.322e-05/0.3452, allocations: 102 kB / 1.077 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.3452, allocations: 25.7 kB / 1.077 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.821e-05/0.3453, allocations: 100 kB / 1.077 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.3453, allocations: 7.844 kB / 1.077 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.3454, allocations: 9.719 kB / 1.077 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.442e-05/0.3455, allocations: 318.8 kB / 1.077 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.3456, allocations: 31.91 kB / 1.077 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.918e-05/0.3457, allocations: 19.98 kB / 1.077 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.3459, allocations: 60.81 kB / 1.078 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3459, allocations: 3.938 kB / 1.078 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002377/0.3461, allocations: 81.66 kB / 1.078 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.3461, allocations: 8 kB / 1.078 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3461, allocations: 4 kB / 1.078 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.3462, allocations: 0 / 1.078 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.533e-05/0.3462, allocations: 11.98 kB / 1.078 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.3463, allocations: 7.938 kB / 1.078 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.316e-05/0.3463, allocations: 7.984 kB / 1.078 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.3463, allocations: 0 / 1.078 GB, free: 3.641 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.878e-05/0.3464, allocations: 117.8 kB / 1.078 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.3465, allocations: 3.906 kB / 1.078 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000289/0.3468, allocations: 93.14 kB / 1.078 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3468, allocations: 0 / 1.078 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.3468, allocations: 3.938 kB / 1.078 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3468, allocations: 8 kB / 1.078 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.347, allocations: 161.6 kB / 1.078 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.347, allocations: 0 / 1.078 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.267e-05/0.3471, allocations: 15.98 kB / 1.078 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3471, allocations: 0 / 1.078 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.3471, allocations: 0 / 1.078 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3471, allocations: 3.938 kB / 1.078 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3471, allocations: 4 kB / 1.078 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002891/0.3474, allocations: 191.4 kB / 1.078 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-05/0.3474, allocations: 77.11 kB / 1.078 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.3475, allocations: 0 / 1.078 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.523e-05/0.3476, allocations: 11.98 kB / 1.078 GB, free: 2.855 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.496e-05/0.3476, allocations: 7.984 kB / 1.078 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.3476, allocations: 4 kB / 1.078 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.756e-05/0.3477, allocations: 83.64 kB / 1.078 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3477, allocations: 0 / 1.078 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002395/0.3479, allocations: 11.91 kB / 1.078 GB, free: 2.75 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.0001613/0.3481, allocations: 99.25 kB / 1.079 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002562/0.3484, allocations: 72 kB / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3484, allocations: 0 / 1.079 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.3485, allocations: 27.98 kB / 1.079 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.3488, allocations: 5.5 kB / 1.079 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002939/0.3491, allocations: 124.7 kB / 1.079 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.3493, allocations: 0.677 MB / 1.079 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.288e-05/0.3494, allocations: 4 kB / 1.079 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/0.3494, allocations: 11.42 kB / 1.079 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3494, allocations: 0 / 1.079 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of Templates: time 0.002983/0.3524, allocations: 0.6159 MB / 1.08 GB, free: 1.059 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)