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.001564/0.001565, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.001276/0.001276, allocations: 192.5 kB / 16.91 MB, free: 6.191 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.415/1.415, allocations: 222.9 MB / 240.6 MB, free: 15.45 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.216/2.216, allocations: 390.2 MB / 0.665 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 67.12 kB / 0.8127 GB, free: 33.18 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2787, allocations: 140.4 MB / 0.9498 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002812/0.2816, allocations: 0.6511 MB / 0.9504 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.000387/0.282, allocations: 55.78 kB / 0.9505 GB, free: 8.523 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.457e-05/0.2821, allocations: 0 / 0.9505 GB, free: 8.523 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.633e-05/0.2822, allocations: 4 kB / 0.9505 GB, free: 8.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.005e-06/0.2822, allocations: 4 kB / 0.9505 GB, free: 8.516 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.2826, allocations: 15.92 kB / 0.9505 GB, free: 8.5 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.2827, allocations: 27.97 kB / 0.9505 GB, free: 8.473 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.897e-05/0.2828, allocations: 3.984 kB / 0.9505 GB, free: 8.469 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.063e-05/0.2828, allocations: 15.94 kB / 0.9505 GB, free: 8.453 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.914e-05/0.2829, allocations: 15.97 kB / 0.9505 GB, free: 8.438 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.2829, allocations: 4 kB / 0.9506 GB, free: 8.434 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.984e-05/0.283, allocations: 12 kB / 0.9506 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.165e-05/0.283, allocations: 7.984 kB / 0.9506 GB, free: 8.414 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.123e-05/0.2831, allocations: 15.92 kB / 0.9506 GB, free: 8.398 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.2832, allocations: 23.97 kB / 0.9506 GB, free: 8.375 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2832, allocations: 4 kB / 0.9506 GB, free: 8.371 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.027e-06/0.2833, allocations: 0 / 0.9506 GB, free: 8.371 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.2833, allocations: 3.938 kB / 0.9506 GB, free: 8.367 MB / 0.7325 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.0004319/0.2837, allocations: 335.5 kB / 0.9509 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.2838, allocations: 8.031 kB / 0.9509 GB, free: 7.98 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.274e-05/0.2838, allocations: 4.938 kB / 0.9509 GB, free: 7.977 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.284, allocations: 172.6 kB / 0.9511 GB, free: 7.77 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.284, allocations: 8.312 kB / 0.9511 GB, free: 7.762 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.284, allocations: 4.375 kB / 0.9511 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.2843, allocations: 66.23 kB / 0.9512 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.2843, allocations: 192 / 0.9512 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.2843, allocations: 3.938 kB / 0.9512 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2843, allocations: 0 / 0.9512 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.2845, allocations: 103.9 kB / 0.9513 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002173/0.2847, allocations: 173.6 kB / 0.9515 GB, free: 7.363 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.2849, allocations: 74.59 kB / 0.9515 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.587e-05/0.2849, allocations: 35.11 kB / 0.9516 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004394/0.2854, allocations: 409.5 kB / 0.952 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.2854, allocations: 30.56 kB / 0.952 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.2854, allocations: 0 / 0.952 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0003268/0.2858, allocations: 117.9 kB / 0.9521 GB, free: 6.594 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.2858, allocations: 51.41 kB / 0.9521 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.717e-05/0.2859, allocations: 97.77 kB / 0.9522 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.2859, allocations: 29.7 kB / 0.9523 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.37e-05/0.286, allocations: 80.14 kB / 0.9523 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.286, allocations: 31.62 kB / 0.9524 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.263e-05/0.2861, allocations: 33.64 kB / 0.9524 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.2862, allocations: 318.8 kB / 0.9527 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.109e-05/0.2863, allocations: 19.98 kB / 0.9527 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.189e-05/0.2863, allocations: 24.03 kB / 0.9528 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.755e-05/0.2864, allocations: 56.84 kB / 0.9528 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.2864, allocations: 4 kB / 0.9528 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001468/0.2866, allocations: 97.5 kB / 0.9529 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2866, allocations: 8 kB / 0.9529 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.2866, allocations: 3.938 kB / 0.9529 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.2866, allocations: 4 kB / 0.9529 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.2868, allocations: 19.92 kB / 0.9529 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.2868, allocations: 4 kB / 0.9529 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.545e-05/0.2868, allocations: 4 kB / 0.9529 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.958e-06/0.2868, allocations: 4 kB / 0.9529 GB, free: 5.664 MB / 0.7325 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.000171/0.287, allocations: 125.3 kB / 0.9531 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.287, allocations: 7.906 kB / 0.9531 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.2872, allocations: 125.4 kB / 0.9532 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2873, allocations: 4 kB / 0.9532 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2873, allocations: 0 / 0.9532 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.2873, allocations: 0 / 0.9532 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000136/0.2874, allocations: 177.6 kB / 0.9534 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2874, allocations: 0 / 0.9534 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.204e-05/0.2875, allocations: 19.98 kB / 0.9534 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.2875, allocations: 7.938 kB / 0.9534 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.2875, allocations: 4 kB / 0.9534 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2875, allocations: 0 / 0.9534 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2875, allocations: 0 / 0.9534 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.2877, allocations: 124.9 kB / 0.9535 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.2878, allocations: 85.05 kB / 0.9536 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.2878, allocations: 0 / 0.9536 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.507e-05/0.2878, allocations: 0 / 0.9536 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/0.2878, allocations: 19.97 kB / 0.9536 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.2878, allocations: 4 kB / 0.9536 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.518e-05/0.2879, allocations: 75.28 kB / 0.9537 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2879, allocations: 0 / 0.9537 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002062/0.2881, allocations: 20 kB / 0.9537 GB, free: 4.777 MB / 0.7325 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.000186/0.2883, allocations: 115.1 kB / 0.9538 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001603/0.2884, allocations: 72.45 kB / 0.9539 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2885, allocations: 4 kB / 0.9539 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.678e-05/0.2885, allocations: 36.14 kB / 0.9539 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.2887, allocations: 8.156 kB / 0.9539 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002899/0.289, allocations: 192.3 kB / 0.9541 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.2892, allocations: 0.6844 MB / 0.9548 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.3e-05/0.2892, allocations: 19.42 kB / 0.9548 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.2892, allocations: 0 / 0.9548 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of Templates: time 0.0024/0.2916, allocations: 0.9442 MB / 0.9557 GB, free: 2.645 MB / 0.7325 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