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.001101/0.001101, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001279/0.001279, allocations: 192.7 kB / 16.25 MB, free: 6.625 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.373/1.373, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.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.576/2.576, allocations: 390.2 MB / 0.6643 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001391, allocations: 63.91 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7407/0.7421, allocations: 140.4 MB / 0.9491 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002089/0.7442, allocations: 0.6435 MB / 0.9497 GB, free: 8.68 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002738/0.7445, allocations: 52.69 kB / 0.9498 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.647e-05/0.7445, allocations: 0 / 0.9498 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.06e-05/0.7446, allocations: 1.781 kB / 0.9498 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.801e-06/0.7446, allocations: 0 / 0.9498 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.7449, allocations: 13.08 kB / 0.9498 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.901e-05/0.745, allocations: 31.5 kB / 0.9498 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.149e-05/0.745, allocations: 6.828 kB / 0.9498 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.162e-05/0.7451, allocations: 13.75 kB / 0.9498 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.746e-05/0.7451, allocations: 16.75 kB / 0.9499 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.7451, allocations: 1.375 kB / 0.9499 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.557e-05/0.7452, allocations: 13.03 kB / 0.9499 GB, free: 8.59 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.836e-05/0.7452, allocations: 16.86 kB / 0.9499 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.7453, allocations: 12.41 kB / 0.9499 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.7454, allocations: 35.42 kB / 0.9499 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.7454, allocations: 5.562 kB / 0.9499 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.252e-06/0.7454, allocations: 0 / 0.9499 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.7454, allocations: 0 / 0.9499 GB, free: 8.543 MB / 0.7169 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.0002633/0.7457, allocations: 341.1 kB / 0.9503 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.7457, allocations: 12.12 kB / 0.9503 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.048e-05/0.7457, allocations: 3.688 kB / 0.9503 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.408e-05/0.7458, allocations: 163.7 kB / 0.9504 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.7458, allocations: 1.75 kB / 0.9504 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.7458, allocations: 8.5 kB / 0.9505 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.746, allocations: 62.72 kB / 0.9505 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.746, allocations: 192 / 0.9505 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.746, allocations: 5.312 kB / 0.9505 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.746, allocations: 9.359 kB / 0.9505 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.7462, allocations: 101.4 kB / 0.9506 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.7463, allocations: 185.9 kB / 0.9508 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.7464, allocations: 71.67 kB / 0.9509 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.28e-05/0.7465, allocations: 30.92 kB / 0.9509 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002567/0.7467, allocations: 401.8 kB / 0.9513 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.7468, allocations: 39.88 kB / 0.9513 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.7468, allocations: 0 / 0.9513 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002624/0.747, allocations: 117.8 kB / 0.9514 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.7471, allocations: 52.78 kB / 0.9515 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.724e-05/0.7471, allocations: 99.22 kB / 0.9516 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.7471, allocations: 27.08 kB / 0.9516 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.007e-05/0.7472, allocations: 80.14 kB / 0.9517 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.326e-05/0.7472, allocations: 19.84 kB / 0.9517 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.7472, allocations: 32.7 kB / 0.9517 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.229e-05/0.7473, allocations: 312.2 kB / 0.952 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.593e-05/0.7474, allocations: 26.92 kB / 0.9521 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.252e-05/0.7474, allocations: 20.98 kB / 0.9521 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.893e-05/0.7475, allocations: 69.55 kB / 0.9521 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.7475, allocations: 0 / 0.9521 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001232/0.7476, allocations: 88.36 kB / 0.9522 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.7477, allocations: 4.906 kB / 0.9522 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.7477, allocations: 5.406 kB / 0.9522 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.7477, allocations: 0 / 0.9522 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.89e-05/0.7478, allocations: 22.77 kB / 0.9523 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.7478, allocations: 1.344 kB / 0.9523 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.138e-05/0.7478, allocations: 17.5 kB / 0.9523 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.7478, allocations: 2.594 kB / 0.9523 GB, free: 6.203 MB / 0.7169 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.0001094/0.7479, allocations: 125.5 kB / 0.9524 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.104e-05/0.748, allocations: 1.625 kB / 0.9524 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002005/0.7482, allocations: 126.4 kB / 0.9525 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.7482, allocations: 1.5 kB / 0.9525 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.7482, allocations: 5.5 kB / 0.9525 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.7482, allocations: 3.984 kB / 0.9525 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.291e-05/0.7483, allocations: 170.5 kB / 0.9527 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7483, allocations: 0 / 0.9527 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.776e-05/0.7484, allocations: 24.23 kB / 0.9527 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.7484, allocations: 7.875 kB / 0.9527 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.7484, allocations: 5.281 kB / 0.9527 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.7484, allocations: 1.344 kB / 0.9527 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.7484, allocations: 3.984 kB / 0.9527 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001368/0.7485, allocations: 123 kB / 0.9528 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.072e-05/0.7486, allocations: 82.55 kB / 0.9529 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.7486, allocations: 1.594 kB / 0.9529 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.508e-05/0.7486, allocations: 4 kB / 0.9529 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.7486, allocations: 12.2 kB / 0.9529 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.7487, allocations: 2.562 kB / 0.9529 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.273e-05/0.7487, allocations: 76.53 kB / 0.953 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7487, allocations: 0 / 0.953 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001933/0.7489, allocations: 19.16 kB / 0.953 GB, free: 5.465 MB / 0.7169 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.0001613/0.749, allocations: 117.2 kB / 0.9531 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001523/0.7492, allocations: 77.48 kB / 0.9532 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.7492, allocations: 0 / 0.9532 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.866e-05/0.7493, allocations: 34.86 kB / 0.9533 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001534/0.7494, allocations: 3.484 kB / 0.9533 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002465/0.7497, allocations: 159 kB / 0.9534 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001148/0.7498, allocations: 0.689 MB / 0.9541 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.372e-05/0.7499, allocations: 36.27 kB / 0.9541 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.684e-05/0.7499, allocations: 15.36 kB / 0.9541 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7499, allocations: 1.688 kB / 0.9541 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of Templates: time 0.002614/0.7525, allocations: 0.6063 MB / 0.9547 GB, free: 4.133 MB / 0.7169 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/jenkins/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