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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 185 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008556/0.0008557, allocations: 92.64 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003016, allocations: 11.88 kB / 0.7962 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1814, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1656/0.347, allocations: 132.1 MB / 1.029 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.3473, allocations: 75.95 kB / 1.029 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003024/0.3504, allocations: 1.047 MB / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3504, allocations: 4 kB / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.3504, allocations: 4 kB / 1.03 GB, free: 10.56 MB / 0.6823 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.0004265/0.3508, allocations: 348.1 kB / 1.031 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3509, allocations: 8.031 kB / 1.031 GB, free: 10.17 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.3509, allocations: 7.906 kB / 1.031 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.3511, allocations: 174.9 kB / 1.031 GB, free: 9.949 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.3511, allocations: 8 kB / 1.031 GB, free: 9.941 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.3511, allocations: 4 kB / 1.031 GB, free: 9.938 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.3513, allocations: 73.59 kB / 1.031 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.3513, allocations: 0 / 1.031 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.3514, allocations: 0 / 1.031 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3514, allocations: 0 / 1.031 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.3516, allocations: 59.89 kB / 1.031 GB, free: 9.801 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004007/0.352, allocations: 276.8 kB / 1.031 GB, free: 9.48 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/0.3523, allocations: 70.47 kB / 1.031 GB, free: 9.402 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002894/0.3526, allocations: 401.7 kB / 1.032 GB, free: 8.918 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.3526, allocations: 30.56 kB / 1.032 GB, free: 8.879 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3526, allocations: 0 / 1.032 GB, free: 8.879 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0004047/0.353, allocations: 113.6 kB / 1.032 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.3531, allocations: 55.34 kB / 1.032 GB, free: 8.695 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.941e-05/0.3532, allocations: 108.9 kB / 1.032 GB, free: 8.582 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.3532, allocations: 25.7 kB / 1.032 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.3532, allocations: 88.14 kB / 1.032 GB, free: 8.461 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.3533, allocations: 3.906 kB / 1.032 GB, free: 8.457 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-06/0.3533, allocations: 0 / 1.032 GB, free: 8.457 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3534, allocations: 318.8 kB / 1.032 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.788e-05/0.3535, allocations: 27.92 kB / 1.032 GB, free: 8.109 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.565e-05/0.3536, allocations: 27.98 kB / 1.032 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.857e-05/0.3537, allocations: 23.97 kB / 1.032 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.3537, allocations: 4 kB / 1.032 GB, free: 8.055 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002168/0.3539, allocations: 89.56 kB / 1.032 GB, free: 7.961 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.3539, allocations: 4 kB / 1.032 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3539, allocations: 0 / 1.032 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.354, allocations: 0 / 1.032 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.927e-05/0.3541, allocations: 19.92 kB / 1.032 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.3541, allocations: 320 / 1.032 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.671e-05/0.3541, allocations: 11.98 kB / 1.032 GB, free: 7.926 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.3542, allocations: 7.953 kB / 1.032 GB, free: 7.918 MB / 0.6823 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,falFac.k) * 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 6.639e-05/0.3542, allocations: 109.8 kB / 1.033 GB, free: 7.801 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.684e-05/0.3543, allocations: 8 kB / 1.033 GB, free: 7.793 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002678/0.3545, allocations: 97.47 kB / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3545, allocations: 4 kB / 1.033 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3546, allocations: 0 / 1.033 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3546, allocations: 0 / 1.033 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.3547, allocations: 181.6 kB / 1.033 GB, free: 7.457 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3547, allocations: 0 / 1.033 GB, free: 7.457 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.36e-05/0.3548, allocations: 19.92 kB / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3548, allocations: 0 / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.3548, allocations: 0 / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3548, allocations: 0 / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3549, allocations: 0 / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.3551, allocations: 183.5 kB / 1.033 GB, free: 7.242 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.883e-05/0.3552, allocations: 81.09 kB / 1.033 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.3552, allocations: 0 / 1.033 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.919e-05/0.3553, allocations: 24.3 kB / 1.033 GB, free: 7.121 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.321e-05/0.3554, allocations: 3.984 kB / 1.033 GB, free: 7.117 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.3554, allocations: 4 kB / 1.033 GB, free: 7.113 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.906e-05/0.3554, allocations: 87.27 kB / 1.033 GB, free: 7.027 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3554, allocations: 0 / 1.033 GB, free: 7.027 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002167/0.3556, allocations: 16 kB / 1.033 GB, free: 7.012 MB / 0.6823 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 (falFac.y,falFac.k) * 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.0001699/0.3558, allocations: 111.9 kB / 1.033 GB, free: 6.891 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002413/0.3561, allocations: 59.89 kB / 1.033 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3561, allocations: 0 / 1.033 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.3562, allocations: 31.97 kB / 1.033 GB, free: 6.801 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/0.3564, allocations: 15.89 kB / 1.033 GB, free: 6.785 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002912/0.3567, allocations: 132.5 kB / 1.034 GB, free: 6.629 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.3569, allocations: 0.6848 MB / 1.034 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.326e-05/0.357, allocations: 8 kB / 1.034 GB, free: 5.91 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.357, allocations: 7.438 kB / 1.034 GB, free: 5.902 MB / 0.6823 GB Notification: Performance of SimCode: time 1.513e-06/0.357, allocations: 0 / 1.034 GB, free: 5.902 MB / 0.6823 GB Notification: Performance of Templates: time 0.002476/0.3595, allocations: 0.6297 MB / 1.035 GB, free: 5.277 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (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 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_FallingFactorial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches