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.001247/0.001247, allocations: 102.5 kB / 15.06 MB, free: 1.098 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.001554/0.001555, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.836/1.836, allocations: 292.5 MB / 0.5497 GB, free: 14.63 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.0005295/0.0005295, allocations: 19.41 kB / 0.6735 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2353, allocations: 116.3 MB / 0.7871 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001729/0.2371, allocations: 1.224 MB / 0.7883 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003012/0.2374, allocations: 113.8 kB / 0.7884 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.945e-05/0.2374, allocations: 0 / 0.7884 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.137e-05/0.2375, allocations: 0 / 0.7884 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.314e-05/0.2375, allocations: 7.969 kB / 0.7884 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.2377, allocations: 23.86 kB / 0.7884 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.442e-05/0.2378, allocations: 15.98 kB / 0.7885 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.142e-05/0.2379, allocations: 11.98 kB / 0.7885 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.011e-05/0.2379, allocations: 8 kB / 0.7885 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.713e-05/0.238, allocations: 11.92 kB / 0.7885 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.238, allocations: 4 kB / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.261e-05/0.238, allocations: 8 kB / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.216e-05/0.2381, allocations: 7.969 kB / 0.7885 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.027e-05/0.2381, allocations: 25.7 kB / 0.7885 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.019e-05/0.2382, allocations: 19.97 kB / 0.7886 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.2382, allocations: 3.938 kB / 0.7886 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2382, allocations: 0 / 0.7886 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.2382, allocations: 4 kB / 0.7886 GB, free: 10.48 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.000481/0.2387, allocations: 347.5 kB / 0.7889 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.2387, allocations: 8.031 kB / 0.7889 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.855e-05/0.2388, allocations: 0 / 0.7889 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.2389, allocations: 171 kB / 0.7891 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.2389, allocations: 7.875 kB / 0.7891 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.2389, allocations: 11.98 kB / 0.7891 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.2391, allocations: 57.67 kB / 0.7891 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.2391, allocations: 0 / 0.7891 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.2392, allocations: 4 kB / 0.7891 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2392, allocations: 0 / 0.7891 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.2394, allocations: 59.89 kB / 0.7892 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003449/0.2397, allocations: 264.8 kB / 0.7895 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.24, allocations: 66.53 kB / 0.7895 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.2402, allocations: 81.17 kB / 0.7896 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.2402, allocations: 30.56 kB / 0.7896 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.2402, allocations: 0 / 0.7896 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004106/0.2406, allocations: 113.7 kB / 0.7897 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.2407, allocations: 51.41 kB / 0.7898 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.496e-05/0.2407, allocations: 101.8 kB / 0.7899 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.2408, allocations: 25.7 kB / 0.7899 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.2408, allocations: 92.12 kB / 0.79 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.2408, allocations: 7.844 kB / 0.79 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-06/0.2408, allocations: 4 kB / 0.79 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.241, allocations: 314.8 kB / 0.7903 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.749e-05/0.2411, allocations: 27.97 kB / 0.7903 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.391e-05/0.2412, allocations: 23.98 kB / 0.7903 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.384e-05/0.2413, allocations: 27.98 kB / 0.7904 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2413, allocations: 0 / 0.7904 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002221/0.2415, allocations: 85.58 kB / 0.7905 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.2415, allocations: 4 kB / 0.7905 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2415, allocations: 4 kB / 0.7905 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.2415, allocations: 0 / 0.7905 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.422e-05/0.2416, allocations: 19.98 kB / 0.7905 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.2416, allocations: 0 / 0.7905 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.427e-05/0.2417, allocations: 15.89 kB / 0.7905 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.2417, allocations: 0 / 0.7905 GB, free: 8.262 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 (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 8.616e-05/0.2418, allocations: 113.8 kB / 0.7906 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.39e-05/0.2418, allocations: 4 kB / 0.7906 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002548/0.2421, allocations: 101.5 kB / 0.7907 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2421, allocations: 0 / 0.7907 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2421, allocations: 0 / 0.7907 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-06/0.2421, allocations: 8.031 kB / 0.7907 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.2423, allocations: 165.6 kB / 0.7909 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2423, allocations: 0 / 0.7909 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.488e-05/0.2424, allocations: 15.98 kB / 0.7909 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2424, allocations: 0 / 0.7909 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.2424, allocations: 3.938 kB / 0.7909 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.2424, allocations: 4 kB / 0.7909 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2424, allocations: 0 / 0.7909 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002579/0.2427, allocations: 191.4 kB / 0.7911 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.386e-05/0.2427, allocations: 81.02 kB / 0.7912 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.2427, allocations: 0 / 0.7912 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-05/0.2428, allocations: 11.98 kB / 0.7912 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.2429, allocations: 8 kB / 0.7912 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.2429, allocations: 0 / 0.7912 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.695e-05/0.243, allocations: 87.27 kB / 0.7913 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.243, allocations: 0 / 0.7913 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002214/0.2432, allocations: 8 kB / 0.7913 GB, free: 7.371 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 (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.0001445/0.2433, allocations: 99.25 kB / 0.7914 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002435/0.2436, allocations: 59.95 kB / 0.7914 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2436, allocations: 0 / 0.7914 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.2437, allocations: 35.91 kB / 0.7915 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.2439, allocations: 3.953 kB / 0.7915 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002961/0.2442, allocations: 124.6 kB / 0.7916 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.2445, allocations: 0.6848 MB / 0.7922 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.826e-05/0.2445, allocations: 0 / 0.7922 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.714e-05/0.2446, allocations: 15.42 kB / 0.7923 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.2446, allocations: 0 / 0.7923 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of Templates: time 0.002724/0.2473, allocations: 0.5953 MB / 0.7928 GB, free: 5.703 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: