Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 108.3 kB / 16.41 MB, free: 6.492 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.001264/0.001264, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.518/1.518, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.22/2.22, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 67.89 kB / 0.9516 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8011/0.8026, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002033/0.8047, allocations: 0.5775 MB / 1.089 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003474/0.805, allocations: 68.91 kB / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.64e-05/0.8051, allocations: 0.9062 kB / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.258e-05/0.8051, allocations: 0 / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.554e-06/0.8051, allocations: 0 / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.8055, allocations: 22.81 kB / 1.089 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.8056, allocations: 30.17 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.343e-05/0.8057, allocations: 2.016 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.718e-05/0.8057, allocations: 10.8 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.272e-05/0.8057, allocations: 16.98 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.8057, allocations: 1.625 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.818e-05/0.8059, allocations: 20.44 kB / 1.089 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.325e-05/0.8059, allocations: 10.47 kB / 1.089 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.717e-05/0.8059, allocations: 17.19 kB / 1.089 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.8061, allocations: 32.69 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.8061, allocations: 0.9062 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.394e-06/0.8061, allocations: 4 kB / 1.089 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.097e-05/0.8061, allocations: 0 / 1.089 GB, free: 5.051 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000372/0.8065, allocations: 330.4 kB / 1.09 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.8065, allocations: 10.28 kB / 1.09 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.057e-05/0.8066, allocations: 6.859 kB / 1.09 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.881e-05/0.8067, allocations: 170 kB / 1.09 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.8067, allocations: 3.219 kB / 1.09 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.8067, allocations: 3.25 kB / 1.09 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.8069, allocations: 73.67 kB / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.8069, allocations: 192 / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.8069, allocations: 9 kB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.8069, allocations: 1.094 kB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002156/0.8072, allocations: 101.9 kB / 1.09 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/0.8073, allocations: 175.1 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.8075, allocations: 72.02 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.395e-05/0.8076, allocations: 28.75 kB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002951/0.8079, allocations: 407.1 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.8079, allocations: 32.19 kB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.8079, allocations: 0 / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0003165/0.8082, allocations: 122.5 kB / 1.091 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.8083, allocations: 57.22 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.386e-05/0.8083, allocations: 95.95 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.8083, allocations: 27.09 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.84e-05/0.8083, allocations: 88.08 kB / 1.091 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.794e-05/0.8084, allocations: 18.61 kB / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.8084, allocations: 36.19 kB / 1.091 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.909e-05/0.8085, allocations: 317.8 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.372e-05/0.8086, allocations: 20.31 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.662e-05/0.8086, allocations: 20.7 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.8087, allocations: 59.17 kB / 1.092 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.8088, allocations: 0 / 1.092 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001588/0.8089, allocations: 98.62 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.8089, allocations: 5.984 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.809, allocations: 7.938 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.809, allocations: 1.734 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.8091, allocations: 17.8 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.8091, allocations: 4.641 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.144e-05/0.8091, allocations: 4.875 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.8092, allocations: 4.375 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001329/0.8093, allocations: 123.8 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.43e-05/0.8093, allocations: 6.062 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002443/0.8096, allocations: 136 kB / 1.092 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.8096, allocations: 1.094 kB / 1.092 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.8096, allocations: 1.219 kB / 1.092 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.8096, allocations: 0.75 kB / 1.092 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.8097, allocations: 177.7 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.8097, allocations: 0.7031 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.541e-05/0.8098, allocations: 21.64 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.8098, allocations: 5.062 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.8098, allocations: 1.812 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.8098, allocations: 1.656 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.8098, allocations: 7.938 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.81, allocations: 117.4 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.682e-05/0.8101, allocations: 84 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.8101, allocations: 4.609 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.455e-05/0.8101, allocations: 1.344 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.8101, allocations: 7.734 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.8102, allocations: 7.234 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.672e-05/0.8102, allocations: 79.28 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.8102, allocations: 1.25 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002345/0.8104, allocations: 14.23 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001722/0.8106, allocations: 116.3 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001669/0.8108, allocations: 60.02 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.8108, allocations: 0.9375 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.619e-05/0.8108, allocations: 39.48 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.811, allocations: 10.58 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002649/0.8113, allocations: 172.4 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.8115, allocations: 0.6826 MB / 1.094 GB, free: 17.18 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.102e-05/0.8115, allocations: 19.2 kB / 1.094 GB, free: 17.17 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/0.8115, allocations: 0 / 1.094 GB, free: 17.17 MB / 0.8731 GB Notification: Performance of Templates: time 0.002663/0.8142, allocations: 0.9565 MB / 1.095 GB, free: 17.08 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches