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.004595/0.004595, allocations: 102 kB / 15.73 MB, free: 6.039 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.001106/0.001106, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.304/1.304, allocations: 222.9 MB / 240.4 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.002143/0.002143, allocations: 292.7 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9182/0.9182, allocations: 169.2 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 95.86 kB / 0.6815 GB, free: 6.898 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4562/0.4579, allocations: 86.98 MB / 0.7664 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.00178/0.4597, allocations: 0.5704 MB / 0.767 GB, free: 3.301 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002858/0.46, allocations: 63.77 kB / 0.767 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.926e-05/0.46, allocations: 0 / 0.767 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.023e-05/0.4601, allocations: 3.938 kB / 0.767 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.082e-06/0.4601, allocations: 0 / 0.767 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.4604, allocations: 19.98 kB / 0.7671 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.747e-05/0.4605, allocations: 31.97 kB / 0.7671 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.402e-05/0.4605, allocations: 0 / 0.7671 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.994e-05/0.4606, allocations: 11.98 kB / 0.7671 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.476e-05/0.4606, allocations: 15.92 kB / 0.7671 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.471e-05/0.4606, allocations: 4 kB / 0.7671 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.135e-05/0.4607, allocations: 15.98 kB / 0.7671 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.799e-05/0.4608, allocations: 11.98 kB / 0.7672 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.098e-05/0.4608, allocations: 11.94 kB / 0.7672 GB, free: 3.113 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.4609, allocations: 35.89 kB / 0.7672 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.4609, allocations: 3.938 kB / 0.7672 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.494e-06/0.4609, allocations: 0 / 0.7672 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.4609, allocations: 0 / 0.7672 GB, free: 3.074 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.0003479/0.4613, allocations: 343.2 kB / 0.7675 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.4613, allocations: 8.031 kB / 0.7675 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.552e-05/0.4614, allocations: 8.844 kB / 0.7675 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.4615, allocations: 164.4 kB / 0.7677 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.4615, allocations: 384 / 0.7677 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.4615, allocations: 4.375 kB / 0.7677 GB, free: 2.473 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001421/0.4616, allocations: 70.16 kB / 0.7678 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.4617, allocations: 192 / 0.7678 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.4617, allocations: 11.94 kB / 0.7678 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.4617, allocations: 0 / 0.7678 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.4618, allocations: 103.8 kB / 0.7679 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000227/0.4621, allocations: 173.6 kB / 0.7681 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.4622, allocations: 78.48 kB / 0.7681 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.707e-05/0.4622, allocations: 28.83 kB / 0.7682 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004053/0.4627, allocations: 405.5 kB / 0.7685 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.4627, allocations: 34.56 kB / 0.7686 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.4627, allocations: 0 / 0.7686 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.0002747/0.463, allocations: 125.7 kB / 0.7687 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.463, allocations: 51.41 kB / 0.7687 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.215e-05/0.4631, allocations: 93.86 kB / 0.7688 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.4631, allocations: 33.7 kB / 0.7689 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.621e-05/0.4631, allocations: 80.14 kB / 0.7689 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.324e-05/0.4632, allocations: 26.17 kB / 0.769 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.163e-05/0.4632, allocations: 29.7 kB / 0.769 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.4633, allocations: 318.8 kB / 0.7693 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.54e-05/0.4634, allocations: 19.98 kB / 0.7693 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.231e-05/0.4634, allocations: 19.98 kB / 0.7693 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.4635, allocations: 69.36 kB / 0.7694 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4635, allocations: 0 / 0.7694 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001258/0.4637, allocations: 93.61 kB / 0.7695 GB, free: 428 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.4637, allocations: 6.344 kB / 0.7695 GB, free: 424 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.4637, allocations: 3.938 kB / 0.7695 GB, free: 420 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.4637, allocations: 0 / 0.7695 GB, free: 420 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-05/0.4638, allocations: 19.98 kB / 0.7695 GB, free: 400 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.4638, allocations: 0 / 0.7695 GB, free: 400 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.076e-05/0.4639, allocations: 7.906 kB / 0.7695 GB, free: 392 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.4639, allocations: 4 kB / 0.7695 GB, free: 388 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.0001211/0.464, allocations: 136.1 kB / 0.7697 GB, free: 244 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.169e-05/0.464, allocations: 4 kB / 0.7697 GB, free: 240 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000219/0.4642, allocations: 117.5 kB / 0.7698 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4642, allocations: 0 / 0.7698 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.4643, allocations: 4 kB / 0.7698 GB, free: 108 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4643, allocations: 0 / 0.7698 GB, free: 108 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.4644, allocations: 181.5 kB / 0.77 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.4644, allocations: 0 / 0.77 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.586e-05/0.4645, allocations: 27.92 kB / 0.77 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.4645, allocations: 3.938 kB / 0.77 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.4645, allocations: 0 / 0.77 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4645, allocations: 4 kB / 0.77 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4645, allocations: 0 / 0.77 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.4647, allocations: 121 kB / 0.7701 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/0.4647, allocations: 88.95 kB / 0.7702 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.4647, allocations: 0 / 0.7702 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.678e-05/0.4648, allocations: 8 kB / 0.7702 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.898e-05/0.4648, allocations: 15.92 kB / 0.7702 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.4648, allocations: 4 kB / 0.7702 GB, free: 15.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.584e-05/0.4649, allocations: 75.28 kB / 0.7703 GB, free: 15.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4649, allocations: 0 / 0.7703 GB, free: 15.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001903/0.4651, allocations: 12 kB / 0.7703 GB, free: 15.49 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.0001752/0.4652, allocations: 115.2 kB / 0.7704 GB, free: 15.37 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001411/0.4654, allocations: 63.91 kB / 0.7705 GB, free: 15.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4654, allocations: 0 / 0.7705 GB, free: 15.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 5.397e-05/0.4654, allocations: 43.91 kB / 0.7705 GB, free: 15.26 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.4656, allocations: 4.938 kB / 0.7705 GB, free: 15.26 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002695/0.4659, allocations: 145 kB / 0.7707 GB, free: 15.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.4662, allocations: 0.6807 MB / 0.7713 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.212e-05/0.4663, allocations: 43.92 kB / 0.7714 GB, free: 14.34 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.57e-05/0.4663, allocations: 15.44 kB / 0.7714 GB, free: 14.33 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.4663, allocations: 0 / 0.7714 GB, free: 14.33 MB / 0.545 GB Notification: Performance of Templates: time 0.002873/0.4692, allocations: 0.6197 MB / 0.772 GB, free: 13.71 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)