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.001141/0.001141, allocations: 113.9 kB / 16.37 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.001271/0.001272, allocations: 187 kB / 17.31 MB, free: 5.609 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.527/1.527, allocations: 205.1 MB / 223.2 MB, free: 12.26 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 2.04/2.04, allocations: 292.3 MB / 0.5496 GB, free: 17.61 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.001555/0.001555, allocations: 71.89 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2342, allocations: 114.6 MB / 0.7848 GB, free: 3.176 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002288/0.2365, allocations: 0.593 MB / 0.7854 GB, free: 2.578 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0002841/0.2368, allocations: 59.78 kB / 0.7854 GB, free: 2.52 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.948e-05/0.2369, allocations: 0 / 0.7854 GB, free: 2.52 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.354e-05/0.2369, allocations: 0 / 0.7854 GB, free: 2.52 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.2369, allocations: 0 / 0.7854 GB, free: 2.52 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.2371, allocations: 11.92 kB / 0.7854 GB, free: 2.508 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 5.058e-05/0.2372, allocations: 4 kB / 0.7854 GB, free: 2.504 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.438e-05/0.2373, allocations: 0 / 0.7854 GB, free: 2.504 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 1.619e-05/0.2373, allocations: 4 kB / 0.7855 GB, free: 2.5 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 2.478e-05/0.2373, allocations: 11.88 kB / 0.7855 GB, free: 2.488 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 9.878e-06/0.2373, allocations: 0 / 0.7855 GB, free: 2.488 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.737e-05/0.2374, allocations: 11.98 kB / 0.7855 GB, free: 2.477 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.062e-05/0.2375, allocations: 7.984 kB / 0.7855 GB, free: 2.469 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.09e-05/0.2375, allocations: 4 kB / 0.7855 GB, free: 2.465 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 8.112e-05/0.2376, allocations: 4 kB / 0.7855 GB, free: 2.461 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2376, allocations: 3.984 kB / 0.7855 GB, free: 2.457 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2376, allocations: 0 / 0.7855 GB, free: 2.457 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.2376, allocations: 4 kB / 0.7855 GB, free: 2.453 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.0003253/0.2379, allocations: 311.6 kB / 0.7858 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.238, allocations: 8.031 kB / 0.7858 GB, free: 2.09 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.131e-05/0.238, allocations: 8.875 kB / 0.7858 GB, free: 2.082 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.2381, allocations: 164.4 kB / 0.786 GB, free: 1.883 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.2382, allocations: 384 / 0.786 GB, free: 1.883 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.2382, allocations: 4.375 kB / 0.786 GB, free: 1.879 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.2383, allocations: 30.2 kB / 0.786 GB, free: 1.844 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.2383, allocations: 8.172 kB / 0.786 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.2383, allocations: 3.938 kB / 0.786 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.2383, allocations: 0 / 0.786 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.004e-05/0.2384, allocations: 11.98 kB / 0.786 GB, free: 1.82 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.2385, allocations: 145.7 kB / 0.7862 GB, free: 1.629 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 5.13e-05/0.2386, allocations: 22.61 kB / 0.7862 GB, free: 1.598 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.095e-05/0.2386, allocations: 8.922 kB / 0.7862 GB, free: 1.586 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001987/0.2388, allocations: 85.09 kB / 0.7863 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.2389, allocations: 34.5 kB / 0.7863 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.2389, allocations: 0 / 0.7863 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2): time 0.0001485/0.239, allocations: 45.72 kB / 0.7863 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.2391, allocations: 55.44 kB / 0.7864 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.752e-05/0.2391, allocations: 89.86 kB / 0.7865 GB, free: 1.227 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.2391, allocations: 29.7 kB / 0.7865 GB, free: 1.191 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.756e-05/0.2392, allocations: 80.14 kB / 0.7866 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.2392, allocations: 3.906 kB / 0.7866 GB, free: 1.105 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-05/0.2392, allocations: 17.72 kB / 0.7866 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.2394, allocations: 310.8 kB / 0.7869 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.129e-05/0.2394, allocations: 0 / 0.7869 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.103e-05/0.2394, allocations: 11.98 kB / 0.7869 GB, free: 0.7578 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.409e-05/0.2394, allocations: 16.8 kB / 0.7869 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2395, allocations: 0 / 0.7869 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.466e-05/0.2395, allocations: 37.7 kB / 0.787 GB, free: 0.6953 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.2395, allocations: 4 kB / 0.787 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2395, allocations: 0 / 0.787 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.2396, allocations: 7.938 kB / 0.787 GB, free: 0.6836 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.722e-05/0.2396, allocations: 7.922 kB / 0.787 GB, free: 0.6758 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.2396, allocations: 4.094 kB / 0.787 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.631e-05/0.2397, allocations: 4 kB / 0.787 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-06/0.2397, allocations: 0 / 0.787 GB, free: 0.668 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 7.973e-05/0.2398, allocations: 109.8 kB / 0.7871 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.066e-06/0.2398, allocations: 3.938 kB / 0.7871 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.2399, allocations: 52.69 kB / 0.7872 GB, free: 500 kB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2399, allocations: 0 / 0.7872 GB, free: 500 kB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2399, allocations: 0 / 0.7872 GB, free: 500 kB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.2399, allocations: 12.03 kB / 0.7872 GB, free: 488 kB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.24, allocations: 149.7 kB / 0.7873 GB, free: 288 kB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.24, allocations: 0 / 0.7873 GB, free: 288 kB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.513e-05/0.2401, allocations: 4 kB / 0.7873 GB, free: 284 kB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2401, allocations: 0 / 0.7873 GB, free: 284 kB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.2401, allocations: 3.938 kB / 0.7873 GB, free: 280 kB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.2401, allocations: 0 / 0.7873 GB, free: 280 kB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2401, allocations: 0 / 0.7873 GB, free: 280 kB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.358e-05/0.2402, allocations: 77.06 kB / 0.7874 GB, free: 184 kB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.043e-05/0.2402, allocations: 77.11 kB / 0.7875 GB, free: 88 kB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.2403, allocations: 3.938 kB / 0.7875 GB, free: 84 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.161e-05/0.2403, allocations: 0 / 0.7875 GB, free: 84 kB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.2403, allocations: 0 / 0.7875 GB, free: 84 kB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-06/0.2403, allocations: 4 kB / 0.7875 GB, free: 80 kB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.694e-05/0.2403, allocations: 75.28 kB / 0.7875 GB, free: 4 kB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2403, allocations: 0 / 0.7875 GB, free: 4 kB / 0.6544 GB Notification: Performance of remove unused functions: time 0.4113/0.6517, allocations: 5.719 kB / 0.7876 GB, free: 48.55 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,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.0002243/0.6519, allocations: 102.7 kB / 0.7877 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001341/0.6521, allocations: 8.531 kB / 0.7877 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.6521, allocations: 3.625 kB / 0.7877 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.086e-05/0.6521, allocations: 6.188 kB / 0.7877 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.6523, allocations: 5.781 kB / 0.7877 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002384/0.6526, allocations: 109.5 kB / 0.7878 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.6527, allocations: 0.6729 MB / 0.7884 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.748e-05/0.6527, allocations: 9.078 kB / 0.7884 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of SimCode: time 6.52e-07/0.6527, allocations: 0.5938 kB / 0.7884 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of Templates: time 0.001776/0.6545, allocations: 454.5 kB / 0.7889 GB, free: 47.64 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 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)