Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.688/3.688, allocations: 251.1 MB / 266.7 MB, free: 11.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002194/0.002194, allocations: 175.5 kB / 326.2 MB, free: 2.852 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.089/4.089, allocations: 205.4 MB / 0.5772 GB, free: 20.77 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00182/0.00182, allocations: 98.89 kB / 0.6817 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007707/0.0007712, allocations: 15.88 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3446, allocations: 106.3 MB / 0.8995 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3528/0.6975, allocations: 130.8 MB / 1.027 GB, free: 14.51 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004393/0.698, allocations: 75.95 kB / 1.027 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002179/0.7002, allocations: 0.5291 MB / 1.028 GB, free: 13.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.986e-06/0.7003, allocations: 3.938 kB / 1.028 GB, free: 13.9 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.7003, allocations: 0 / 1.028 GB, free: 13.9 MB / 0.6823 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.0005169/0.7008, allocations: 321.7 kB / 1.028 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.268e-05/0.7009, allocations: 8.031 kB / 1.028 GB, free: 13.53 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.732e-05/0.701, allocations: 0.9375 kB / 1.028 GB, free: 13.53 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.7011, allocations: 160.4 kB / 1.028 GB, free: 13.33 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.7012, allocations: 4.375 kB / 1.028 GB, free: 13.33 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.7012, allocations: 4.375 kB / 1.028 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.7014, allocations: 34.25 kB / 1.028 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.7014, allocations: 4.125 kB / 1.028 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.7014, allocations: 3.938 kB / 1.028 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.7015, allocations: 0 / 1.028 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.776e-05/0.7015, allocations: 11.94 kB / 1.028 GB, free: 13.27 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002699/0.7018, allocations: 145.7 kB / 1.029 GB, free: 13.07 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.736e-05/0.7019, allocations: 26.59 kB / 1.029 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.408e-05/0.702, allocations: 12.92 kB / 1.029 GB, free: 13.02 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002538/0.7023, allocations: 85.09 kB / 1.029 GB, free: 12.92 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.7023, allocations: 30.56 kB / 1.029 GB, free: 12.88 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 2.725e-06/0.7023, allocations: 0 / 1.029 GB, free: 12.88 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0002353/0.7026, allocations: 49.48 kB / 1.029 GB, free: 12.83 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.7027, allocations: 51.41 kB / 1.029 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.116e-05/0.7028, allocations: 93.84 kB / 1.029 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.7028, allocations: 29.83 kB / 1.029 GB, free: 12.63 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.162e-05/0.7029, allocations: 84.14 kB / 1.029 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.7029, allocations: 4 kB / 1.029 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.703, allocations: 0 / 1.029 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002222/0.7032, allocations: 310.8 kB / 1.029 GB, free: 12.23 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.088e-05/0.7032, allocations: 0 / 1.029 GB, free: 12.23 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.448e-05/0.7033, allocations: 4 kB / 1.029 GB, free: 12.22 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.893e-05/0.7033, allocations: 4 kB / 1.029 GB, free: 12.22 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.7033, allocations: 4.062 kB / 1.029 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001589/0.7035, allocations: 45.62 kB / 1.029 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.7036, allocations: 4 kB / 1.029 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.7036, allocations: 0 / 1.029 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.7036, allocations: 3.938 kB / 1.029 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.7037, allocations: 4 kB / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.7038, allocations: 0 / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.42e-05/0.7038, allocations: 3.938 kB / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.7038, allocations: 0 / 1.029 GB, free: 12.15 MB / 0.6823 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,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.704, allocations: 113.9 kB / 1.029 GB, free: 12.03 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.704, allocations: 3.984 kB / 1.029 GB, free: 12.02 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.7042, allocations: 48.7 kB / 1.029 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.7042, allocations: 3.938 kB / 1.029 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.7043, allocations: 0 / 1.029 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.7043, allocations: 0 / 1.029 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.7045, allocations: 157.6 kB / 1.03 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.7045, allocations: 0 / 1.03 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.924e-05/0.7046, allocations: 0 / 1.03 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.7046, allocations: 4 kB / 1.03 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.7046, allocations: 7.969 kB / 1.03 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.7046, allocations: 0 / 1.03 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.7047, allocations: 3.984 kB / 1.03 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.7048, allocations: 57.14 kB / 1.03 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.235e-05/0.7049, allocations: 81.11 kB / 1.03 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.7049, allocations: 7.922 kB / 1.03 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.399e-05/0.705, allocations: 4 kB / 1.03 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.705, allocations: 4.031 kB / 1.03 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.7051, allocations: 3.938 kB / 1.03 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.524e-05/0.7051, allocations: 75.28 kB / 1.03 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of sort global known variables: time 5.51e-07/0.7052, allocations: 0 / 1.03 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004862/0.7056, allocations: 8 kB / 1.03 GB, free: 11.47 MB / 0.6823 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 (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.0002901/0.706, allocations: 111.2 kB / 1.03 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001206/0.7061, allocations: 8 kB / 1.03 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.7061, allocations: 4.062 kB / 1.03 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 3.121e-05/0.7062, allocations: 4 kB / 1.03 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.7065, allocations: 0 / 1.03 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004036/0.7069, allocations: 83 kB / 1.03 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.7074, allocations: 0.6731 MB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.171e-05/0.7074, allocations: 4 kB / 1.031 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.013e-05/0.7075, allocations: 7.438 kB / 1.031 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of SimCode: time 1.593e-06/0.7075, allocations: 0 / 1.031 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of Templates: time 0.004225/0.7117, allocations: 306.1 kB / 1.031 GB, free: 10.22 MB / 0.6823 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)