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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.00111/0.00111, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001261/0.001261, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.2 MB / 239.9 MB, free: 5.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.813/2.813, allocations: 436.5 MB / 0.7104 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 12 kB / 0.8707 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7699/0.7703, allocations: 153.7 MB / 1.021 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002111/0.7725, allocations: 1.24 MB / 1.022 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004033/0.7729, allocations: 128.5 kB / 1.022 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.543e-05/0.773, allocations: 0 / 1.022 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.66e-05/0.773, allocations: 0 / 1.022 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.525e-05/0.7731, allocations: 11.98 kB / 1.022 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.7734, allocations: 15.92 kB / 1.022 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.538e-05/0.7734, allocations: 23.97 kB / 1.022 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.7736, allocations: 11.98 kB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.873e-05/0.7736, allocations: 7.984 kB / 1.022 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.09e-05/0.7736, allocations: 19.92 kB / 1.022 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.7737, allocations: 7.938 kB / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.948e-05/0.7737, allocations: 11.98 kB / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.527e-05/0.7738, allocations: 11.92 kB / 1.022 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.807e-05/0.7738, allocations: 29.7 kB / 1.022 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.245e-05/0.7739, allocations: 27.94 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.7739, allocations: 0 / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.074e-06/0.7739, allocations: 3.938 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.7739, allocations: 0 / 1.022 GB, free: 15.71 MB / 0.7794 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.0005033/0.7744, allocations: 355 kB / 1.023 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.7745, allocations: 11.98 kB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.7745, allocations: 7.906 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.7747, allocations: 171 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.7747, allocations: 3.938 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.7747, allocations: 8 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.775, allocations: 69.61 kB / 1.023 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.775, allocations: 4 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.775, allocations: 4 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.775, allocations: 0 / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.7752, allocations: 51.95 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004957/0.7757, allocations: 288.7 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.776, allocations: 54.64 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002928/0.7763, allocations: 405.7 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.7764, allocations: 34.56 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.7764, allocations: 0 / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004224/0.7768, allocations: 113.6 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.7769, allocations: 55.41 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.336e-05/0.777, allocations: 113.8 kB / 1.024 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.777, allocations: 29.64 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.072e-05/0.777, allocations: 84.14 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.307e-05/0.7771, allocations: 3.906 kB / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-06/0.7771, allocations: 0 / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.7772, allocations: 322.8 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.44e-05/0.7773, allocations: 27.97 kB / 1.024 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.409e-05/0.7774, allocations: 23.98 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.171e-05/0.7775, allocations: 27.92 kB / 1.024 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7775, allocations: 4 kB / 1.024 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002814/0.7778, allocations: 93.5 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.7778, allocations: 4 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.7779, allocations: 0 / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.7779, allocations: 0 / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.828e-05/0.778, allocations: 19.98 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.778, allocations: 0 / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.983e-05/0.7781, allocations: 11.92 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.7781, allocations: 4 kB / 1.025 GB, free: 13.05 MB / 0.7794 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 8.673e-05/0.7782, allocations: 113.8 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.7782, allocations: 4 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/0.7785, allocations: 93.55 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.7785, allocations: 0 / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.7785, allocations: 3.938 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.7785, allocations: 4.312 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.7787, allocations: 165.7 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.7787, allocations: 3.953 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.933e-05/0.7788, allocations: 19.98 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.7788, allocations: 0 / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.7788, allocations: 3.984 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.7788, allocations: 0 / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.7788, allocations: 0 / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.7791, allocations: 187.4 kB / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.759e-05/0.7792, allocations: 81.06 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.7792, allocations: 3.984 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.665e-05/0.7793, allocations: 12 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.46e-05/0.7793, allocations: 7.922 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.7794, allocations: 8 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.099e-05/0.7794, allocations: 91.27 kB / 1.025 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.904e-06/0.7794, allocations: 0 / 1.025 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002288/0.7797, allocations: 11.94 kB / 1.025 GB, free: 12.15 MB / 0.7794 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.0001847/0.7799, allocations: 99.25 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002525/0.7801, allocations: 59.95 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.7801, allocations: 0 / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.7802, allocations: 31.97 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.7805, allocations: 5.562 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003293/0.7808, allocations: 128.6 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.7811, allocations: 0.6848 MB / 1.026 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.233e-05/0.7812, allocations: 4.547 kB / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.48e-05/0.7812, allocations: 7.438 kB / 1.026 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.7812, allocations: 0 / 1.026 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of Templates: time 0.003132/0.7843, allocations: 0.6427 MB / 1.027 GB, free: 10.43 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches