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.001136/0.001136, allocations: 86.81 kB / 16.66 MB, free: 5.836 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.00142/0.00142, allocations: 175.1 kB / 17.57 MB, free: 5.508 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.335/1.335, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7357/0.7357, allocations: 115.5 MB / 408.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003808/0.0003808, allocations: 12 kB / 496.5 MB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.37, allocations: 77.52 MB / 0.5606 GB, free: 36.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0007827/0.3709, allocations: 314 kB / 0.5609 GB, free: 36.1 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002708/0.3712, allocations: 48.27 kB / 0.5609 GB, free: 36.07 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.057e-05/0.3712, allocations: 3.938 kB / 0.5609 GB, free: 36.07 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.3712, allocations: 2.125 kB / 0.5609 GB, free: 36.07 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.16e-06/0.3712, allocations: 0 / 0.5609 GB, free: 36.07 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001798/0.3714, allocations: 4.516 kB / 0.5609 GB, free: 36.07 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.618e-05/0.3715, allocations: 7.844 kB / 0.561 GB, free: 36.06 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.163e-05/0.3715, allocations: 3.375 kB / 0.561 GB, free: 36.06 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.317e-05/0.3715, allocations: 0 / 0.561 GB, free: 36.06 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.43e-05/0.3715, allocations: 6.078 kB / 0.561 GB, free: 36.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.997e-06/0.3716, allocations: 3.938 kB / 0.561 GB, free: 36.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.174e-05/0.3716, allocations: 5.266 kB / 0.561 GB, free: 36.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.968e-06/0.3716, allocations: 5.906 kB / 0.561 GB, free: 36.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.445e-05/0.3717, allocations: 31.61 kB / 0.561 GB, free: 36.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 5.748e-05/0.3717, allocations: 8.344 kB / 0.561 GB, free: 36.01 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3717, allocations: 0.75 kB / 0.561 GB, free: 36.01 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3718, allocations: 1.5 kB / 0.561 GB, free: 36.01 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.3718, allocations: 0 / 0.561 GB, free: 36.01 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.0001946/0.372, allocations: 310.1 kB / 0.5613 GB, free: 35.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.372, allocations: 14.66 kB / 0.5613 GB, free: 35.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.398e-05/0.372, allocations: 0.9375 kB / 0.5613 GB, free: 35.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.39e-05/0.3721, allocations: 163.2 kB / 0.5615 GB, free: 35.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.3721, allocations: 384 / 0.5615 GB, free: 35.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.3721, allocations: 2.219 kB / 0.5615 GB, free: 35.46 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.934e-05/0.3722, allocations: 43.52 kB / 0.5615 GB, free: 35.42 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.3722, allocations: 1.5 kB / 0.5615 GB, free: 35.42 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-06/0.3723, allocations: 4.594 kB / 0.5615 GB, free: 35.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3723, allocations: 1.438 kB / 0.5615 GB, free: 35.42 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.99e-05/0.3723, allocations: 5.5 kB / 0.5615 GB, free: 35.42 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001018/0.3724, allocations: 148.7 kB / 0.5617 GB, free: 35.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.121e-05/0.3725, allocations: 24.61 kB / 0.5617 GB, free: 35.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.572e-05/0.3725, allocations: 6.859 kB / 0.5617 GB, free: 35.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.3726, allocations: 90.27 kB / 0.5618 GB, free: 35.09 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.618e-05/0.3727, allocations: 31.27 kB / 0.5618 GB, free: 35.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.3727, allocations: 2.312 kB / 0.5618 GB, free: 35.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001163/0.3728, allocations: 40.31 kB / 0.5619 GB, free: 35.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.2e-05/0.3728, allocations: 58.5 kB / 0.5619 GB, free: 34.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.756e-05/0.3728, allocations: 90.42 kB / 0.562 GB, free: 34.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-06/0.3729, allocations: 29.64 kB / 0.562 GB, free: 34.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.121e-05/0.3729, allocations: 82.11 kB / 0.5621 GB, free: 34.74 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.55e-05/0.3729, allocations: 5.812 kB / 0.5621 GB, free: 34.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/0.3729, allocations: 11.58 kB / 0.5621 GB, free: 34.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.156e-05/0.373, allocations: 312.9 kB / 0.5624 GB, free: 34.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-06/0.373, allocations: 5.094 kB / 0.5624 GB, free: 34.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.716e-06/0.373, allocations: 8.078 kB / 0.5624 GB, free: 34.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.83e-05/0.373, allocations: 11.42 kB / 0.5625 GB, free: 34.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.373, allocations: 0 / 0.5625 GB, free: 34.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.053e-05/0.3731, allocations: 40.86 kB / 0.5625 GB, free: 34.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.3731, allocations: 5.625 kB / 0.5625 GB, free: 34.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.3731, allocations: 5.406 kB / 0.5625 GB, free: 34.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.3731, allocations: 5.375 kB / 0.5625 GB, free: 34.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.971e-05/0.3732, allocations: 2.812 kB / 0.5625 GB, free: 34.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.3732, allocations: 6.062 kB / 0.5625 GB, free: 34.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.351e-05/0.3732, allocations: 0.8125 kB / 0.5625 GB, free: 34.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.3732, allocations: 1.094 kB / 0.5625 GB, free: 34.34 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 4.291e-05/0.3733, allocations: 113.1 kB / 0.5626 GB, free: 34.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-06/0.3733, allocations: 2.281 kB / 0.5626 GB, free: 34.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.219e-05/0.3734, allocations: 51.5 kB / 0.5627 GB, free: 34.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3734, allocations: 0 / 0.5627 GB, free: 34.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3734, allocations: 1.984 kB / 0.5627 GB, free: 34.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.3734, allocations: 0 / 0.5627 GB, free: 34.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.606e-05/0.3735, allocations: 154.7 kB / 0.5628 GB, free: 33.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3735, allocations: 0 / 0.5628 GB, free: 33.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.139e-05/0.3735, allocations: 3.359 kB / 0.5628 GB, free: 33.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3735, allocations: 2 kB / 0.5628 GB, free: 33.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.3735, allocations: 4.594 kB / 0.5628 GB, free: 33.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3735, allocations: 0.5625 kB / 0.5628 GB, free: 33.99 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3735, allocations: 2.438 kB / 0.5628 GB, free: 33.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.081e-05/0.3736, allocations: 65.7 kB / 0.5629 GB, free: 33.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.821e-05/0.3736, allocations: 79.56 kB / 0.563 GB, free: 33.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.3736, allocations: 3.938 kB / 0.563 GB, free: 33.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/0.3736, allocations: 3.188 kB / 0.563 GB, free: 33.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.305e-05/0.3737, allocations: 1.875 kB / 0.563 GB, free: 33.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-06/0.3737, allocations: 1.438 kB / 0.563 GB, free: 33.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.322e-05/0.3737, allocations: 80.53 kB / 0.5631 GB, free: 33.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3737, allocations: 0 / 0.5631 GB, free: 33.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001823/0.3739, allocations: 4.938 kB / 0.5631 GB, free: 33.74 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.0001276/0.374, allocations: 101.8 kB / 0.5632 GB, free: 33.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.736e-05/0.3741, allocations: 14.12 kB / 0.5632 GB, free: 33.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3741, allocations: 0 / 0.5632 GB, free: 33.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.035e-05/0.3741, allocations: 9.562 kB / 0.5632 GB, free: 33.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.3743, allocations: 3.094 kB / 0.5632 GB, free: 33.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001535/0.3744, allocations: 107.1 kB / 0.5633 GB, free: 33.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.77e-05/0.3745, allocations: 0.673 MB / 0.564 GB, free: 32.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.416e-05/0.3745, allocations: 9.641 kB / 0.564 GB, free: 32.82 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3746, allocations: 0.5938 kB / 0.564 GB, free: 32.82 MB / 446.1 MB Notification: Performance of Templates: time 0.001823/0.3764, allocations: 451.4 kB / 0.5644 GB, free: 32.8 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)