Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 110.2 kB / 16.41 MB, free: 6.477 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.001313/0.001313, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.282/1.282, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002162/0.002162, allocations: 288.9 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.92/0.92, allocations: 169.2 MB / 0.499 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 95.84 kB / 0.6821 GB, free: 6.938 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.4215, allocations: 86.98 MB / 0.7671 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001719/0.4233, allocations: 0.5785 MB / 0.7677 GB, free: 3.344 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002757/0.4236, allocations: 59.77 kB / 0.7677 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.908e-05/0.4236, allocations: 0 / 0.7677 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.4236, allocations: 0 / 0.7677 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.382e-06/0.4237, allocations: 0 / 0.7677 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.424, allocations: 27.92 kB / 0.7677 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.689e-05/0.4241, allocations: 27.97 kB / 0.7678 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.4241, allocations: 0 / 0.7678 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.023e-05/0.4241, allocations: 11.98 kB / 0.7678 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.987e-05/0.4242, allocations: 15.98 kB / 0.7678 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.4242, allocations: 3.938 kB / 0.7678 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.308e-05/0.4243, allocations: 15.98 kB / 0.7678 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.852e-05/0.4243, allocations: 11.98 kB / 0.7678 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.281e-05/0.4244, allocations: 11.94 kB / 0.7678 GB, free: 3.16 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001009/0.4245, allocations: 35.89 kB / 0.7679 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4245, allocations: 4 kB / 0.7679 GB, free: 3.121 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.552e-06/0.4245, allocations: 0 / 0.7679 GB, free: 3.121 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.4245, allocations: 0 / 0.7679 GB, free: 3.121 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003603/0.4249, allocations: 335.2 kB / 0.7682 GB, free: 2.746 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.4249, allocations: 12.03 kB / 0.7682 GB, free: 2.734 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.834e-05/0.425, allocations: 8.844 kB / 0.7682 GB, free: 2.727 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.439e-05/0.4251, allocations: 160.4 kB / 0.7684 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.4251, allocations: 8.312 kB / 0.7684 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.644e-05/0.4251, allocations: 8.312 kB / 0.7684 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.4253, allocations: 74.09 kB / 0.7685 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.4253, allocations: 192 / 0.7685 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.4253, allocations: 7.938 kB / 0.7685 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.4253, allocations: 4 kB / 0.7685 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.4254, allocations: 95.88 kB / 0.7686 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001638/0.4256, allocations: 177.6 kB / 0.7687 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.4257, allocations: 74.48 kB / 0.7688 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.52e-05/0.4258, allocations: 28.84 kB / 0.7688 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003505/0.4261, allocations: 409.5 kB / 0.7692 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.4262, allocations: 30.56 kB / 0.7692 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.4262, allocations: 0 / 0.7692 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.000254/0.4264, allocations: 117.8 kB / 0.7694 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.4265, allocations: 55.41 kB / 0.7694 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.906e-05/0.4265, allocations: 93.86 kB / 0.7695 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.4265, allocations: 25.7 kB / 0.7695 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.854e-05/0.4266, allocations: 84.14 kB / 0.7696 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.739e-05/0.4266, allocations: 30.17 kB / 0.7696 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.4267, allocations: 33.7 kB / 0.7697 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.4268, allocations: 322.8 kB / 0.77 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.7e-05/0.4268, allocations: 15.98 kB / 0.77 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.25e-05/0.4268, allocations: 23.98 kB / 0.77 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.158e-05/0.4269, allocations: 60.77 kB / 0.7701 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.427, allocations: 0 / 0.7701 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001286/0.4271, allocations: 86.33 kB / 0.7701 GB, free: 488 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.4271, allocations: 8 kB / 0.7702 GB, free: 480 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4271, allocations: 7.938 kB / 0.7702 GB, free: 472 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.4271, allocations: 0 / 0.7702 GB, free: 472 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.4272, allocations: 23.92 kB / 0.7702 GB, free: 448 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4273, allocations: 0 / 0.7702 GB, free: 448 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.169e-05/0.4273, allocations: 3.906 kB / 0.7702 GB, free: 444 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.924e-06/0.4273, allocations: 4 kB / 0.7702 GB, free: 440 kB / 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.000134/0.4274, allocations: 125.8 kB / 0.7703 GB, free: 304 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.4275, allocations: 3.938 kB / 0.7703 GB, free: 300 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.4277, allocations: 133.5 kB / 0.7704 GB, free: 156 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4277, allocations: 0 / 0.7704 GB, free: 156 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.4277, allocations: 0 / 0.7704 GB, free: 156 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4277, allocations: 0 / 0.7704 GB, free: 156 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.4278, allocations: 189.4 kB / 0.7706 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4278, allocations: 0 / 0.7706 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.78e-05/0.4279, allocations: 19.98 kB / 0.7706 GB, free: 15.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.4279, allocations: 3.938 kB / 0.7706 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.4279, allocations: 0 / 0.7706 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.4279, allocations: 0 / 0.7706 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4279, allocations: 4 kB / 0.7707 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000144/0.4281, allocations: 125 kB / 0.7708 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.4281, allocations: 84.95 kB / 0.7709 GB, free: 15.65 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.4281, allocations: 7.984 kB / 0.7709 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.421e-05/0.4282, allocations: 4 kB / 0.7709 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.344e-05/0.4282, allocations: 7.984 kB / 0.7709 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.4282, allocations: 4 kB / 0.7709 GB, free: 15.62 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.537e-05/0.4282, allocations: 83.28 kB / 0.771 GB, free: 15.54 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4283, allocations: 0 / 0.771 GB, free: 15.54 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001904/0.4285, allocations: 8 kB / 0.771 GB, free: 15.54 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001603/0.4286, allocations: 115.2 kB / 0.7711 GB, free: 15.41 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001331/0.4288, allocations: 63.84 kB / 0.7711 GB, free: 15.35 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4288, allocations: 0 / 0.7711 GB, free: 15.35 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.384e-05/0.4288, allocations: 35.97 kB / 0.7712 GB, free: 15.32 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.429, allocations: 8 kB / 0.7712 GB, free: 15.31 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002539/0.4292, allocations: 170.6 kB / 0.7713 GB, free: 15.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002025/0.4294, allocations: 0.6846 MB / 0.772 GB, free: 14.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.9e-05/0.4295, allocations: 23.42 kB / 0.772 GB, free: 14.38 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4295, allocations: 0 / 0.772 GB, free: 14.38 MB / 0.545 GB Notification: Performance of Templates: time 0.002155/0.4316, allocations: 0.9564 MB / 0.773 GB, free: 13.43 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)