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.00102/0.00102, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008379/0.008379, allocations: 169.5 kB / 16.27 MB, free: 6.652 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.321/1.321, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.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.815/1.815, allocations: 292.7 MB / 0.5502 GB, free: 14.48 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.0005196/0.0005196, allocations: 14.56 kB / 0.6743 GB, free: 25.82 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2089, allocations: 116.3 MB / 0.7879 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001715/0.2107, allocations: 1.236 MB / 0.7891 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004055/0.2111, allocations: 121.6 kB / 0.7892 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.863e-05/0.2112, allocations: 4 kB / 0.7892 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.601e-05/0.2112, allocations: 0 / 0.7892 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.861e-05/0.2113, allocations: 7.922 kB / 0.7892 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.2114, allocations: 15.98 kB / 0.7892 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.677e-05/0.2115, allocations: 27.92 kB / 0.7892 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.913e-05/0.2116, allocations: 11.88 kB / 0.7893 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.073e-05/0.2117, allocations: 15.98 kB / 0.7893 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.633e-05/0.2117, allocations: 15.91 kB / 0.7893 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.2117, allocations: 4 kB / 0.7893 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.536e-05/0.2118, allocations: 8 kB / 0.7893 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.221e-05/0.2118, allocations: 0 / 0.7893 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.025e-05/0.2119, allocations: 41.62 kB / 0.7893 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.212, allocations: 31.89 kB / 0.7894 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.212, allocations: 0 / 0.7894 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.523e-06/0.212, allocations: 0 / 0.7894 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.212, allocations: 0 / 0.7894 GB, free: 10.04 MB / 0.6075 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.0004151/0.2124, allocations: 355.7 kB / 0.7897 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2125, allocations: 8.031 kB / 0.7897 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.958e-05/0.2125, allocations: 0.9375 kB / 0.7897 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.2126, allocations: 164.4 kB / 0.7899 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.2126, allocations: 384 / 0.7899 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.2127, allocations: 8.312 kB / 0.7899 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.2129, allocations: 66.22 kB / 0.7899 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.2129, allocations: 4.188 kB / 0.79 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.2129, allocations: 3.938 kB / 0.79 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.2129, allocations: 0 / 0.79 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.2131, allocations: 55.95 kB / 0.79 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003619/0.2135, allocations: 256.9 kB / 0.7903 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.2138, allocations: 74.34 kB / 0.7903 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.2139, allocations: 32.91 kB / 0.7904 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001148/0.214, allocations: 85.09 kB / 0.7904 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.2141, allocations: 30.56 kB / 0.7905 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.2141, allocations: 0 / 0.7905 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003786/0.2145, allocations: 117.6 kB / 0.7906 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/0.2146, allocations: 51.41 kB / 0.7906 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.988e-05/0.2146, allocations: 97.86 kB / 0.7907 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.2147, allocations: 29.7 kB / 0.7907 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.75e-05/0.2147, allocations: 84.14 kB / 0.7908 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.2147, allocations: 11.83 kB / 0.7908 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.308e-05/0.2148, allocations: 13.72 kB / 0.7909 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.966e-05/0.2149, allocations: 314.8 kB / 0.7912 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-05/0.215, allocations: 23.98 kB / 0.7912 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.451e-05/0.2151, allocations: 27.97 kB / 0.7912 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.2152, allocations: 57.28 kB / 0.7913 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.2153, allocations: 3.938 kB / 0.7913 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002206/0.2155, allocations: 93.5 kB / 0.7914 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.2155, allocations: 4 kB / 0.7914 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.2155, allocations: 3.938 kB / 0.7914 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.2155, allocations: 48 / 0.7914 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.311e-05/0.2156, allocations: 19.97 kB / 0.7914 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.2156, allocations: 0 / 0.7914 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.074e-05/0.2157, allocations: 15.98 kB / 0.7914 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.2157, allocations: 4 kB / 0.7914 GB, free: 7.719 MB / 0.6075 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.184e-05/0.2158, allocations: 113.8 kB / 0.7915 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.2158, allocations: 4 kB / 0.7915 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002611/0.2161, allocations: 89.14 kB / 0.7916 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2161, allocations: 7.938 kB / 0.7916 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2161, allocations: 0 / 0.7916 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.2161, allocations: 0 / 0.7916 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.2163, allocations: 161.6 kB / 0.7918 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2163, allocations: 4 kB / 0.7918 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.379e-05/0.2164, allocations: 11.98 kB / 0.7918 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2164, allocations: 3.938 kB / 0.7918 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.2164, allocations: 8 kB / 0.7918 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2164, allocations: 0 / 0.7918 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2164, allocations: 4 kB / 0.7918 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002649/0.2167, allocations: 183.4 kB / 0.792 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.024e-05/0.2167, allocations: 81.02 kB / 0.792 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.2167, allocations: 0 / 0.792 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.763e-05/0.2168, allocations: 11.98 kB / 0.792 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.2169, allocations: 11.98 kB / 0.7921 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-06/0.2169, allocations: 0 / 0.7921 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.813e-05/0.217, allocations: 83.22 kB / 0.7921 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.5e-07/0.217, allocations: 0 / 0.7921 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002216/0.2172, allocations: 4 kB / 0.7921 GB, free: 6.848 MB / 0.6075 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.0001432/0.2173, allocations: 107.2 kB / 0.7922 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002421/0.2176, allocations: 55.95 kB / 0.7923 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2176, allocations: 0 / 0.7923 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.2177, allocations: 35.97 kB / 0.7923 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.218, allocations: 7.938 kB / 0.7923 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002878/0.2183, allocations: 120.6 kB / 0.7925 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.2185, allocations: 0.6809 MB / 0.7931 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.027e-05/0.2186, allocations: 4 kB / 0.7931 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.802e-05/0.2186, allocations: 11.44 kB / 0.7931 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of SimCode: time 4.31e-07/0.2186, allocations: 3.938 kB / 0.7931 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of Templates: time 0.003011/0.2216, allocations: 0.6209 MB / 0.7937 GB, free: 5.148 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: