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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001602, allocations: 104.2 kB / 16.36 MB, free: 6.309 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.001994/0.001995, allocations: 188.7 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.784/1.784, allocations: 292.3 MB / 0.5496 GB, free: 17.44 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 72.28 kB / 0.6729 GB, free: 5.875 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2451, allocations: 114.6 MB / 0.7848 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002878/0.248, allocations: 1.513 MB / 0.7863 GB, free: 1.676 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0003611/0.2484, allocations: 120.5 kB / 0.7864 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.909e-05/0.2485, allocations: 0 / 0.7864 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.829e-05/0.2485, allocations: 3.938 kB / 0.7864 GB, free: 1.551 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 4.675e-05/0.2486, allocations: 7.938 kB / 0.7864 GB, free: 1.543 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.2488, allocations: 23.97 kB / 0.7864 GB, free: 1.52 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 7.878e-05/0.2489, allocations: 35.86 kB / 0.7864 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.249, allocations: 7.984 kB / 0.7864 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 4.494e-05/0.249, allocations: 11.98 kB / 0.7865 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 4.922e-05/0.2491, allocations: 15.92 kB / 0.7865 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.2491, allocations: 4 kB / 0.7865 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.24e-05/0.2492, allocations: 12 kB / 0.7865 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.2492, allocations: 4 kB / 0.7865 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.013e-05/0.2492, allocations: 23.91 kB / 0.7865 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.2493, allocations: 27.91 kB / 0.7865 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2494, allocations: 0 / 0.7865 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2494, allocations: 0 / 0.7865 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.2494, allocations: 0 / 0.7865 GB, free: 1.379 MB / 0.6544 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.0005826/0.25, allocations: 351.3 kB / 0.7869 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.25, allocations: 12.03 kB / 0.7869 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.25, allocations: 4.875 kB / 0.7869 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.2502, allocations: 164.4 kB / 0.787 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.2503, allocations: 8.375 kB / 0.7871 GB, free: 0.7617 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.2503, allocations: 4.375 kB / 0.7871 GB, free: 0.7578 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.2505, allocations: 62.22 kB / 0.7871 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2505, allocations: 192 / 0.7871 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.2505, allocations: 3.938 kB / 0.7871 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2505, allocations: 0 / 0.7871 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.2507, allocations: 43.95 kB / 0.7872 GB, free: 0.6445 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003613/0.2511, allocations: 268.8 kB / 0.7874 GB, free: 340 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.2514, allocations: 62.47 kB / 0.7875 GB, free: 268 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.905e-05/0.2516, allocations: 28.89 kB / 0.7875 GB, free: 236 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.2517, allocations: 81.11 kB / 0.7876 GB, free: 136 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.2517, allocations: 34.56 kB / 0.7876 GB, free: 92 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.2517, allocations: 0 / 0.7876 GB, free: 92 kB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.4415/0.6932, allocations: 93.17 kB / 0.7877 GB, free: 48.88 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.6933, allocations: 51.41 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.581e-05/0.6934, allocations: 100.6 kB / 0.7879 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.6934, allocations: 27.42 kB / 0.7879 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.43e-05/0.6935, allocations: 83.23 kB / 0.788 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.6935, allocations: 11.19 kB / 0.788 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.6935, allocations: 20.52 kB / 0.788 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.099e-05/0.6936, allocations: 315.3 kB / 0.7883 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.6937, allocations: 21.67 kB / 0.7883 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.701e-05/0.6938, allocations: 20.03 kB / 0.7883 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.694, allocations: 47.34 kB / 0.7884 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.694, allocations: 3.75 kB / 0.7884 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002262/0.6942, allocations: 74.41 kB / 0.7884 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.6942, allocations: 7.031 kB / 0.7885 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.6942, allocations: 1.125 kB / 0.7885 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.6943, allocations: 0 / 0.7885 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.775e-05/0.6944, allocations: 13.78 kB / 0.7885 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.6944, allocations: 0 / 0.7885 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.899e-05/0.6945, allocations: 8.844 kB / 0.7885 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.6945, allocations: 0.875 kB / 0.7885 GB, free: 48.24 MB / 0.6544 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 6.354e-05/0.6945, allocations: 115.6 kB / 0.7886 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.6946, allocations: 6.188 kB / 0.7886 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002622/0.6948, allocations: 84.22 kB / 0.7887 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.6949, allocations: 2.625 kB / 0.7887 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.6949, allocations: 7.156 kB / 0.7887 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.6949, allocations: 0 / 0.7887 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/0.695, allocations: 161.4 kB / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.695, allocations: 3.938 kB / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.856e-05/0.6951, allocations: 8.625 kB / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.6951, allocations: 2.625 kB / 0.7889 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-06/0.6951, allocations: 5.75 kB / 0.7889 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.6951, allocations: 0.5625 kB / 0.7889 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.6951, allocations: 3.688 kB / 0.7889 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002197/0.6954, allocations: 174.5 kB / 0.789 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.322e-05/0.6954, allocations: 79.3 kB / 0.7891 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.6954, allocations: 3.938 kB / 0.7891 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.108e-05/0.6955, allocations: 10.52 kB / 0.7891 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/0.6956, allocations: 11.97 kB / 0.7891 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.6956, allocations: 2.625 kB / 0.7891 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.352e-05/0.6956, allocations: 87.14 kB / 0.7892 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6956, allocations: 0 / 0.7892 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002231/0.6958, allocations: 5.531 kB / 0.7892 GB, free: 47.6 MB / 0.6544 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.000145/0.696, allocations: 102 kB / 0.7893 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002281/0.6962, allocations: 47.25 kB / 0.7894 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6962, allocations: 0.5 kB / 0.7894 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 8.903e-05/0.6963, allocations: 28.97 kB / 0.7894 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.6966, allocations: 2.625 kB / 0.7894 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003046/0.6969, allocations: 140.1 kB / 0.7895 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.697, allocations: 0.6775 MB / 0.7902 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.6971, allocations: 14.75 kB / 0.7902 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.6971, allocations: 0 / 0.7902 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of Templates: time 0.002231/0.6993, allocations: 0.7289 MB / 0.7909 GB, free: 46.68 MB / 0.6544 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)