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.0009302/0.0009305, allocations: 90.75 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.001212/0.001213, allocations: 172.7 kB / 15.95 MB, free: 208 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.688/1.688, allocations: 205.4 MB / 222.1 MB, free: 5.477 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.837/1.837, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0005775/0.0005778, allocations: 14.44 kB / 0.6737 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2803, allocations: 116.3 MB / 0.7873 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001854/0.2822, allocations: 1.216 MB / 0.7885 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003633/0.2825, allocations: 120.6 kB / 0.7886 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.646e-05/0.2826, allocations: 0 / 0.7886 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.613e-05/0.2826, allocations: 3.938 kB / 0.7886 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.398e-05/0.2827, allocations: 4 kB / 0.7886 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.2829, allocations: 19.97 kB / 0.7886 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.238e-05/0.2829, allocations: 27.92 kB / 0.7886 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.101e-05/0.283, allocations: 4 kB / 0.7886 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.54e-05/0.2831, allocations: 15.92 kB / 0.7887 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.87e-05/0.2831, allocations: 19.86 kB / 0.7887 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.2832, allocations: 0 / 0.7887 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.2832, allocations: 8 kB / 0.7887 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.345e-05/0.2832, allocations: 7.969 kB / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.811e-05/0.2833, allocations: 29.7 kB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.718e-05/0.2834, allocations: 19.97 kB / 0.7887 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2834, allocations: 0 / 0.7887 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.813e-06/0.2834, allocations: 0 / 0.7887 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.2834, allocations: 0 / 0.7887 GB, free: 10.43 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.0004498/0.2838, allocations: 347.5 kB / 0.7891 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2839, allocations: 11.97 kB / 0.7891 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.833e-05/0.2839, allocations: 0 / 0.7891 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.2841, allocations: 179 kB / 0.7892 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2841, allocations: 0 / 0.7892 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/0.2841, allocations: 8 kB / 0.7893 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.2843, allocations: 57.67 kB / 0.7893 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.2843, allocations: 0 / 0.7893 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.2843, allocations: 4 kB / 0.7893 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.2844, allocations: 0 / 0.7893 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.2846, allocations: 55.95 kB / 0.7894 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000364/0.2849, allocations: 265.9 kB / 0.7896 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.2852, allocations: 70.47 kB / 0.7897 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.073e-05/0.2853, allocations: 32.89 kB / 0.7897 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/0.2854, allocations: 81.11 kB / 0.7898 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.2855, allocations: 34.56 kB / 0.7898 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.2855, allocations: 0 / 0.7898 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003599/0.2859, allocations: 113.6 kB / 0.7899 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.2859, allocations: 55.41 kB / 0.79 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.489e-05/0.286, allocations: 101.8 kB / 0.7901 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.286, allocations: 25.7 kB / 0.7901 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.464e-05/0.2861, allocations: 88.08 kB / 0.7902 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.2861, allocations: 11.83 kB / 0.7902 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.2861, allocations: 0 / 0.7902 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.2862, allocations: 322.8 kB / 0.7905 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.69e-05/0.2863, allocations: 27.98 kB / 0.7905 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.127e-05/0.2864, allocations: 19.98 kB / 0.7906 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.224e-05/0.2865, allocations: 27.97 kB / 0.7906 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2865, allocations: 0 / 0.7906 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002043/0.2867, allocations: 85.66 kB / 0.7907 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.2867, allocations: 7.938 kB / 0.7907 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2867, allocations: 0 / 0.7907 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.2867, allocations: 4 kB / 0.7907 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.45e-05/0.2868, allocations: 11.98 kB / 0.7907 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.2868, allocations: 4 kB / 0.7907 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.525e-05/0.2869, allocations: 15.89 kB / 0.7907 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.2869, allocations: 0 / 0.7907 GB, free: 8.164 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.378e-05/0.287, allocations: 117.8 kB / 0.7908 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.287, allocations: 0 / 0.7908 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002436/0.2873, allocations: 93.14 kB / 0.7909 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2873, allocations: 0 / 0.7909 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2873, allocations: 0 / 0.7909 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2873, allocations: 0 / 0.7909 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.2875, allocations: 169.5 kB / 0.7911 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.2875, allocations: 3.938 kB / 0.7911 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.231e-05/0.2876, allocations: 15.98 kB / 0.7911 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2876, allocations: 0 / 0.7911 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.2876, allocations: 8.562 kB / 0.7911 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2876, allocations: 0 / 0.7911 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2876, allocations: 0 / 0.7911 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.2879, allocations: 187.4 kB / 0.7913 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.257e-05/0.2879, allocations: 81.02 kB / 0.7914 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.2879, allocations: 4 kB / 0.7914 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.949e-05/0.288, allocations: 7.984 kB / 0.7914 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.2881, allocations: 15.98 kB / 0.7914 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.2881, allocations: 0 / 0.7914 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.204e-05/0.2881, allocations: 79.28 kB / 0.7915 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2881, allocations: 7.938 kB / 0.7915 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002203/0.2884, allocations: 8 kB / 0.7915 GB, free: 7.277 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.0001741/0.2885, allocations: 107.2 kB / 0.7916 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002356/0.2888, allocations: 55.94 kB / 0.7916 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2888, allocations: 4 kB / 0.7916 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.29e-05/0.2889, allocations: 27.98 kB / 0.7917 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.2892, allocations: 7.953 kB / 0.7917 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002856/0.2895, allocations: 116.7 kB / 0.7918 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.2897, allocations: 0.6887 MB / 0.7925 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.055e-05/0.2898, allocations: 0 / 0.7925 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.809e-05/0.2898, allocations: 15.42 kB / 0.7925 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2898, allocations: 0 / 0.7925 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of Templates: time 0.002791/0.2926, allocations: 0.5803 MB / 0.793 GB, free: 5.621 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: