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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008533/0.0008533, allocations: 93.59 kB / 16.66 MB, free: 5.859 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.001042/0.001042, allocations: 176.7 kB / 17.57 MB, free: 5.543 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.325/1.325, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8103/0.8103, allocations: 115.5 MB / 408.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003171, allocations: 8 kB / 496.5 MB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3631, allocations: 77.53 MB / 0.5606 GB, free: 35.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001427/0.3645, allocations: 1.228 MB / 0.5618 GB, free: 34.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003345/0.3649, allocations: 122.8 kB / 0.5619 GB, free: 34.46 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.301e-05/0.3649, allocations: 0 / 0.5619 GB, free: 34.46 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.3649, allocations: 1.156 kB / 0.5619 GB, free: 34.46 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.485e-05/0.365, allocations: 3.938 kB / 0.5619 GB, free: 34.45 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001852/0.3652, allocations: 22.39 kB / 0.5619 GB, free: 34.44 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.865e-05/0.3653, allocations: 30.44 kB / 0.5619 GB, free: 34.43 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.627e-05/0.3653, allocations: 11.42 kB / 0.562 GB, free: 34.42 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.983e-05/0.3654, allocations: 6.359 kB / 0.562 GB, free: 34.42 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.995e-05/0.3655, allocations: 16.09 kB / 0.562 GB, free: 34.41 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.3655, allocations: 1.594 kB / 0.562 GB, free: 34.41 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.183e-05/0.3655, allocations: 9.641 kB / 0.562 GB, free: 34.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.361e-05/0.3655, allocations: 8.281 kB / 0.562 GB, free: 34.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.506e-05/0.3656, allocations: 38.53 kB / 0.562 GB, free: 34.37 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.608e-05/0.3657, allocations: 15.08 kB / 0.5621 GB, free: 34.37 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3657, allocations: 6.688 kB / 0.5621 GB, free: 34.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3657, allocations: 0 / 0.5621 GB, free: 34.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.3657, allocations: 0.5312 kB / 0.5621 GB, free: 34.36 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003812/0.3661, allocations: 338.3 kB / 0.5624 GB, free: 34.01 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3661, allocations: 13.31 kB / 0.5624 GB, free: 34.01 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.3662, allocations: 14.06 kB / 0.5624 GB, free: 34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.91e-05/0.3663, allocations: 168.3 kB / 0.5626 GB, free: 33.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.3663, allocations: 6.875 kB / 0.5626 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.3663, allocations: 1.906 kB / 0.5626 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.3665, allocations: 64.95 kB / 0.5626 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.3665, allocations: 4.125 kB / 0.5626 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.3665, allocations: 5.656 kB / 0.5626 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3665, allocations: 1.5 kB / 0.5626 GB, free: 33.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.3667, allocations: 57.2 kB / 0.5627 GB, free: 33.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003025/0.3671, allocations: 264.2 kB / 0.563 GB, free: 33.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.3674, allocations: 70.5 kB / 0.563 GB, free: 33.42 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3675, allocations: 31.28 kB / 0.5631 GB, free: 33.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.3676, allocations: 82.69 kB / 0.5631 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.3676, allocations: 34.25 kB / 0.5632 GB, free: 33.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3676, allocations: 0 / 0.5632 GB, free: 33.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003966/0.368, allocations: 115.5 kB / 0.5633 GB, free: 33.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.3681, allocations: 55.34 kB / 0.5633 GB, free: 33.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.126e-05/0.3681, allocations: 102.4 kB / 0.5634 GB, free: 33.06 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.438e-06/0.3681, allocations: 25.7 kB / 0.5634 GB, free: 33.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.873e-05/0.3682, allocations: 82.67 kB / 0.5635 GB, free: 32.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.3682, allocations: 9.312 kB / 0.5635 GB, free: 32.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.166e-05/0.3682, allocations: 13.72 kB / 0.5635 GB, free: 32.92 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.599e-05/0.3683, allocations: 317.4 kB / 0.5639 GB, free: 32.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.624e-05/0.3684, allocations: 27.8 kB / 0.5639 GB, free: 32.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.526e-05/0.3685, allocations: 23.7 kB / 0.5639 GB, free: 32.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.3687, allocations: 54.12 kB / 0.564 GB, free: 32.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.3687, allocations: 7.219 kB / 0.564 GB, free: 32.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002174/0.3689, allocations: 89.59 kB / 0.564 GB, free: 32.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.3689, allocations: 7.25 kB / 0.5641 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3689, allocations: 1.469 kB / 0.5641 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.3689, allocations: 2.188 kB / 0.5641 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.846e-05/0.369, allocations: 12 kB / 0.5641 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.369, allocations: 0 / 0.5641 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.921e-05/0.3691, allocations: 11.47 kB / 0.5641 GB, free: 32.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3691, allocations: 8.672 kB / 0.5641 GB, free: 32.54 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 (rea2Int.y,fac.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.47e-05/0.3692, allocations: 116.7 kB / 0.5642 GB, free: 32.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.3692, allocations: 5 kB / 0.5642 GB, free: 32.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002494/0.3695, allocations: 90.55 kB / 0.5643 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3695, allocations: 0 / 0.5643 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3695, allocations: 0 / 0.5643 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3695, allocations: 2.219 kB / 0.5643 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.3696, allocations: 171.4 kB / 0.5645 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3696, allocations: 0.9375 kB / 0.5645 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.619e-05/0.3697, allocations: 14.92 kB / 0.5645 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3697, allocations: 1.031 kB / 0.5645 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.3697, allocations: 0.75 kB / 0.5645 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.3697, allocations: 6.031 kB / 0.5645 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3697, allocations: 3.938 kB / 0.5645 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.37, allocations: 186.8 kB / 0.5647 GB, free: 32.01 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.644e-05/0.37, allocations: 81.84 kB / 0.5647 GB, free: 31.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.37, allocations: 1.812 kB / 0.5647 GB, free: 31.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.649e-05/0.3701, allocations: 9.641 kB / 0.5647 GB, free: 31.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.431e-05/0.3702, allocations: 10.73 kB / 0.5648 GB, free: 31.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.3702, allocations: 2.5 kB / 0.5648 GB, free: 31.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.154e-05/0.3702, allocations: 79.52 kB / 0.5648 GB, free: 31.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3702, allocations: 0.9375 kB / 0.5648 GB, free: 31.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002223/0.3705, allocations: 7.219 kB / 0.5648 GB, free: 31.84 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.y,rea2Int.y) * 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 (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.0001333/0.3706, allocations: 108.6 kB / 0.5649 GB, free: 31.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002395/0.3708, allocations: 53.64 kB / 0.565 GB, free: 31.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3709, allocations: 1.25 kB / 0.565 GB, free: 31.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.371, allocations: 30.59 kB / 0.565 GB, free: 31.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.3712, allocations: 6.953 kB / 0.565 GB, free: 31.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002529/0.3715, allocations: 157.8 kB / 0.5652 GB, free: 31.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.498e-05/0.3716, allocations: 0.6782 MB / 0.5658 GB, free: 30.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.602e-05/0.3716, allocations: 11.16 kB / 0.5659 GB, free: 30.87 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3716, allocations: 0 / 0.5659 GB, free: 30.87 MB / 446.1 MB Notification: Performance of Templates: time 0.002264/0.3739, allocations: 0.7256 MB / 0.5666 GB, free: 30.84 MB / 446.1 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)