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.00183/0.00183, allocations: 110.3 kB / 16.41 MB, free: 6.5 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.001786/0.001786, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.485/1.485, 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.00264/0.00264, allocations: 291 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.998/0.998, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002841/0.002841, allocations: 95.84 kB / 0.6821 GB, free: 6.902 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4541/0.457, allocations: 86.97 MB / 0.7671 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.003439/0.4604, allocations: 1.529 MB / 0.7686 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000442/0.4609, allocations: 136.5 kB / 0.7687 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.236e-05/0.4609, allocations: 4 kB / 0.7687 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.844e-05/0.4609, allocations: 7.938 kB / 0.7687 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.324e-05/0.461, allocations: 3.938 kB / 0.7687 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.4613, allocations: 27.91 kB / 0.7687 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.415e-05/0.4614, allocations: 35.86 kB / 0.7688 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.4615, allocations: 15.97 kB / 0.7688 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.876e-05/0.4615, allocations: 19.92 kB / 0.7688 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.964e-05/0.4616, allocations: 15.92 kB / 0.7688 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.616e-05/0.4616, allocations: 4 kB / 0.7688 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.659e-05/0.4617, allocations: 19.98 kB / 0.7688 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.717e-05/0.4617, allocations: 4 kB / 0.7688 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.633e-05/0.4617, allocations: 23.91 kB / 0.7689 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001581/0.4619, allocations: 47.62 kB / 0.7689 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4619, allocations: 0 / 0.7689 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4619, allocations: 0 / 0.7689 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.4619, allocations: 0 / 0.7689 GB, free: 1.926 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.000582/0.4625, allocations: 353.2 kB / 0.7692 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.4625, allocations: 8.031 kB / 0.7692 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.4626, allocations: 8.891 kB / 0.7693 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.4627, allocations: 164.3 kB / 0.7694 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.4627, allocations: 12.38 kB / 0.7694 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.4628, allocations: 4.375 kB / 0.7694 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.463, allocations: 66.2 kB / 0.7695 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.463, allocations: 192 / 0.7695 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.463, allocations: 11.88 kB / 0.7695 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.463, allocations: 0 / 0.7695 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.4633, allocations: 43.95 kB / 0.7695 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004921/0.4638, allocations: 284.7 kB / 0.7698 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.4642, allocations: 58.53 kB / 0.7699 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.4644, allocations: 20.91 kB / 0.7699 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004016/0.4648, allocations: 405.5 kB / 0.7703 GB, free: 280 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.4648, allocations: 34.56 kB / 0.7703 GB, free: 236 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.312e-06/0.4648, allocations: 0 / 0.7703 GB, free: 236 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0005347/0.4653, allocations: 97.56 kB / 0.7704 GB, free: 132 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.4654, allocations: 51.41 kB / 0.7705 GB, free: 68 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.4655, allocations: 113.8 kB / 0.7706 GB, free: 15.95 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.4655, allocations: 25.7 kB / 0.7706 GB, free: 15.91 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.01e-05/0.4656, allocations: 88.14 kB / 0.7707 GB, free: 15.82 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.4656, allocations: 11.89 kB / 0.7707 GB, free: 15.81 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.666e-05/0.4657, allocations: 13.72 kB / 0.7707 GB, free: 15.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.4659, allocations: 322.8 kB / 0.771 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.466, allocations: 15.98 kB / 0.771 GB, free: 15.45 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.4661, allocations: 24.16 kB / 0.771 GB, free: 15.43 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.4664, allocations: 48.91 kB / 0.7711 GB, free: 15.38 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4664, allocations: 0 / 0.7711 GB, free: 15.38 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003289/0.4667, allocations: 81.58 kB / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.4667, allocations: 4 kB / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.4667, allocations: 0 / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.4667, allocations: 0 / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.4669, allocations: 11.98 kB / 0.7712 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.4669, allocations: 0 / 0.7712 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.529e-05/0.4669, allocations: 11.95 kB / 0.7712 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.467, allocations: 0 / 0.7712 GB, free: 15.27 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 0.000118/0.4671, allocations: 124.2 kB / 0.7713 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.287e-05/0.4671, allocations: 4 kB / 0.7713 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003533/0.4675, allocations: 81.48 kB / 0.7714 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.4675, allocations: 0 / 0.7714 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.4675, allocations: 4 kB / 0.7714 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4675, allocations: 4 kB / 0.7714 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002583/0.4677, allocations: 169.7 kB / 0.7716 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.4677, allocations: 4 kB / 0.7716 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.4678, allocations: 7.984 kB / 0.7716 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.4678, allocations: 4 kB / 0.7716 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.4679, allocations: 0 / 0.7716 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4679, allocations: 0 / 0.7716 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4679, allocations: 0 / 0.7716 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003868/0.4682, allocations: 191.3 kB / 0.7718 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/0.4683, allocations: 77.11 kB / 0.7718 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.4683, allocations: 8 kB / 0.7718 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.4685, allocations: 3.984 kB / 0.7718 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.241e-05/0.4685, allocations: 8 kB / 0.7719 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.4685, allocations: 3.984 kB / 0.7719 GB, free: 14.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.498e-05/0.4686, allocations: 83.28 kB / 0.7719 GB, free: 14.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4686, allocations: 4 kB / 0.7719 GB, free: 14.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003967/0.469, allocations: 19.88 kB / 0.772 GB, free: 14.38 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.0001834/0.4692, allocations: 103.2 kB / 0.7721 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003266/0.4695, allocations: 47.95 kB / 0.7721 GB, free: 14.22 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4695, allocations: 0 / 0.7721 GB, free: 14.22 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.4696, allocations: 20.16 kB / 0.7721 GB, free: 14.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003963/0.47, allocations: 18.17 kB / 0.7721 GB, free: 14.19 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003808/0.4704, allocations: 127.4 kB / 0.7723 GB, free: 14.04 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.4708, allocations: 0.6807 MB / 0.7729 GB, free: 13.33 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.211e-05/0.4708, allocations: 4.531 kB / 0.7729 GB, free: 13.33 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.4709, allocations: 11.44 kB / 0.7729 GB, free: 13.32 MB / 0.545 GB Notification: Performance of SimCode: time 4.01e-07/0.4709, allocations: 4 kB / 0.7729 GB, free: 13.31 MB / 0.545 GB Notification: Performance of Templates: time 0.00428/0.4752, allocations: 0.7627 MB / 0.7737 GB, free: 12.55 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)