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.001017/0.001017, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007935/0.007935, allocations: 173 kB / 16.26 MB, free: 6.68 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.47/1.47, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.902/2.902, allocations: 462.7 MB / 0.7364 GB, free: 276 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003655/0.0003655, allocations: 22.62 kB / 0.9028 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3271, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.001769/0.3289, allocations: 1.259 MB / 1.06 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003939/0.3294, allocations: 131.6 kB / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.965e-05/0.3294, allocations: 0 / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.3294, allocations: 0 / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.896e-05/0.3295, allocations: 3.938 kB / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.3297, allocations: 31.95 kB / 1.06 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.403e-05/0.3298, allocations: 31.92 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.121e-05/0.3299, allocations: 12 kB / 1.06 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.207e-05/0.3299, allocations: 15.92 kB / 1.06 GB, free: 4 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.213e-05/0.33, allocations: 23.91 kB / 1.06 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.33, allocations: 0 / 1.06 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.259e-05/0.3301, allocations: 11.98 kB / 1.06 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.435e-05/0.3301, allocations: 7.938 kB / 1.06 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.012e-05/0.3301, allocations: 37.64 kB / 1.06 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.3302, allocations: 43.86 kB / 1.06 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3303, allocations: 0 / 1.06 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.153e-06/0.3303, allocations: 0 / 1.06 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.3303, allocations: 4 kB / 1.06 GB, free: 3.867 MB / 0.8106 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.0004312/0.3307, allocations: 351.7 kB / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.3307, allocations: 8.031 kB / 1.061 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.3308, allocations: 8.844 kB / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.3309, allocations: 164.3 kB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.3309, allocations: 4.375 kB / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.331, allocations: 8.375 kB / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.3312, allocations: 70.22 kB / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3312, allocations: 192 / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.3312, allocations: 3.938 kB / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3312, allocations: 0 / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.3314, allocations: 59.95 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000384/0.3318, allocations: 288.5 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.3322, allocations: 70.59 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.3323, allocations: 28.84 kB / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003154/0.3326, allocations: 405.5 kB / 1.062 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.3327, allocations: 30.56 kB / 1.062 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.845e-06/0.3327, allocations: 0 / 1.062 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004151/0.3331, allocations: 117.6 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.3331, allocations: 51.41 kB / 1.062 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.844e-05/0.3332, allocations: 109.8 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.3332, allocations: 29.7 kB / 1.062 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.319e-05/0.3333, allocations: 88.14 kB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.3333, allocations: 3.906 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.3333, allocations: 13.72 kB / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001038/0.3335, allocations: 318.8 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.3336, allocations: 27.97 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.239e-05/0.3337, allocations: 23.98 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.3339, allocations: 61.03 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3339, allocations: 0 / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002553/0.3341, allocations: 89.64 kB / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3342, allocations: 4 kB / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3342, allocations: 0 / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3342, allocations: 7.984 kB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.604e-05/0.3343, allocations: 12 kB / 1.063 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3343, allocations: 0 / 1.063 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.874e-05/0.3344, allocations: 11.98 kB / 1.063 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.3344, allocations: 0 / 1.063 GB, free: 1.129 MB / 0.8106 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 9.587e-05/0.3345, allocations: 117.8 kB / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.3345, allocations: 3.906 kB / 1.063 GB, free: 1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002859/0.3348, allocations: 101.5 kB / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3348, allocations: 0 / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.3348, allocations: 0 / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3348, allocations: 0 / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.335, allocations: 169.6 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.335, allocations: 4 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.819e-05/0.3351, allocations: 23.92 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3351, allocations: 0 / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.3351, allocations: 0 / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3351, allocations: 0 / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3351, allocations: 4 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.3354, allocations: 191.4 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.3355, allocations: 81.02 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.3355, allocations: 4 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.843e-05/0.3356, allocations: 7.984 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.3357, allocations: 4 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.3357, allocations: 0 / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.436e-05/0.3357, allocations: 95.52 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3357, allocations: 4 kB / 1.063 GB, free: 236 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000233/0.336, allocations: 8 kB / 1.063 GB, free: 228 kB / 0.8106 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.000166/0.3362, allocations: 107.2 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002643/0.3364, allocations: 55.95 kB / 1.064 GB, free: 56 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3364, allocations: 0 / 1.064 GB, free: 56 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.3366, allocations: 35.91 kB / 1.064 GB, free: 20 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.3369, allocations: 9.078 kB / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003619/0.3373, allocations: 140.6 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.3376, allocations: 0.677 MB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.9e-05/0.3377, allocations: 12.2 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.872e-05/0.3377, allocations: 11.44 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3377, allocations: 0 / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.003025/0.3407, allocations: 0.6602 MB / 1.065 GB, free: 14.46 MB / 0.8262 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