Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.conf.json 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/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 181.6 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4804/0.4804, allocations: 91.99 MB / 108.5 MB, free: 13.07 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 223.2 MB / 354.3 MB, free: 12.2 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009835/0.0009834, allocations: 107.2 kB / 427.4 MB, free: 3.91 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003335, allocations: 8 kB / 0.4982 GB, free: 42.29 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1545, allocations: 72.32 MB / 0.5689 GB, free: 1.902 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5423/0.6968, allocations: 101.8 MB / 0.6683 GB, free: 2.652 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.6972, allocations: 67.97 kB / 0.6683 GB, free: 2.586 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002867/0.7001, allocations: 0.9538 MB / 0.6693 GB, free: 1.645 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.7001, allocations: 0 / 0.6693 GB, free: 1.645 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.525e-06/0.7001, allocations: 0 / 0.6693 GB, free: 1.645 MB / 458.7 MB 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.0004352/0.7005, allocations: 355.8 kB / 0.6696 GB, free: 1.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.7006, allocations: 8.031 kB / 0.6696 GB, free: 1.242 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.134e-05/0.7006, allocations: 7.953 kB / 0.6696 GB, free: 1.234 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.7008, allocations: 163 kB / 0.6698 GB, free: 1.035 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.7008, allocations: 4 kB / 0.6698 GB, free: 1.031 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.7008, allocations: 0 / 0.6698 GB, free: 1.031 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.701, allocations: 65.66 kB / 0.6699 GB, free: 0.9609 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.701, allocations: 4 kB / 0.6699 GB, free: 0.957 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.701, allocations: 0 / 0.6699 GB, free: 0.957 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.7011, allocations: 0 / 0.6699 GB, free: 0.957 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.7013, allocations: 55.91 kB / 0.6699 GB, free: 0.9023 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004666/0.7018, allocations: 284.8 kB / 0.6702 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.7022, allocations: 62.61 kB / 0.6702 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.7023, allocations: 81.19 kB / 0.6703 GB, free: 416 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.7023, allocations: 38.56 kB / 0.6704 GB, free: 368 kB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.7023, allocations: 0 / 0.6704 GB, free: 368 kB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004446/0.7028, allocations: 113.5 kB / 0.6705 GB, free: 248 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.7028, allocations: 55.41 kB / 0.6705 GB, free: 180 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.096e-05/0.7029, allocations: 96.94 kB / 0.6706 GB, free: 76 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.7029, allocations: 25.7 kB / 0.6706 GB, free: 44 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.62e-05/0.703, allocations: 84.14 kB / 0.6707 GB, free: 15.96 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.703, allocations: 7.891 kB / 0.6707 GB, free: 15.95 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-06/0.7031, allocations: 3.938 kB / 0.6707 GB, free: 15.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.7032, allocations: 314.8 kB / 0.671 GB, free: 15.63 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.162e-05/0.7033, allocations: 23.98 kB / 0.6711 GB, free: 15.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.357e-05/0.7034, allocations: 27.97 kB / 0.6711 GB, free: 15.58 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.7035, allocations: 27.98 kB / 0.6711 GB, free: 15.55 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.7035, allocations: 0 / 0.6711 GB, free: 15.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002381/0.7038, allocations: 85.5 kB / 0.6712 GB, free: 15.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.7038, allocations: 8 kB / 0.6712 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.7038, allocations: 0.5156 kB / 0.6712 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.7039, allocations: 3.984 kB / 0.6712 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.732e-05/0.7039, allocations: 15.62 kB / 0.6712 GB, free: 15.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.704, allocations: 3.953 kB / 0.6712 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.598e-05/0.704, allocations: 15.98 kB / 0.6712 GB, free: 15.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.704, allocations: 0 / 0.6712 GB, free: 15.42 MB / 474.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.y,fac.u) * 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 7.877e-05/0.7041, allocations: 109.8 kB / 0.6713 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.7042, allocations: 0 / 0.6713 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002772/0.7044, allocations: 101.1 kB / 0.6714 GB, free: 15.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.7045, allocations: 3.984 kB / 0.6714 GB, free: 15.19 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.7045, allocations: 0 / 0.6714 GB, free: 15.19 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.7045, allocations: 3.953 kB / 0.6714 GB, free: 15.19 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.7046, allocations: 161.6 kB / 0.6716 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.7046, allocations: 7.984 kB / 0.6716 GB, free: 14.97 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.394e-05/0.7047, allocations: 8 kB / 0.6716 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.7048, allocations: 4 kB / 0.6716 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.7048, allocations: 3.984 kB / 0.6716 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.7048, allocations: 0 / 0.6716 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.7048, allocations: 0 / 0.6716 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004455/0.7053, allocations: 183.5 kB / 0.6718 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.7053, allocations: 85.02 kB / 0.6719 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.7054, allocations: 3.984 kB / 0.6719 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.7055, allocations: 7.938 kB / 0.6719 GB, free: 14.65 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.308e-05/0.7056, allocations: 7.984 kB / 0.6719 GB, free: 14.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.7056, allocations: 4 kB / 0.6719 GB, free: 14.64 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.987e-05/0.7057, allocations: 83.28 kB / 0.672 GB, free: 14.55 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7057, allocations: 0 / 0.672 GB, free: 14.55 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002445/0.7059, allocations: 19.92 kB / 0.672 GB, free: 14.54 MB / 474.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.y,fac.u) * 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.0001785/0.7061, allocations: 107.1 kB / 0.6721 GB, free: 14.42 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002529/0.7064, allocations: 59.95 kB / 0.6722 GB, free: 14.36 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.7064, allocations: 3.938 kB / 0.6722 GB, free: 14.36 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.7065, allocations: 31.97 kB / 0.6722 GB, free: 14.33 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.7068, allocations: 4 kB / 0.6722 GB, free: 14.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003182/0.7071, allocations: 117.1 kB / 0.6723 GB, free: 14.18 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.7074, allocations: 0.6809 MB / 0.673 GB, free: 13.47 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 3.335e-05/0.7074, allocations: 0 / 0.673 GB, free: 13.47 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.895e-05/0.7075, allocations: 19.36 kB / 0.673 GB, free: 13.45 MB / 474.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7075, allocations: 0 / 0.673 GB, free: 13.45 MB / 474.7 MB Notification: Performance of Templates: time 0.00278/0.7102, allocations: 0.5814 MB / 0.6736 GB, free: 12.88 MB / 474.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)