Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9172/0.9172, allocations: 143.4 MB / 159.2 MB, free: 4.852 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 188.5 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 447.3 MB, free: 5.82 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001058, allocations: 111.1 kB / 0.517 GB, free: 3.68 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001839/0.001839, allocations: 283.1 kB / 0.5973 GB, free: 49.33 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 79.89 kB / 0.6885 GB, free: 3.805 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3601, allocations: 81.29 MB / 0.7679 GB, free: 27.63 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002223/0.3623, allocations: 1.579 MB / 0.7695 GB, free: 26.05 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002938/0.3627, allocations: 127.6 kB / 0.7696 GB, free: 25.93 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.433e-05/0.3627, allocations: 4 kB / 0.7696 GB, free: 25.93 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 3.077e-05/0.3627, allocations: 0 / 0.7696 GB, free: 25.93 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 5.195e-05/0.3628, allocations: 3.938 kB / 0.7696 GB, free: 25.92 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.363, allocations: 19.97 kB / 0.7696 GB, free: 25.9 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 6.564e-05/0.3631, allocations: 27.92 kB / 0.7696 GB, free: 25.88 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.918e-05/0.3632, allocations: 7.984 kB / 0.7696 GB, free: 25.87 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.288e-05/0.3632, allocations: 15.94 kB / 0.7697 GB, free: 25.85 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.397e-05/0.3633, allocations: 15.92 kB / 0.7697 GB, free: 25.84 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.3633, allocations: 0 / 0.7697 GB, free: 25.84 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.782e-05/0.3634, allocations: 12 kB / 0.7697 GB, free: 25.82 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.381e-05/0.3634, allocations: 11.97 kB / 0.7697 GB, free: 25.81 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.651e-05/0.3634, allocations: 11.94 kB / 0.7697 GB, free: 25.8 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.3635, allocations: 34.56 kB / 0.7697 GB, free: 25.77 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3635, allocations: 4 kB / 0.7697 GB, free: 25.77 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3635, allocations: 0 / 0.7697 GB, free: 25.77 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.3636, allocations: 0 / 0.7697 GB, free: 25.77 MB / 458.7 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.0004066/0.364, allocations: 339.5 kB / 0.7701 GB, free: 25.38 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.364, allocations: 8.031 kB / 0.7701 GB, free: 25.38 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.574e-05/0.3641, allocations: 8.938 kB / 0.7701 GB, free: 25.37 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.3642, allocations: 168.3 kB / 0.7702 GB, free: 25.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.3642, allocations: 384 / 0.7702 GB, free: 25.16 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.3642, allocations: 4.375 kB / 0.7703 GB, free: 25.16 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.3644, allocations: 54.23 kB / 0.7703 GB, free: 25.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3644, allocations: 4.125 kB / 0.7703 GB, free: 25.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.3644, allocations: 11.88 kB / 0.7703 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.3644, allocations: 0 / 0.7703 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.3646, allocations: 39.95 kB / 0.7704 GB, free: 25.05 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003083/0.3649, allocations: 272.9 kB / 0.7706 GB, free: 24.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.3652, allocations: 58.55 kB / 0.7707 GB, free: 24.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.026e-05/0.3653, allocations: 32.77 kB / 0.7707 GB, free: 24.63 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.95e-05/0.3654, allocations: 85.11 kB / 0.7708 GB, free: 24.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.3655, allocations: 30.56 kB / 0.7708 GB, free: 24.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3655, allocations: 0 / 0.7708 GB, free: 24.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003396/0.3658, allocations: 93.62 kB / 0.7709 GB, free: 24.39 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.86e-05/0.3658, allocations: 55.34 kB / 0.771 GB, free: 24.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.572e-05/0.3659, allocations: 105.8 kB / 0.7711 GB, free: 24.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.686e-06/0.3659, allocations: 25.7 kB / 0.7711 GB, free: 24.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.442e-05/0.3659, allocations: 84.14 kB / 0.7712 GB, free: 24.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.234e-05/0.366, allocations: 7.906 kB / 0.7712 GB, free: 24.09 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/0.366, allocations: 17.7 kB / 0.7712 GB, free: 24.06 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 3.74e-05/0.366, allocations: 318.8 kB / 0.7715 GB, free: 23.74 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.322e-05/0.3661, allocations: 19.98 kB / 0.7715 GB, free: 23.72 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.516e-05/0.3662, allocations: 19.97 kB / 0.7715 GB, free: 23.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.3664, allocations: 44.83 kB / 0.7716 GB, free: 23.66 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3664, allocations: 3.938 kB / 0.7716 GB, free: 23.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001845/0.3666, allocations: 74.11 kB / 0.7716 GB, free: 23.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.3666, allocations: 9.406 kB / 0.7717 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.3666, allocations: 0 / 0.7717 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.3666, allocations: 0 / 0.7717 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.484e-05/0.3667, allocations: 19.98 kB / 0.7717 GB, free: 23.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.3667, allocations: 3.938 kB / 0.7717 GB, free: 23.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.275e-05/0.3668, allocations: 11.89 kB / 0.7717 GB, free: 23.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.3668, allocations: 48 / 0.7717 GB, free: 23.53 MB / 458.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 (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.468e-05/0.3668, allocations: 117.8 kB / 0.7718 GB, free: 23.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.389e-05/0.3669, allocations: 4 kB / 0.7718 GB, free: 23.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002337/0.3671, allocations: 81.14 kB / 0.7719 GB, free: 23.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3671, allocations: 4 kB / 0.7719 GB, free: 23.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3671, allocations: 0 / 0.7719 GB, free: 23.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3671, allocations: 0 / 0.7719 GB, free: 23.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.3672, allocations: 161.6 kB / 0.772 GB, free: 23.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3672, allocations: 0 / 0.772 GB, free: 23.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.87e-05/0.3673, allocations: 11.98 kB / 0.7721 GB, free: 23.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3673, allocations: 0 / 0.7721 GB, free: 23.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.3673, allocations: 4 kB / 0.7721 GB, free: 23.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3673, allocations: 3.938 kB / 0.7721 GB, free: 23.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3674, allocations: 4 kB / 0.7721 GB, free: 23.08 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003993/0.3678, allocations: 0.7395 MB / 0.7728 GB, free: 22.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.662e-05/0.3678, allocations: 84.95 kB / 0.7729 GB, free: 22.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.3678, allocations: 3.938 kB / 0.7729 GB, free: 22.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.945e-05/0.3679, allocations: 11.98 kB / 0.7729 GB, free: 22.17 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.772e-05/0.3679, allocations: 11.94 kB / 0.7729 GB, free: 22.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.368, allocations: 3.984 kB / 0.7729 GB, free: 22.15 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.867e-05/0.368, allocations: 79.28 kB / 0.773 GB, free: 22.07 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.368, allocations: 0 / 0.773 GB, free: 22.07 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003207/0.3683, allocations: 8 kB / 0.773 GB, free: 22.07 MB / 458.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.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.0001116/0.3684, allocations: 99.78 kB / 0.7731 GB, free: 21.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002081/0.3686, allocations: 47.95 kB / 0.7731 GB, free: 21.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3686, allocations: 0 / 0.7731 GB, free: 21.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 9.067e-05/0.3687, allocations: 31.91 kB / 0.7732 GB, free: 21.88 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.369, allocations: 2.922 kB / 0.7732 GB, free: 21.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002664/0.3693, allocations: 226 kB / 0.7734 GB, free: 21.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.82e-05/0.3694, allocations: 0.6808 MB / 0.774 GB, free: 20.91 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 3.322e-05/0.3694, allocations: 4 kB / 0.774 GB, free: 20.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.067e-05/0.3695, allocations: 7.438 kB / 0.774 GB, free: 20.89 MB / 458.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3695, allocations: 3.938 kB / 0.774 GB, free: 20.89 MB / 458.7 MB Notification: Performance of Templates: time 0.002206/0.3717, allocations: 0.646 MB / 0.7747 GB, free: 20.25 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)