Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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.001305/0.001304, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001844/0.001844, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.748/1.748, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.535/1.535, allocations: 252 MB / 0.5102 GB, free: 4.836 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005693/0.0005696, allocations: 16 kB / 0.6243 GB, free: 1.098 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5419/0.5425, allocations: 106.3 MB / 0.7281 GB, free: 11.43 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001573/0.5441, allocations: 1.244 MB / 0.7293 GB, free: 10.17 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0003234/0.5445, allocations: 132.5 kB / 0.7295 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.01e-05/0.5445, allocations: 0 / 0.7295 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.5445, allocations: 3.938 kB / 0.7295 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.565e-05/0.5446, allocations: 0 / 0.7295 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.5448, allocations: 27.92 kB / 0.7295 GB, free: 10.01 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.743e-05/0.5449, allocations: 31.91 kB / 0.7295 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.545, allocations: 11.98 kB / 0.7295 GB, free: 9.965 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.86e-05/0.545, allocations: 7.984 kB / 0.7295 GB, free: 9.957 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.124e-05/0.5451, allocations: 15.92 kB / 0.7296 GB, free: 9.941 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.5451, allocations: 4 kB / 0.7296 GB, free: 9.938 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.619e-05/0.5452, allocations: 15.98 kB / 0.7296 GB, free: 9.922 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.108e-05/0.5452, allocations: 7.875 kB / 0.7296 GB, free: 9.914 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.637e-05/0.5452, allocations: 29.7 kB / 0.7296 GB, free: 9.879 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 8.687e-05/0.5453, allocations: 35.94 kB / 0.7296 GB, free: 9.844 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.5453, allocations: 0 / 0.7296 GB, free: 9.844 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5454, allocations: 0 / 0.7296 GB, free: 9.844 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.5454, allocations: 0 / 0.7296 GB, free: 9.844 MB / 0.545 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.0004579/0.5458, allocations: 345.3 kB / 0.73 GB, free: 9.461 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.5459, allocations: 12.02 kB / 0.73 GB, free: 9.449 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.5459, allocations: 7.906 kB / 0.73 GB, free: 9.441 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.546, allocations: 171 kB / 0.7302 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.5461, allocations: 4 kB / 0.7302 GB, free: 9.23 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.5461, allocations: 4 kB / 0.7302 GB, free: 9.227 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.5463, allocations: 73.59 kB / 0.7302 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.5463, allocations: 0 / 0.7302 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.5463, allocations: 0 / 0.7302 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.5463, allocations: 0 / 0.7302 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.5465, allocations: 59.95 kB / 0.7303 GB, free: 9.09 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003744/0.5469, allocations: 276.8 kB / 0.7306 GB, free: 8.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.5472, allocations: 74.47 kB / 0.7306 GB, free: 8.688 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.117e-05/0.5473, allocations: 32.84 kB / 0.7307 GB, free: 8.652 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002798/0.5476, allocations: 401.5 kB / 0.731 GB, free: 8.168 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.5476, allocations: 34.56 kB / 0.7311 GB, free: 8.125 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.5476, allocations: 0 / 0.7311 GB, free: 8.125 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003577/0.548, allocations: 109.6 kB / 0.7312 GB, free: 8.012 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.548, allocations: 63.34 kB / 0.7312 GB, free: 7.938 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.239e-05/0.5481, allocations: 113.8 kB / 0.7314 GB, free: 7.816 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.5481, allocations: 25.7 kB / 0.7314 GB, free: 7.785 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.913e-05/0.5482, allocations: 91.98 kB / 0.7315 GB, free: 7.691 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.5482, allocations: 7.938 kB / 0.7315 GB, free: 7.684 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.5482, allocations: 0 / 0.7315 GB, free: 7.684 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.5483, allocations: 314.8 kB / 0.7318 GB, free: 7.367 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.567e-05/0.5484, allocations: 27.97 kB / 0.7318 GB, free: 7.34 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.291e-05/0.5485, allocations: 23.98 kB / 0.7318 GB, free: 7.316 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.209e-05/0.5486, allocations: 27.97 kB / 0.7318 GB, free: 7.289 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5486, allocations: 0 / 0.7318 GB, free: 7.289 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001979/0.5488, allocations: 89.84 kB / 0.7319 GB, free: 7.195 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.5488, allocations: 5.719 kB / 0.7319 GB, free: 7.191 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.5488, allocations: 0 / 0.7319 GB, free: 7.191 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.5489, allocations: 4 kB / 0.7319 GB, free: 7.188 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.309e-05/0.5489, allocations: 15.92 kB / 0.732 GB, free: 7.172 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.549, allocations: 4 kB / 0.732 GB, free: 7.168 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.941e-05/0.549, allocations: 15.98 kB / 0.732 GB, free: 7.152 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.549, allocations: 3.984 kB / 0.732 GB, free: 7.148 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 (rea2Int.y,falFac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.283e-05/0.5491, allocations: 113.8 kB / 0.7321 GB, free: 7.027 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.214e-05/0.5491, allocations: 0 / 0.7321 GB, free: 7.027 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002291/0.5494, allocations: 97.45 kB / 0.7322 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.5494, allocations: 0 / 0.7322 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.5494, allocations: 0 / 0.7322 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.5494, allocations: 4 kB / 0.7322 GB, free: 6.918 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.5496, allocations: 165.6 kB / 0.7323 GB, free: 6.707 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.5496, allocations: 4 kB / 0.7323 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.168e-05/0.5496, allocations: 19.92 kB / 0.7324 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.5497, allocations: 0 / 0.7324 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.5497, allocations: 0 / 0.7324 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.5497, allocations: 0 / 0.7324 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5497, allocations: 11.98 kB / 0.7324 GB, free: 6.672 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002278/0.5499, allocations: 179.5 kB / 0.7325 GB, free: 6.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.219e-05/0.55, allocations: 77.11 kB / 0.7326 GB, free: 6.387 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.55, allocations: 8 kB / 0.7326 GB, free: 6.379 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.909e-05/0.5501, allocations: 7.984 kB / 0.7326 GB, free: 6.371 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.5501, allocations: 7.984 kB / 0.7326 GB, free: 6.363 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.5501, allocations: 3.938 kB / 0.7326 GB, free: 6.359 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.463e-05/0.5502, allocations: 87.28 kB / 0.7327 GB, free: 6.273 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5502, allocations: 7.938 kB / 0.7327 GB, free: 6.266 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002342/0.5504, allocations: 11.91 kB / 0.7328 GB, free: 6.254 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001285/0.5505, allocations: 111.2 kB / 0.7329 GB, free: 6.137 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002157/0.5508, allocations: 55.95 kB / 0.7329 GB, free: 6.082 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.5508, allocations: 4 kB / 0.7329 GB, free: 6.078 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.16e-05/0.5509, allocations: 31.97 kB / 0.7329 GB, free: 6.047 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.5512, allocations: 3.953 kB / 0.7329 GB, free: 6.043 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002741/0.5514, allocations: 136.5 kB / 0.7331 GB, free: 5.887 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.5517, allocations: 0.6809 MB / 0.7337 GB, free: 5.18 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.218e-05/0.5517, allocations: 4 kB / 0.7337 GB, free: 5.176 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.531e-05/0.5518, allocations: 7.438 kB / 0.7338 GB, free: 5.168 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.5518, allocations: 3.938 kB / 0.7338 GB, free: 5.164 MB / 0.545 GB Notification: Performance of Templates: time 0.002596/0.5544, allocations: 0.647 MB / 0.7344 GB, free: 4.523 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: