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.001527/0.001527, allocations: 106.2 kB / 16.36 MB, free: 6.012 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.001721/0.001721, allocations: 194.3 kB / 17.3 MB, free: 5.613 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.436/1.436, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.769/1.769, allocations: 292.3 MB / 0.5496 GB, free: 17.5 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.001457/0.001457, allocations: 67.89 kB / 0.6729 GB, free: 5.875 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2441, allocations: 114.5 MB / 0.7848 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003423/0.2476, allocations: 1.517 MB / 0.7863 GB, free: 1.676 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0003871/0.248, allocations: 120.5 kB / 0.7864 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.503e-05/0.2481, allocations: 0 / 0.7864 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.298e-05/0.2481, allocations: 3.938 kB / 0.7864 GB, free: 1.551 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 4.721e-05/0.2482, allocations: 0 / 0.7864 GB, free: 1.551 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002475/0.2484, allocations: 31.91 kB / 0.7864 GB, free: 1.52 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 8.004e-05/0.2485, allocations: 35.84 kB / 0.7864 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.2487, allocations: 12 kB / 0.7865 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 5.002e-05/0.2487, allocations: 11.98 kB / 0.7865 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.538e-05/0.2488, allocations: 15.92 kB / 0.7865 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/0.2488, allocations: 4 kB / 0.7865 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.932e-05/0.2489, allocations: 12 kB / 0.7865 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.2489, allocations: 4 kB / 0.7865 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.249, allocations: 19.91 kB / 0.7865 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.2491, allocations: 27.91 kB / 0.7865 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2491, allocations: 0 / 0.7865 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2491, allocations: 4 kB / 0.7865 GB, free: 1.375 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.2491, allocations: 0 / 0.7865 GB, free: 1.375 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.0004758/0.2496, allocations: 347.4 kB / 0.7869 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.2496, allocations: 11.97 kB / 0.7869 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.325e-05/0.2497, allocations: 4.938 kB / 0.7869 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.2498, allocations: 160.4 kB / 0.787 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.2498, allocations: 4.312 kB / 0.7871 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.2498, allocations: 4.375 kB / 0.7871 GB, free: 0.7656 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.2501, allocations: 66.22 kB / 0.7871 GB, free: 0.6953 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.2501, allocations: 192 / 0.7871 GB, free: 0.6953 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.2501, allocations: 3.938 kB / 0.7871 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.2501, allocations: 0 / 0.7871 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.2503, allocations: 43.95 kB / 0.7872 GB, free: 0.6484 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000389/0.2507, allocations: 260.9 kB / 0.7874 GB, free: 352 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.251, allocations: 70.41 kB / 0.7875 GB, free: 272 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.729e-05/0.2512, allocations: 28.84 kB / 0.7875 GB, free: 240 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001187/0.2513, allocations: 81.09 kB / 0.7876 GB, free: 140 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.2513, allocations: 34.56 kB / 0.7876 GB, free: 96 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.2513, allocations: 0 / 0.7876 GB, free: 96 kB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.3848/0.6362, allocations: 93.73 kB / 0.7877 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.6362, allocations: 51.41 kB / 0.7878 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.882e-05/0.6363, allocations: 98.17 kB / 0.7878 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.6363, allocations: 28.52 kB / 0.7879 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.099e-05/0.6364, allocations: 85.22 kB / 0.788 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.6364, allocations: 14.8 kB / 0.788 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.6364, allocations: 13.84 kB / 0.788 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.693e-05/0.6365, allocations: 314 kB / 0.7883 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.6366, allocations: 19.94 kB / 0.7883 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.44e-05/0.6367, allocations: 24.67 kB / 0.7883 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.6369, allocations: 49.2 kB / 0.7884 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.6369, allocations: 3.75 kB / 0.7884 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002244/0.6371, allocations: 75.23 kB / 0.7884 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.6372, allocations: 5.656 kB / 0.7885 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.6372, allocations: 0 / 0.7885 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.6372, allocations: 0 / 0.7885 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.794e-05/0.6373, allocations: 13.94 kB / 0.7885 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.6373, allocations: 2.812 kB / 0.7885 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.185e-05/0.6374, allocations: 9.875 kB / 0.7885 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-06/0.6374, allocations: 0 / 0.7885 GB, free: 48.22 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 5.849e-05/0.6375, allocations: 114.5 kB / 0.7886 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.6375, allocations: 1.625 kB / 0.7886 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002524/0.6378, allocations: 83.3 kB / 0.7887 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.6378, allocations: 8.062 kB / 0.7887 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.6378, allocations: 1.031 kB / 0.7887 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.6378, allocations: 1.938 kB / 0.7887 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.6379, allocations: 160.6 kB / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.6379, allocations: 0 / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.436e-05/0.638, allocations: 12.78 kB / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.638, allocations: 0 / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.6381, allocations: 11.58 kB / 0.7889 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.6381, allocations: 2.25 kB / 0.7889 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.6381, allocations: 4.438 kB / 0.7889 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002285/0.6383, allocations: 167.5 kB / 0.789 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.232e-05/0.6383, allocations: 82.52 kB / 0.7891 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.6384, allocations: 7.375 kB / 0.7891 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-05/0.6384, allocations: 10.45 kB / 0.7891 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/0.6385, allocations: 5.188 kB / 0.7891 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.6385, allocations: 5.906 kB / 0.7891 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.287e-05/0.6385, allocations: 80.66 kB / 0.7892 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6385, allocations: 0 / 0.7892 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002355/0.6388, allocations: 9.156 kB / 0.7892 GB, free: 47.57 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.0001415/0.6389, allocations: 106.2 kB / 0.7893 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.6392, allocations: 43.8 kB / 0.7894 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.6392, allocations: 0.6562 kB / 0.7894 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.376e-05/0.6393, allocations: 32.73 kB / 0.7894 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.6396, allocations: 3.406 kB / 0.7894 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002992/0.6399, allocations: 113.2 kB / 0.7895 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001102/0.64, allocations: 0.6774 MB / 0.7902 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.036e-05/0.6401, allocations: 6.406 kB / 0.7902 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.6401, allocations: 10.06 kB / 0.7902 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.6401, allocations: 0 / 0.7902 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of Templates: time 0.002798/0.6429, allocations: 0.7012 MB / 0.7909 GB, free: 46.69 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)