Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7076/0.7076, allocations: 127.3 MB / 139.8 MB, free: 15.45 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001248/0.001248, allocations: 180.8 kB / 169.7 MB, free: 1.742 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.757/1.757, allocations: 205.1 MB / 404.5 MB, free: 1.652 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009252/0.0009253, allocations: 83.44 kB / 481.8 MB, free: 4.305 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 2.938e-05/2.94e-05, allocations: 4 kB / 0.5532 GB, free: 54.82 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1358, allocations: 76.76 MB / 0.6282 GB, free: 10 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5406/0.6764, allocations: 101.8 MB / 0.7276 GB, free: 11.52 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.6768, allocations: 76.7 kB / 0.7277 GB, free: 11.47 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001162/0.6779, allocations: 0.528 MB / 0.7282 GB, free: 10.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.6779, allocations: 4 kB / 0.7282 GB, free: 10.98 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.678, allocations: 0 / 0.7282 GB, free: 10.98 MB / 490.7 MB 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.0002448/0.6782, allocations: 315 kB / 0.7285 GB, free: 10.63 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.6783, allocations: 8.031 kB / 0.7285 GB, free: 10.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.477e-05/0.6783, allocations: 3.953 kB / 0.7285 GB, free: 10.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.094e-05/0.6784, allocations: 163.1 kB / 0.7287 GB, free: 10.42 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.6784, allocations: 0 / 0.7287 GB, free: 10.42 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.6784, allocations: 7.938 kB / 0.7287 GB, free: 10.41 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.099e-05/0.6785, allocations: 29.14 kB / 0.7287 GB, free: 10.38 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.6785, allocations: 0 / 0.7287 GB, free: 10.38 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.6785, allocations: 4 kB / 0.7287 GB, free: 10.38 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.6785, allocations: 4 kB / 0.7287 GB, free: 10.37 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.633e-05/0.6786, allocations: 0 / 0.7287 GB, free: 10.37 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.6787, allocations: 156.8 kB / 0.7289 GB, free: 10.17 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.342e-05/0.6788, allocations: 22.55 kB / 0.7289 GB, free: 10.14 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.773e-05/0.6788, allocations: 20.23 kB / 0.7289 GB, free: 10.12 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001256/0.6789, allocations: 85.09 kB / 0.729 GB, free: 10.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.679, allocations: 38.55 kB / 0.729 GB, free: 9.973 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.679, allocations: 0 / 0.729 GB, free: 9.973 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001206/0.6791, allocations: 37.14 kB / 0.7291 GB, free: 9.934 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.6792, allocations: 51.41 kB / 0.7291 GB, free: 9.871 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.502e-05/0.6792, allocations: 85 kB / 0.7292 GB, free: 9.781 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.6792, allocations: 25.7 kB / 0.7292 GB, free: 9.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.467e-05/0.6793, allocations: 80.14 kB / 0.7293 GB, free: 9.668 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.6793, allocations: 0.625 kB / 0.7293 GB, free: 9.668 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-06/0.6793, allocations: 0 / 0.7293 GB, free: 9.668 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.6794, allocations: 330.4 kB / 0.7296 GB, free: 9.34 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-06/0.6794, allocations: 0 / 0.7296 GB, free: 9.34 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.097e-06/0.6795, allocations: 7.938 kB / 0.7296 GB, free: 9.332 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.894e-05/0.6795, allocations: 0 / 0.7296 GB, free: 9.332 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.6795, allocations: 0 / 0.7296 GB, free: 9.332 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.27e-05/0.6795, allocations: 33.7 kB / 0.7296 GB, free: 9.293 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.6796, allocations: 8 kB / 0.7296 GB, free: 9.285 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.6796, allocations: 0 / 0.7296 GB, free: 9.285 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.6796, allocations: 8.078 kB / 0.7297 GB, free: 9.277 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.571e-05/0.6797, allocations: 6.125 kB / 0.7297 GB, free: 9.273 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.6797, allocations: 0 / 0.7297 GB, free: 9.273 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.6797, allocations: 6.906 kB / 0.7297 GB, free: 9.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-06/0.6797, allocations: 0 / 0.7297 GB, free: 9.27 MB / 490.7 MB 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 () * 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 7.063e-05/0.6798, allocations: 104.9 kB / 0.7298 GB, free: 9.16 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.645e-06/0.6798, allocations: 4 kB / 0.7298 GB, free: 9.156 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.912e-05/0.6799, allocations: 44.31 kB / 0.7298 GB, free: 9.113 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.6799, allocations: 8.031 kB / 0.7298 GB, free: 9.105 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.6799, allocations: 0 / 0.7298 GB, free: 9.105 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.6799, allocations: 3.938 kB / 0.7298 GB, free: 9.102 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.475e-05/0.68, allocations: 149.6 kB / 0.73 GB, free: 8.906 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.68, allocations: 0 / 0.73 GB, free: 8.906 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.293e-05/0.68, allocations: 4 kB / 0.73 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.6801, allocations: 0 / 0.73 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.6801, allocations: 3.438 kB / 0.73 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.6801, allocations: 4 kB / 0.73 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6801, allocations: 0 / 0.73 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.865e-05/0.6802, allocations: 73.08 kB / 0.7301 GB, free: 8.812 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.907e-05/0.6802, allocations: 77.11 kB / 0.7301 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.538e-06/0.6802, allocations: 0 / 0.7301 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.6802, allocations: 0 / 0.7301 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-05/0.6803, allocations: 7.984 kB / 0.7301 GB, free: 8.711 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.6803, allocations: 4.438 kB / 0.7301 GB, free: 8.707 MB / 490.7 MB Notification: Performance of sorting global known variables: time 2.612e-05/0.6803, allocations: 75.28 kB / 0.7302 GB, free: 8.633 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6803, allocations: 0 / 0.7302 GB, free: 8.633 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001906/0.6805, allocations: 12.02 kB / 0.7302 GB, free: 8.621 MB / 490.7 MB 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 () * 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.0001504/0.6807, allocations: 110.2 kB / 0.7303 GB, free: 8.508 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 6.328e-05/0.6807, allocations: 8 kB / 0.7303 GB, free: 8.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.6808, allocations: 0 / 0.7303 GB, free: 8.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.448e-05/0.6808, allocations: 7.938 kB / 0.7303 GB, free: 8.492 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.109e-05/0.6809, allocations: 0 / 0.7303 GB, free: 8.492 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001551/0.681, allocations: 71.22 kB / 0.7304 GB, free: 8.406 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.6813, allocations: 0.6731 MB / 0.7311 GB, free: 7.707 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.601e-05/0.6813, allocations: 4.625 kB / 0.7311 GB, free: 7.703 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.696e-05/0.6813, allocations: 7.438 kB / 0.7311 GB, free: 7.695 MB / 490.7 MB Notification: Performance of SimCode: time 3.1e-07/0.6813, allocations: 0 / 0.7311 GB, free: 7.695 MB / 490.7 MB Notification: Performance of Templates: time 0.002158/0.6835, allocations: 320.4 kB / 0.7314 GB, free: 7.395 MB / 490.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)