Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001028/0.001028, allocations: 114.6 kB / 16.42 MB, free: 6.5 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.001143/0.001143, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.24/1.24, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, allocations: 302 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9117/0.9117, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 103.8 kB / 0.6822 GB, free: 6.918 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3636, allocations: 86.97 MB / 0.7671 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001601/0.3652, allocations: 0.5785 MB / 0.7677 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002244/0.3655, allocations: 51.78 kB / 0.7677 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.476e-05/0.3655, allocations: 4 kB / 0.7677 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.059e-05/0.3655, allocations: 0 / 0.7677 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.13e-06/0.3655, allocations: 0 / 0.7677 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001838/0.3657, allocations: 11.98 kB / 0.7677 GB, free: 3.262 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.658e-05/0.3658, allocations: 4 kB / 0.7677 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.488e-05/0.3658, allocations: 7.984 kB / 0.7677 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.184e-05/0.3658, allocations: 0 / 0.7677 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 1.869e-05/0.3659, allocations: 3.938 kB / 0.7677 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.376e-06/0.3659, allocations: 0 / 0.7677 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.338e-05/0.3659, allocations: 8 kB / 0.7678 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.818e-06/0.3659, allocations: 8 kB / 0.7678 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.613e-05/0.366, allocations: 3.984 kB / 0.7678 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 7.065e-05/0.366, allocations: 7.984 kB / 0.7678 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.3661, allocations: 0 / 0.7678 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.786e-06/0.3661, allocations: 0 / 0.7678 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.3661, allocations: 3.938 kB / 0.7678 GB, free: 3.215 MB / 0.5294 GB 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.0002675/0.3663, allocations: 319.6 kB / 0.7681 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.3664, allocations: 8.031 kB / 0.7681 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.3664, allocations: 0.9375 kB / 0.7681 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.31e-05/0.3665, allocations: 168.3 kB / 0.7682 GB, free: 2.641 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.3665, allocations: 4.375 kB / 0.7683 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.3665, allocations: 4.312 kB / 0.7683 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.187e-05/0.3666, allocations: 34.25 kB / 0.7683 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.3666, allocations: 192 / 0.7683 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.3667, allocations: 7.938 kB / 0.7683 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3667, allocations: 0 / 0.7683 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.178e-05/0.3667, allocations: 8 kB / 0.7683 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001309/0.3668, allocations: 141.7 kB / 0.7684 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 4.471e-05/0.3669, allocations: 38.53 kB / 0.7685 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.513e-05/0.3669, allocations: 4.859 kB / 0.7685 GB, free: 2.336 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/0.3671, allocations: 81.17 kB / 0.7686 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.3671, allocations: 30.56 kB / 0.7686 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.3671, allocations: 0 / 0.7686 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001243/0.3672, allocations: 49.56 kB / 0.7686 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.3673, allocations: 59.53 kB / 0.7687 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.922e-05/0.3673, allocations: 89.86 kB / 0.7688 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.3673, allocations: 25.7 kB / 0.7688 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.047e-05/0.3673, allocations: 80.14 kB / 0.7689 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.3674, allocations: 11.56 kB / 0.7689 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.3674, allocations: 17.7 kB / 0.7689 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.3675, allocations: 310.8 kB / 0.7692 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.959e-06/0.3675, allocations: 0 / 0.7692 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.415e-06/0.3675, allocations: 8 kB / 0.7692 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.086e-05/0.3676, allocations: 12.86 kB / 0.7692 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3676, allocations: 0 / 0.7692 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.178e-05/0.3676, allocations: 45.62 kB / 0.7693 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.3677, allocations: 8 kB / 0.7693 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.646e-06/0.3677, allocations: 0 / 0.7693 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.3677, allocations: 3.938 kB / 0.7693 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.804e-05/0.3677, allocations: 4 kB / 0.7693 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.3677, allocations: 0 / 0.7693 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.313e-05/0.3678, allocations: 4.094 kB / 0.7693 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-06/0.3678, allocations: 0 / 0.7693 GB, free: 1.426 MB / 0.5294 GB 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 6.225e-05/0.3678, allocations: 108.2 kB / 0.7694 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-06/0.3678, allocations: 4 kB / 0.7694 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.312e-05/0.3679, allocations: 40.81 kB / 0.7694 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3679, allocations: 7.938 kB / 0.7694 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3679, allocations: 3.938 kB / 0.7694 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.368, allocations: 81.09 kB / 0.7695 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.088e-05/0.368, allocations: 4.031 kB / 0.7695 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.142e-05/0.368, allocations: 3.938 kB / 0.7695 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.434e-05/0.368, allocations: 11.92 kB / 0.7695 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001224/0.3682, allocations: 113 kB / 0.7696 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001025/0.3683, allocations: 210.8 kB / 0.7698 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.869e-05/0.3683, allocations: 7.922 kB / 0.7699 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 2.071e-05/0.3683, allocations: 79.34 kB / 0.7699 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of Backend: time 4.51e-07/0.3683, allocations: 4 kB / 0.7699 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003402/0.3687, allocations: 89.64 kB / 0.77 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of SimCode: time 0.0002775/0.369, allocations: 0.5292 MB / 0.7705 GB, free: 36 kB / 0.5294 GB Notification: Performance of Templates: time 0.002019/0.371, allocations: 362.3 kB / 0.7709 GB, free: 15.68 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)