Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.527/1.527, allocations: 292.3 MB / 308.1 MB, free: 4.281 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.001363/0.001363, allocations: 181.5 kB / 376.9 MB, free: 1.809 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.386/1.386, allocations: 205.1 MB / 0.6354 GB, free: 9.781 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008843/0.0008843, allocations: 98.88 kB / 0.748 GB, free: 61.39 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009865/0.0009865, allocations: 55.92 kB / 0.8704 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2358, allocations: 114.6 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002842/0.2387, allocations: 1.578 MB / 0.9838 GB, free: 8.805 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0003589/0.2391, allocations: 120.5 kB / 0.9839 GB, free: 8.684 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.681e-05/0.2392, allocations: 0 / 0.9839 GB, free: 8.684 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.2392, allocations: 7.922 kB / 0.9839 GB, free: 8.676 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 3.63e-05/0.2392, allocations: 0 / 0.9839 GB, free: 8.676 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001692/0.2394, allocations: 23.98 kB / 0.9839 GB, free: 8.652 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 5.468e-05/0.2395, allocations: 23.94 kB / 0.9839 GB, free: 8.629 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 8.408e-05/0.2396, allocations: 11.98 kB / 0.9839 GB, free: 8.617 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 3.618e-05/0.2396, allocations: 11.92 kB / 0.9839 GB, free: 8.605 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 3.835e-05/0.2397, allocations: 11.98 kB / 0.984 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.2397, allocations: 8 kB / 0.984 GB, free: 8.586 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.049e-05/0.2397, allocations: 11.98 kB / 0.984 GB, free: 8.574 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.3e-05/0.2398, allocations: 3.938 kB / 0.984 GB, free: 8.57 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 2.738e-05/0.2398, allocations: 15.92 kB / 0.984 GB, free: 8.555 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 9.117e-05/0.2399, allocations: 27.95 kB / 0.984 GB, free: 8.527 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2399, allocations: 3.938 kB / 0.984 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.02e-07/0.2399, allocations: 0 / 0.984 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2399, allocations: 0 / 0.984 GB, free: 8.523 MB / 0.7136 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.000422/0.2403, allocations: 347.7 kB / 0.9844 GB, free: 8.133 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.2404, allocations: 16.03 kB / 0.9844 GB, free: 8.117 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.852e-05/0.2404, allocations: 4.922 kB / 0.9844 GB, free: 8.113 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.619e-05/0.2405, allocations: 164.3 kB / 0.9845 GB, free: 7.914 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.2405, allocations: 4.375 kB / 0.9845 GB, free: 7.91 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.2406, allocations: 4.375 kB / 0.9845 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001686/0.2407, allocations: 62.22 kB / 0.9846 GB, free: 7.84 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.2407, allocations: 192 / 0.9846 GB, free: 7.84 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.2408, allocations: 7.922 kB / 0.9846 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.2408, allocations: 0 / 0.9846 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.2409, allocations: 43.97 kB / 0.9847 GB, free: 7.789 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003236/0.2413, allocations: 260.9 kB / 0.9849 GB, free: 7.484 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002884/0.2416, allocations: 66.41 kB / 0.985 GB, free: 7.41 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.19e-05/0.2417, allocations: 28.91 kB / 0.985 GB, free: 7.379 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.2418, allocations: 85.09 kB / 0.9851 GB, free: 7.277 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.66e-05/0.2418, allocations: 30.56 kB / 0.9851 GB, free: 7.238 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.2418, allocations: 0 / 0.9851 GB, free: 7.238 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0003475/0.2422, allocations: 93.58 kB / 0.9852 GB, free: 7.141 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.2422, allocations: 59.39 kB / 0.9853 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.176e-05/0.2423, allocations: 97.86 kB / 0.9853 GB, free: 6.965 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.2423, allocations: 29.7 kB / 0.9854 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.701e-05/0.2424, allocations: 84.05 kB / 0.9855 GB, free: 6.844 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.6e-05/0.2424, allocations: 7.844 kB / 0.9855 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.2424, allocations: 21.7 kB / 0.9855 GB, free: 6.809 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.2425, allocations: 310.8 kB / 0.9858 GB, free: 6.496 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.616e-05/0.2426, allocations: 27.97 kB / 0.9858 GB, free: 6.469 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.761e-05/0.2427, allocations: 19.98 kB / 0.9858 GB, free: 6.449 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.2429, allocations: 44.75 kB / 0.9859 GB, free: 6.402 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.2429, allocations: 3.938 kB / 0.9859 GB, free: 6.398 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001978/0.2431, allocations: 77.59 kB / 0.9859 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.2431, allocations: 4 kB / 0.9859 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.2431, allocations: 4 kB / 0.986 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.2431, allocations: 0 / 0.986 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.171e-05/0.2432, allocations: 11.98 kB / 0.986 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.2432, allocations: 0 / 0.986 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.179e-05/0.2433, allocations: 7.984 kB / 0.986 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.2433, allocations: 4 kB / 0.986 GB, free: 6.285 MB / 0.7136 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.515e-05/0.2434, allocations: 117.8 kB / 0.9861 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.2434, allocations: 0 / 0.9861 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.2436, allocations: 89.59 kB / 0.9862 GB, free: 6.066 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2437, allocations: 48 / 0.9862 GB, free: 6.066 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.2437, allocations: 3.984 kB / 0.9862 GB, free: 6.062 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2437, allocations: 0 / 0.9862 GB, free: 6.062 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.2438, allocations: 173.6 kB / 0.9863 GB, free: 5.844 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2438, allocations: 0 / 0.9863 GB, free: 5.844 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.919e-05/0.2439, allocations: 11.98 kB / 0.9864 GB, free: 5.832 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2439, allocations: 0 / 0.9864 GB, free: 5.832 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.2439, allocations: 4 kB / 0.9864 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.2439, allocations: 4 kB / 0.9864 GB, free: 5.824 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.244, allocations: 0 / 0.9864 GB, free: 5.824 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.2445, allocations: 0.7356 MB / 0.9871 GB, free: 5.031 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.274e-05/0.2445, allocations: 81.11 kB / 0.9872 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.2445, allocations: 4 kB / 0.9872 GB, free: 4.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.097e-05/0.2446, allocations: 11.98 kB / 0.9872 GB, free: 4.918 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.2447, allocations: 11.86 kB / 0.9872 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.2447, allocations: 4 kB / 0.9872 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.586e-05/0.2447, allocations: 75.28 kB / 0.9873 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.573e-06/0.2447, allocations: 0 / 0.9873 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002977/0.2451, allocations: 15.94 kB / 0.9873 GB, free: 4.812 MB / 0.7136 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.0001603/0.2452, allocations: 107.2 kB / 0.9874 GB, free: 4.695 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002053/0.2454, allocations: 39.95 kB / 0.9874 GB, free: 4.656 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2454, allocations: 4 kB / 0.9874 GB, free: 4.652 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 9.2e-05/0.2455, allocations: 23.92 kB / 0.9874 GB, free: 4.629 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.2458, allocations: 10.5 kB / 0.9874 GB, free: 4.621 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003254/0.2461, allocations: 226.1 kB / 0.9877 GB, free: 4.363 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.2464, allocations: 0.6809 MB / 0.9883 GB, free: 3.656 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.817e-05/0.2464, allocations: 0 / 0.9883 GB, free: 3.656 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.2464, allocations: 15.42 kB / 0.9883 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of SimCode: time 2.11e-07/0.2464, allocations: 0 / 0.9883 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of Templates: time 0.002456/0.2489, allocations: 0.6281 MB / 0.989 GB, free: 3.016 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)