Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_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.009114/0.009114, allocations: 100.9 kB / 15.73 MB, free: 6.031 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.001738/0.001738, allocations: 199 kB / 16.67 MB, free: 5.965 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.675/2.675, allocations: 461.9 MB / 0.7347 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 64.11 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3289, allocations: 157.4 MB / 1.208 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003099/0.332, allocations: 1.532 MB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0004417/0.3325, allocations: 131.6 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.784e-05/0.3325, allocations: 3.938 kB / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.644e-05/0.3326, allocations: 3.984 kB / 1.209 GB, free: 7.965 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.793e-05/0.3327, allocations: 3.938 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.333, allocations: 31.92 kB / 1.209 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.3331, allocations: 35.91 kB / 1.209 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3332, allocations: 15.98 kB / 1.209 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.377e-05/0.3333, allocations: 19.92 kB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.826e-05/0.3333, allocations: 19.92 kB / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.752e-05/0.3334, allocations: 4 kB / 1.209 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.891e-05/0.3335, allocations: 15.98 kB / 1.209 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.3335, allocations: 11.98 kB / 1.21 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.824e-05/0.3335, allocations: 19.86 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.3337, allocations: 39.89 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3337, allocations: 0 / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3337, allocations: 0 / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.3337, allocations: 0 / 1.21 GB, free: 7.75 MB / 0.9669 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.0005613/0.3343, allocations: 355.4 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3343, allocations: 12.62 kB / 1.21 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.3344, allocations: 4.844 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.3345, allocations: 172.3 kB / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.3345, allocations: 384 / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.3346, allocations: 8.375 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.3348, allocations: 62.22 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.3348, allocations: 8.125 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3348, allocations: 3.938 kB / 1.21 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.3348, allocations: 0 / 1.21 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.335, allocations: 47.95 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004028/0.3354, allocations: 284.6 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.3358, allocations: 54.55 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.3359, allocations: 28.89 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002929/0.3362, allocations: 401.5 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.3362, allocations: 30.56 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.3362, allocations: 0 / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004059/0.3366, allocations: 105.7 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.3367, allocations: 51.41 kB / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.112e-05/0.3368, allocations: 113.8 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.3368, allocations: 25.7 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.3368, allocations: 84.14 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.3369, allocations: 7.906 kB / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.125e-05/0.3369, allocations: 25.7 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.337, allocations: 318.8 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.642e-05/0.3371, allocations: 19.97 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.361e-05/0.3372, allocations: 19.98 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001905/0.3374, allocations: 44.81 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3374, allocations: 3.938 kB / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000229/0.3377, allocations: 81.56 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3377, allocations: 4 kB / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3377, allocations: 0 / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.3377, allocations: 0 / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.772e-05/0.3378, allocations: 11.98 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.3378, allocations: 320 / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.007e-05/0.3379, allocations: 7.984 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.3379, allocations: 4 kB / 1.212 GB, free: 5.078 MB / 0.9669 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.0001362/0.3381, allocations: 117.8 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.3381, allocations: 4 kB / 1.212 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002734/0.3384, allocations: 85.47 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3384, allocations: 0 / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3384, allocations: 3.938 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.3384, allocations: 4 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.3386, allocations: 173.6 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3386, allocations: 7.984 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.178e-05/0.3387, allocations: 8 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.513e-06/0.3387, allocations: 8 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.3387, allocations: 3.984 kB / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3387, allocations: 0 / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3387, allocations: 0 / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.339, allocations: 175.4 kB / 1.212 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.63e-05/0.339, allocations: 77.11 kB / 1.212 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.3391, allocations: 11.98 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.203e-05/0.3392, allocations: 0 / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.415e-05/0.3392, allocations: 11.98 kB / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.3392, allocations: 0 / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.357e-05/0.3393, allocations: 83.28 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3393, allocations: 0 / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002283/0.3395, allocations: 15.98 kB / 1.213 GB, free: 4.195 MB / 0.9669 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.0001619/0.3397, allocations: 99.53 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002476/0.3399, allocations: 55.94 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.34, allocations: 3.938 kB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.967e-05/0.3401, allocations: 23.91 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.3403, allocations: 15.88 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003531/0.3407, allocations: 129.2 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.341, allocations: 0.6846 MB / 1.214 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.461e-05/0.341, allocations: 4 kB / 1.214 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.985e-05/0.3411, allocations: 11.42 kB / 1.214 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of SimCode: time 2e-07/0.3411, allocations: 0 / 1.214 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of Templates: time 0.003478/0.3446, allocations: 0.779 MB / 1.214 GB, free: 2.34 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches