Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 111.5 kB / 16.36 MB, free: 5.961 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.001054/0.001054, allocations: 196.5 kB / 17.3 MB, free: 5.574 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.391/1.391, allocations: 205.1 MB / 223.2 MB, free: 12.29 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.765/1.765, allocations: 292.3 MB / 0.5496 GB, free: 17.74 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.0015/0.0015, allocations: 75.19 kB / 0.6729 GB, free: 5.867 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2145, allocations: 114.6 MB / 0.7848 GB, free: 3.195 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001883/0.2164, allocations: 0.5855 MB / 0.7854 GB, free: 2.602 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0002411/0.2167, allocations: 51.8 kB / 0.7854 GB, free: 2.551 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.944e-05/0.2167, allocations: 0 / 0.7854 GB, free: 2.551 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.395e-05/0.2168, allocations: 0 / 0.7854 GB, free: 2.551 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 4.979e-06/0.2168, allocations: 0 / 0.7854 GB, free: 2.551 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.217, allocations: 11.98 kB / 0.7854 GB, free: 2.539 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 4.47e-05/0.217, allocations: 4 kB / 0.7854 GB, free: 2.535 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.697e-05/0.2171, allocations: 4 kB / 0.7854 GB, free: 2.531 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 1.567e-05/0.2171, allocations: 0 / 0.7854 GB, free: 2.531 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 2.614e-05/0.2171, allocations: 7.984 kB / 0.7854 GB, free: 2.523 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.045e-05/0.2171, allocations: 3.938 kB / 0.7854 GB, free: 2.52 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.793e-05/0.2172, allocations: 11.98 kB / 0.7855 GB, free: 2.508 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.2172, allocations: 0 / 0.7855 GB, free: 2.508 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.013e-05/0.2173, allocations: 3.938 kB / 0.7855 GB, free: 2.504 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 8.6e-05/0.2174, allocations: 12 kB / 0.7855 GB, free: 2.492 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2174, allocations: 0 / 0.7855 GB, free: 2.492 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2174, allocations: 0 / 0.7855 GB, free: 2.492 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.2174, allocations: 4 kB / 0.7855 GB, free: 2.488 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003123/0.2177, allocations: 311.6 kB / 0.7858 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.2178, allocations: 12.03 kB / 0.7858 GB, free: 2.121 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.366e-05/0.2178, allocations: 0.9375 kB / 0.7858 GB, free: 2.121 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.2179, allocations: 168.4 kB / 0.7859 GB, free: 1.918 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.2179, allocations: 384 / 0.7859 GB, free: 1.918 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.779e-06/0.2179, allocations: 384 / 0.7859 GB, free: 1.918 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.218, allocations: 38.2 kB / 0.786 GB, free: 1.875 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.2181, allocations: 192 / 0.786 GB, free: 1.875 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.2181, allocations: 7.938 kB / 0.786 GB, free: 1.867 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.2181, allocations: 4 kB / 0.786 GB, free: 1.863 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.899e-05/0.2181, allocations: 3.938 kB / 0.786 GB, free: 1.859 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001799/0.2183, allocations: 153.7 kB / 0.7861 GB, free: 1.66 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 5.882e-05/0.2184, allocations: 18.61 kB / 0.7862 GB, free: 1.633 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.431e-05/0.2184, allocations: 8.922 kB / 0.7862 GB, free: 1.621 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002001/0.2186, allocations: 81.09 kB / 0.7862 GB, free: 1.523 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.2187, allocations: 42.56 kB / 0.7863 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=2): time 2.856e-06/0.2187, allocations: 0 / 0.7863 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2): time 0.0001726/0.2188, allocations: 49.5 kB / 0.7863 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.03e-05/0.2189, allocations: 51.41 kB / 0.7864 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.092e-05/0.219, allocations: 93.86 kB / 0.7865 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.219, allocations: 25.7 kB / 0.7865 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.585e-05/0.219, allocations: 80.14 kB / 0.7866 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.2191, allocations: 11.89 kB / 0.7866 GB, free: 1.129 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.201e-05/0.2191, allocations: 13.84 kB / 0.7866 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2193, allocations: 314.8 kB / 0.7869 GB, free: 0.793 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.657e-05/0.2193, allocations: 4 kB / 0.7869 GB, free: 0.7891 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.999e-06/0.2193, allocations: 3.984 kB / 0.7869 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.534e-05/0.2193, allocations: 12.86 kB / 0.7869 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2193, allocations: 0 / 0.7869 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.034e-05/0.2194, allocations: 41.64 kB / 0.787 GB, free: 0.7227 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2194, allocations: 8.094 kB / 0.787 GB, free: 0.7148 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.2194, allocations: 0 / 0.787 GB, free: 0.7148 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.2195, allocations: 3.938 kB / 0.787 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.776e-05/0.2195, allocations: 7.984 kB / 0.787 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.2195, allocations: 0 / 0.787 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.279e-05/0.2196, allocations: 0 / 0.787 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.2196, allocations: 4 kB / 0.787 GB, free: 0.6992 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.025e-05/0.2196, allocations: 109.8 kB / 0.7871 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-06/0.2196, allocations: 0 / 0.7871 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.305e-05/0.2197, allocations: 56.69 kB / 0.7871 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.2198, allocations: 0 / 0.7871 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2198, allocations: 0 / 0.7871 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2198, allocations: 0 / 0.7871 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.363e-05/0.2199, allocations: 153.7 kB / 0.7873 GB, free: 328 kB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.2199, allocations: 4 kB / 0.7873 GB, free: 324 kB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.217e-05/0.2199, allocations: 4 kB / 0.7873 GB, free: 320 kB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.2199, allocations: 0 / 0.7873 GB, free: 320 kB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.2199, allocations: 3.938 kB / 0.7873 GB, free: 316 kB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2199, allocations: 3.938 kB / 0.7873 GB, free: 312 kB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2199, allocations: 4.031 kB / 0.7873 GB, free: 308 kB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.885e-05/0.22, allocations: 61.12 kB / 0.7874 GB, free: 228 kB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.028e-05/0.2201, allocations: 81.11 kB / 0.7874 GB, free: 128 kB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.2201, allocations: 3.938 kB / 0.7874 GB, free: 124 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.089e-05/0.2201, allocations: 3.938 kB / 0.7874 GB, free: 120 kB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.034e-05/0.2201, allocations: 3.938 kB / 0.7875 GB, free: 116 kB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.2201, allocations: 4 kB / 0.7875 GB, free: 112 kB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.571e-05/0.2202, allocations: 79.31 kB / 0.7875 GB, free: 32 kB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.2202, allocations: 0 / 0.7875 GB, free: 32 kB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0001982/0.2204, allocations: 4 kB / 0.7875 GB, free: 28 kB / 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.3645/0.5849, allocations: 102.1 kB / 0.7876 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001051/0.585, allocations: 9.578 kB / 0.7876 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.585, allocations: 0 / 0.7876 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.667e-05/0.5851, allocations: 4.328 kB / 0.7876 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.5852, allocations: 3.688 kB / 0.7877 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001712/0.5854, allocations: 85.3 kB / 0.7877 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.869e-05/0.5855, allocations: 0.673 MB / 0.7884 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 1.323e-05/0.5855, allocations: 0 / 0.7884 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.42e-05/0.5855, allocations: 14.2 kB / 0.7884 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of SimCode: time 3.11e-07/0.5855, allocations: 0 / 0.7884 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of Templates: time 0.001996/0.5875, allocations: 321 kB / 0.7887 GB, free: 47.81 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)