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/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 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) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005219/0.005219, allocations: 101.1 kB / 15.88 MB, free: 6.312 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.001179/0.001179, allocations: 194.7 kB / 16.79 MB, free: 6.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7449/0.7449, allocations: 122.9 MB / 413.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 68.81 kB / 0.4904 GB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1545, allocations: 77.94 MB / 0.5665 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001768/0.1563, allocations: 0.6317 MB / 0.5671 GB, free: 80 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003578/0.1567, allocations: 47.86 kB / 0.5672 GB, free: 32 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.427e-05/0.1567, allocations: 0 / 0.5672 GB, free: 32 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.071e-05/0.1568, allocations: 0 / 0.5672 GB, free: 32 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.1568, allocations: 0 / 0.5672 GB, free: 32 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.157, allocations: 7.984 kB / 0.5672 GB, free: 24 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.734e-05/0.1571, allocations: 7.922 kB / 0.5672 GB, free: 16 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.268e-05/0.1571, allocations: 4 kB / 0.5672 GB, free: 12 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.046e-05/0.1572, allocations: 8 kB / 0.5672 GB, free: 4 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.114e-05/0.1572, allocations: 3.938 kB / 0.5672 GB, free: 0 / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.1572, allocations: 0 / 0.5672 GB, free: 0 / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.1573, allocations: 4.047 kB / 0.5672 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.308e-05/0.1574, allocations: 4 kB / 0.5672 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.053e-05/0.1574, allocations: 7.984 kB / 0.5672 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.1575, allocations: 11.94 kB / 0.5672 GB, free: 15.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.1575, allocations: 0 / 0.5672 GB, free: 15.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1575, allocations: 0 / 0.5672 GB, free: 15.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1575, allocations: 0 / 0.5672 GB, free: 15.97 MB / 446.1 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.0003887/0.1579, allocations: 319.6 kB / 0.5676 GB, free: 15.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.158, allocations: 15.97 kB / 0.5676 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.158, allocations: 0.9375 kB / 0.5676 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.1581, allocations: 164.3 kB / 0.5677 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.1582, allocations: 4.375 kB / 0.5677 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.1582, allocations: 384 / 0.5677 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001323/0.1583, allocations: 34.25 kB / 0.5678 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.1583, allocations: 192 / 0.5678 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.1584, allocations: 3.938 kB / 0.5678 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1584, allocations: 4 kB / 0.5678 GB, free: 15.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.229e-05/0.1584, allocations: 7.938 kB / 0.5678 GB, free: 15.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001862/0.1586, allocations: 153.7 kB / 0.5679 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.8e-05/0.1587, allocations: 26.58 kB / 0.5679 GB, free: 15.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.424e-05/0.1587, allocations: 4.859 kB / 0.568 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002215/0.159, allocations: 81.17 kB / 0.568 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.159, allocations: 38.55 kB / 0.5681 GB, free: 14.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.159, allocations: 0 / 0.5681 GB, free: 14.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001689/0.1592, allocations: 49.58 kB / 0.5681 GB, free: 14.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.1593, allocations: 51.41 kB / 0.5682 GB, free: 14.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.702e-05/0.1593, allocations: 93.77 kB / 0.5683 GB, free: 14.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.1593, allocations: 25.7 kB / 0.5683 GB, free: 14.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.497e-05/0.1594, allocations: 80.14 kB / 0.5684 GB, free: 14.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.1594, allocations: 0 / 0.5684 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.1594, allocations: 21.83 kB / 0.5684 GB, free: 14.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1596, allocations: 314.8 kB / 0.5687 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.518e-05/0.1596, allocations: 4 kB / 0.5687 GB, free: 14.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.065e-06/0.1596, allocations: 0 / 0.5687 GB, free: 14.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.751e-05/0.1597, allocations: 12.86 kB / 0.5687 GB, free: 14.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1597, allocations: 0 / 0.5687 GB, free: 14.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.563e-05/0.1597, allocations: 45.62 kB / 0.5687 GB, free: 14.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1598, allocations: 6.031 kB / 0.5687 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1598, allocations: 96 / 0.5687 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.1598, allocations: 7.938 kB / 0.5687 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.114e-05/0.1599, allocations: 4 kB / 0.5688 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1599, allocations: 0 / 0.5688 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.447e-05/0.1599, allocations: 0 / 0.5688 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.1599, allocations: 4 kB / 0.5688 GB, free: 14.18 MB / 446.1 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 (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 9.26e-05/0.16, allocations: 117.8 kB / 0.5689 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-06/0.16, allocations: 0 / 0.5689 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.1601, allocations: 48.98 kB / 0.5689 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1602, allocations: 4.031 kB / 0.5689 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1602, allocations: 0 / 0.5689 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1602, allocations: 3.984 kB / 0.5689 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.1603, allocations: 149.6 kB / 0.5691 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1603, allocations: 0 / 0.5691 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.06e-05/0.1603, allocations: 3.938 kB / 0.5691 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1604, allocations: 0 / 0.5691 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1604, allocations: 7.938 kB / 0.5691 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.1604, allocations: 3.984 kB / 0.5691 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.1604, allocations: 7.984 kB / 0.5691 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.991e-05/0.1605, allocations: 61.14 kB / 0.5691 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-05/0.1605, allocations: 85 kB / 0.5692 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.1606, allocations: 7.875 kB / 0.5692 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.269e-05/0.1606, allocations: 8 kB / 0.5692 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.1606, allocations: 0 / 0.5692 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.1606, allocations: 0 / 0.5692 GB, free: 13.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.221e-05/0.1607, allocations: 75.28 kB / 0.5693 GB, free: 13.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1607, allocations: 4.031 kB / 0.5693 GB, free: 13.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002184/0.1609, allocations: 4 kB / 0.5693 GB, free: 13.5 MB / 446.1 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 () * 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.0001697/0.1611, allocations: 103.2 kB / 0.5694 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.887e-05/0.1612, allocations: 8 kB / 0.5694 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1612, allocations: 0 / 0.5694 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.722e-05/0.1612, allocations: 8 kB / 0.5694 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.1613, allocations: 6.406 kB / 0.5694 GB, free: 13.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001856/0.1615, allocations: 90.12 kB / 0.5695 GB, free: 13.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.1618, allocations: 0.6731 MB / 0.5702 GB, free: 12.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.336e-05/0.1618, allocations: 0 / 0.5702 GB, free: 12.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.691e-05/0.1618, allocations: 15.44 kB / 0.5702 GB, free: 12.55 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1618, allocations: 0 / 0.5702 GB, free: 12.55 MB / 446.1 MB Notification: Performance of Templates: time 0.002423/0.1642, allocations: 312.9 kB / 0.5705 GB, free: 12.24 MB / 446.1 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)