Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.845/1.845, allocations: 288.4 MB / 303.4 MB, free: 8.082 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 178.8 kB / 372 MB, free: 10.23 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.874/1.874, allocations: 205.4 MB / 0.6307 GB, free: 9.973 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 84.55 kB / 0.7441 GB, free: 5.898 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004221/0.0004222, allocations: 16.78 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2198, allocations: 115.3 MB / 0.9796 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00178/0.2217, allocations: 1.224 MB / 0.9808 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0004036/0.2221, allocations: 112.6 kB / 0.9809 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.533e-05/0.2222, allocations: 0 / 0.9809 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.096e-05/0.2223, allocations: 7.938 kB / 0.9809 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.412e-05/0.2223, allocations: 0 / 0.9809 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.2226, allocations: 19.98 kB / 0.9809 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.662e-05/0.2227, allocations: 31.91 kB / 0.9809 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.2228, allocations: 7.984 kB / 0.9809 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.607e-05/0.2229, allocations: 11.94 kB / 0.981 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.847e-05/0.2229, allocations: 7.984 kB / 0.981 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.2229, allocations: 0 / 0.981 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.199e-05/0.223, allocations: 15.98 kB / 0.981 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.335e-06/0.223, allocations: 7.938 kB / 0.981 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.633e-05/0.2231, allocations: 25.7 kB / 0.981 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.601e-05/0.2232, allocations: 27.89 kB / 0.981 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2232, allocations: 0 / 0.981 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.354e-06/0.2232, allocations: 0 / 0.981 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.2232, allocations: 0 / 0.981 GB, free: 26.16 MB / 0.6198 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.0004423/0.2236, allocations: 351.5 kB / 0.9814 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.2237, allocations: 12.02 kB / 0.9814 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.2237, allocations: 4 kB / 0.9814 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.604e-05/0.2238, allocations: 167 kB / 0.9816 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.2239, allocations: 4 kB / 0.9816 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.2239, allocations: 0 / 0.9816 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.2241, allocations: 69.59 kB / 0.9816 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.2241, allocations: 0 / 0.9816 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2241, allocations: 4 kB / 0.9816 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.2241, allocations: 4 kB / 0.9816 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.2243, allocations: 51.95 kB / 0.9817 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003393/0.2247, allocations: 260.8 kB / 0.9819 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003259/0.225, allocations: 70.47 kB / 0.982 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.2251, allocations: 28.91 kB / 0.982 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.2253, allocations: 85.09 kB / 0.9821 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.2253, allocations: 34.56 kB / 0.9821 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.944e-06/0.2253, allocations: 0 / 0.9821 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004175/0.2257, allocations: 113.6 kB / 0.9822 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/0.2258, allocations: 51.41 kB / 0.9823 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.102e-05/0.2259, allocations: 101.8 kB / 0.9824 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.2259, allocations: 25.7 kB / 0.9824 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.695e-05/0.2259, allocations: 88.14 kB / 0.9825 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.2259, allocations: 11.83 kB / 0.9825 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.226, allocations: 0 / 0.9825 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.609e-05/0.226, allocations: 314.8 kB / 0.9828 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.318e-05/0.2261, allocations: 27.98 kB / 0.9828 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.2262, allocations: 32.28 kB / 0.9829 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.318e-05/0.2264, allocations: 24.08 kB / 0.9829 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.2264, allocations: 4 kB / 0.9829 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002171/0.2266, allocations: 81.64 kB / 0.983 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.2266, allocations: 4 kB / 0.983 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.2266, allocations: 3.984 kB / 0.983 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.2266, allocations: 4 kB / 0.983 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.418e-05/0.2267, allocations: 12 kB / 0.983 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.2268, allocations: 3.984 kB / 0.983 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.422e-05/0.2268, allocations: 19.84 kB / 0.983 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.2268, allocations: 0 / 0.983 GB, free: 23.89 MB / 0.6198 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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.821e-05/0.2269, allocations: 113.8 kB / 0.9831 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.227, allocations: 3.984 kB / 0.9831 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.2272, allocations: 97.14 kB / 0.9832 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2273, allocations: 0 / 0.9832 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2273, allocations: 0 / 0.9832 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2273, allocations: 0 / 0.9832 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.2274, allocations: 169.6 kB / 0.9834 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2274, allocations: 0 / 0.9834 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.56e-05/0.2275, allocations: 12 kB / 0.9834 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.2275, allocations: 3.984 kB / 0.9834 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.2275, allocations: 4 kB / 0.9834 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.2275, allocations: 0 / 0.9834 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2275, allocations: 3.938 kB / 0.9834 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002398/0.2278, allocations: 187.5 kB / 0.9836 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.335e-05/0.2278, allocations: 81.02 kB / 0.9837 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.2278, allocations: 3.984 kB / 0.9837 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.782e-05/0.2279, allocations: 8 kB / 0.9837 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.943e-05/0.228, allocations: 7.984 kB / 0.9837 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.228, allocations: 0 / 0.9837 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.356e-05/0.228, allocations: 87.28 kB / 0.9838 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.91e-07/0.228, allocations: 0 / 0.9838 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002178/0.2283, allocations: 8 kB / 0.9838 GB, free: 23.02 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001453/0.2284, allocations: 111.1 kB / 0.9839 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002297/0.2286, allocations: 59.89 kB / 0.9839 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2287, allocations: 0 / 0.9839 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.719e-05/0.2288, allocations: 31.97 kB / 0.984 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.229, allocations: 10.19 kB / 0.984 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002941/0.2293, allocations: 118 kB / 0.9841 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.2295, allocations: 0.6809 MB / 0.9848 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.192e-05/0.2295, allocations: 0 / 0.9848 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.217e-05/0.2295, allocations: 11.44 kB / 0.9848 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.2295, allocations: 0 / 0.9848 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of Templates: time 0.002437/0.232, allocations: 0.5953 MB / 0.9853 GB, free: 21.36 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)