Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 179.7 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.45/0.45, allocations: 90.81 MB / 104.5 MB, free: 9.793 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.215/1.215, allocations: 221.3 MB / 348.3 MB, free: 436 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007508/0.000751, allocations: 102.6 kB / 421.2 MB, free: 5.477 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.611e-05/2.614e-05, allocations: 4 kB / 0.4896 GB, free: 5.34 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3257, allocations: 72.31 MB / 0.5602 GB, free: 40.42 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.4398, allocations: 100.7 MB / 0.6586 GB, free: 3.543 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.4402, allocations: 80.47 kB / 0.6587 GB, free: 3.465 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001288/0.4415, allocations: 0.5203 MB / 0.6592 GB, free: 2.945 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4415, allocations: 4 kB / 0.6592 GB, free: 2.941 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.4415, allocations: 2.75 kB / 0.6592 GB, free: 2.941 MB / 474.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.0002927/0.4418, allocations: 316.6 kB / 0.6595 GB, free: 2.59 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.4419, allocations: 11.98 kB / 0.6595 GB, free: 2.578 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.121e-05/0.4419, allocations: 3.953 kB / 0.6595 GB, free: 2.574 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.442, allocations: 159.1 kB / 0.6597 GB, free: 2.379 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.4421, allocations: 0 / 0.6597 GB, free: 2.379 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.4421, allocations: 4.906 kB / 0.6597 GB, free: 2.375 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.4422, allocations: 31.25 kB / 0.6597 GB, free: 2.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.4422, allocations: 0 / 0.6597 GB, free: 2.34 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.4422, allocations: 4 kB / 0.6597 GB, free: 2.336 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.4422, allocations: 0.5625 kB / 0.6597 GB, free: 2.336 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.256e-05/0.4423, allocations: 7.953 kB / 0.6597 GB, free: 2.328 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.4424, allocations: 149.7 kB / 0.6599 GB, free: 2.133 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.038e-05/0.4425, allocations: 30.53 kB / 0.6599 GB, free: 2.094 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.999e-05/0.4425, allocations: 8.922 kB / 0.6599 GB, free: 2.082 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.4427, allocations: 81.11 kB / 0.66 GB, free: 1.984 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.4427, allocations: 35.53 kB / 0.66 GB, free: 1.941 MB / 474.7 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.4427, allocations: 4 kB / 0.66 GB, free: 1.938 MB / 474.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001352/0.4429, allocations: 41.69 kB / 0.6601 GB, free: 1.891 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.4429, allocations: 55.34 kB / 0.6601 GB, free: 1.824 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.982e-05/0.443, allocations: 88.91 kB / 0.6602 GB, free: 1.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.443, allocations: 25.7 kB / 0.6602 GB, free: 1.699 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.476e-05/0.443, allocations: 80.14 kB / 0.6603 GB, free: 1.617 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.4431, allocations: 0 / 0.6603 GB, free: 1.617 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-06/0.4431, allocations: 0 / 0.6603 GB, free: 1.617 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4432, allocations: 318.8 kB / 0.6606 GB, free: 1.297 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.087e-06/0.4432, allocations: 4.031 kB / 0.6606 GB, free: 1.293 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.897e-06/0.4432, allocations: 8.938 kB / 0.6606 GB, free: 1.285 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.748e-05/0.4432, allocations: 0 / 0.6606 GB, free: 1.285 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4432, allocations: 0 / 0.6606 GB, free: 1.285 MB / 474.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.724e-05/0.4433, allocations: 37.69 kB / 0.6607 GB, free: 1.242 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.4433, allocations: 9.094 kB / 0.6607 GB, free: 1.234 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.4433, allocations: 0 / 0.6607 GB, free: 1.234 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.4434, allocations: 3.984 kB / 0.6607 GB, free: 1.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.673e-05/0.4434, allocations: 4.094 kB / 0.6607 GB, free: 1.227 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.4434, allocations: 7.938 kB / 0.6607 GB, free: 1.219 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.298e-05/0.4435, allocations: 0 / 0.6607 GB, free: 1.219 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.4435, allocations: 2.531 kB / 0.6607 GB, free: 1.219 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,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.266e-05/0.4435, allocations: 114.6 kB / 0.6608 GB, free: 1.102 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.644e-06/0.4436, allocations: 4 kB / 0.6608 GB, free: 1.098 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.044e-05/0.4437, allocations: 32.83 kB / 0.6608 GB, free: 1.059 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.4437, allocations: 4 kB / 0.6608 GB, free: 1.055 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4437, allocations: 0 / 0.6608 GB, free: 1.055 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4437, allocations: 8.016 kB / 0.6608 GB, free: 1.047 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.4438, allocations: 153.6 kB / 0.661 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4438, allocations: 0.75 kB / 0.661 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.191e-05/0.4438, allocations: 4 kB / 0.661 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4438, allocations: 0 / 0.661 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.4438, allocations: 0 / 0.661 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.4439, allocations: 7.984 kB / 0.661 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4439, allocations: 5.812 kB / 0.661 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.88e-05/0.4439, allocations: 69 kB / 0.6611 GB, free: 0.7461 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.444, allocations: 77.11 kB / 0.6611 GB, free: 0.6523 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.4441, allocations: 3.984 kB / 0.6611 GB, free: 0.6484 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.09e-05/0.4441, allocations: 0 / 0.6611 GB, free: 0.6484 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.628e-05/0.4441, allocations: 4 kB / 0.6612 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.4441, allocations: 0 / 0.6612 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.004e-05/0.4441, allocations: 75.28 kB / 0.6612 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4442, allocations: 0 / 0.6612 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0001896/0.4443, allocations: 8 kB / 0.6612 GB, free: 0.5625 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,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.0001533/0.4445, allocations: 115.3 kB / 0.6613 GB, free: 452 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 6.13e-05/0.4446, allocations: 11.94 kB / 0.6614 GB, free: 440 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4446, allocations: 0 / 0.6614 GB, free: 440 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 1.322e-05/0.4446, allocations: 4 kB / 0.6614 GB, free: 436 kB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.632e-05/0.4447, allocations: 4.984 kB / 0.6614 GB, free: 432 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001505/0.4448, allocations: 64.86 kB / 0.6614 GB, free: 344 kB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.4451, allocations: 0.6772 MB / 0.6621 GB, free: 15.63 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.337e-05/0.4451, allocations: 4 kB / 0.6621 GB, free: 15.63 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.288e-05/0.4451, allocations: 7.438 kB / 0.6621 GB, free: 15.62 MB / 490.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4451, allocations: 0 / 0.6621 GB, free: 15.62 MB / 490.7 MB Notification: Performance of Templates: time 0.001831/0.4469, allocations: 306.5 kB / 0.6624 GB, free: 15.35 MB / 490.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)