Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 106.6 kB / 16.41 MB, free: 6.445 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.0012/0.0012, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.251/1.251, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002096/0.002096, allocations: 282 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8835/0.8835, allocations: 169.2 MB / 0.499 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 103.8 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.3869, allocations: 86.98 MB / 0.7671 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002463/0.3894, allocations: 1.525 MB / 0.7685 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003555/0.3897, allocations: 140.4 kB / 0.7687 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.258e-05/0.3898, allocations: 4 kB / 0.7687 GB, free: 2.277 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.915e-05/0.3898, allocations: 3.938 kB / 0.7687 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.058e-05/0.3899, allocations: 3.938 kB / 0.7687 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.3902, allocations: 27.91 kB / 0.7687 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.973e-05/0.3903, allocations: 39.91 kB / 0.7688 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.17e-05/0.3904, allocations: 12 kB / 0.7688 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.077e-05/0.3904, allocations: 15.92 kB / 0.7688 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.085e-05/0.3904, allocations: 23.92 kB / 0.7688 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.3905, allocations: 4 kB / 0.7688 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.028e-05/0.3905, allocations: 15.98 kB / 0.7688 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.629e-05/0.3906, allocations: 19.91 kB / 0.7688 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.858e-05/0.3906, allocations: 11.88 kB / 0.7688 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.3907, allocations: 55.52 kB / 0.7689 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3907, allocations: 0 / 0.7689 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3907, allocations: 4 kB / 0.7689 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.207e-06/0.3907, allocations: 0 / 0.7689 GB, free: 2.047 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004198/0.3912, allocations: 343.5 kB / 0.7692 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3912, allocations: 8.031 kB / 0.7692 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.678e-05/0.3913, allocations: 4.938 kB / 0.7692 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.3914, allocations: 170.8 kB / 0.7694 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.3914, allocations: 4.375 kB / 0.7694 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.3914, allocations: 4.375 kB / 0.7694 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.3916, allocations: 66.17 kB / 0.7695 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3916, allocations: 192 / 0.7695 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3916, allocations: 7.938 kB / 0.7695 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.3916, allocations: 0 / 0.7695 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.3918, allocations: 39.95 kB / 0.7695 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003613/0.3922, allocations: 284.7 kB / 0.7698 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.3925, allocations: 62.47 kB / 0.7699 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.154e-05/0.3926, allocations: 24.91 kB / 0.7699 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002561/0.3929, allocations: 401.5 kB / 0.7703 GB, free: 420 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.3929, allocations: 38.5 kB / 0.7703 GB, free: 372 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3929, allocations: 4 kB / 0.7703 GB, free: 368 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003662/0.3933, allocations: 93.56 kB / 0.7704 GB, free: 268 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.3933, allocations: 51.41 kB / 0.7704 GB, free: 204 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.552e-05/0.3934, allocations: 117.8 kB / 0.7706 GB, free: 76 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.3935, allocations: 25.7 kB / 0.7706 GB, free: 44 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.311e-05/0.3935, allocations: 84.14 kB / 0.7707 GB, free: 15.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.3935, allocations: 19.89 kB / 0.7707 GB, free: 15.94 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.683e-05/0.3936, allocations: 13.72 kB / 0.7707 GB, free: 15.92 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.3937, allocations: 322.8 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.226e-05/0.3938, allocations: 19.97 kB / 0.771 GB, free: 15.57 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.969e-05/0.3939, allocations: 15.98 kB / 0.771 GB, free: 15.56 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.394, allocations: 48.81 kB / 0.7711 GB, free: 15.51 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.394, allocations: 4 kB / 0.7711 GB, free: 15.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002822/0.3943, allocations: 77.5 kB / 0.7712 GB, free: 15.42 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3944, allocations: 8 kB / 0.7712 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3944, allocations: 0 / 0.7712 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3944, allocations: 0 / 0.7712 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.1e-05/0.3945, allocations: 11.98 kB / 0.7712 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3945, allocations: 0 / 0.7712 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.947e-05/0.3946, allocations: 7.984 kB / 0.7712 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.3946, allocations: 7.938 kB / 0.7712 GB, free: 15.39 MB / 0.545 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 (falFac.y,rea2Int.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 7.829e-05/0.3946, allocations: 117.8 kB / 0.7713 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.3947, allocations: 0 / 0.7713 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.395, allocations: 85.48 kB / 0.7714 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.395, allocations: 0 / 0.7714 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.395, allocations: 0 / 0.7714 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.395, allocations: 7.984 kB / 0.7714 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.3952, allocations: 173.6 kB / 0.7716 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3952, allocations: 0 / 0.7716 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.418e-05/0.3953, allocations: 11.98 kB / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.3953, allocations: 0 / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.3953, allocations: 4 kB / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3953, allocations: 0 / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3953, allocations: 3.938 kB / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002644/0.3956, allocations: 179.7 kB / 0.7718 GB, free: 14.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.3956, allocations: 81.09 kB / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.3957, allocations: 0 / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.491e-05/0.3957, allocations: 4 kB / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.3958, allocations: 12.02 kB / 0.7718 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.3958, allocations: 3.938 kB / 0.7718 GB, free: 14.61 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.897e-05/0.3959, allocations: 91.27 kB / 0.7719 GB, free: 14.52 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3959, allocations: 0 / 0.7719 GB, free: 14.52 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002366/0.3961, allocations: 20 kB / 0.772 GB, free: 14.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,falFac.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.0001566/0.3963, allocations: 99.25 kB / 0.772 GB, free: 14.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.3965, allocations: 43.95 kB / 0.7721 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3965, allocations: 0 / 0.7721 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.606e-05/0.3966, allocations: 23.97 kB / 0.7721 GB, free: 14.33 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.3969, allocations: 11.94 kB / 0.7721 GB, free: 14.32 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003451/0.3973, allocations: 152.9 kB / 0.7723 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.3975, allocations: 0.6807 MB / 0.7729 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.238e-05/0.3976, allocations: 15.42 kB / 0.7729 GB, free: 13.42 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.3976, allocations: 0 / 0.7729 GB, free: 13.42 MB / 0.545 GB Notification: Performance of Templates: time 0.002385/0.4, allocations: 0.7995 MB / 0.7737 GB, free: 12.62 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)