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.001663/0.001663, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002208/0.002208, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.466/1.466, allocations: 222.9 MB / 239.8 MB, free: 4.598 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.488/2.488, allocations: 390.2 MB / 0.6642 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 63.91 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8536/0.8555, allocations: 140.4 MB / 0.9489 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002825/0.8583, allocations: 0.6496 MB / 0.9496 GB, free: 8.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004509/0.8588, allocations: 61.81 kB / 0.9496 GB, free: 8.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.988e-05/0.8589, allocations: 0 / 0.9496 GB, free: 8.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.366e-05/0.8589, allocations: 0 / 0.9496 GB, free: 8.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.307e-06/0.859, allocations: 1.438 kB / 0.9496 GB, free: 8.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.8593, allocations: 7.938 kB / 0.9496 GB, free: 8.785 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.8595, allocations: 35.3 kB / 0.9497 GB, free: 8.766 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.555e-05/0.8596, allocations: 5.5 kB / 0.9497 GB, free: 8.762 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.233e-05/0.8596, allocations: 10.41 kB / 0.9497 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.419e-05/0.8596, allocations: 18.06 kB / 0.9497 GB, free: 8.746 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.8597, allocations: 1.312 kB / 0.9497 GB, free: 8.746 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.8598, allocations: 23.86 kB / 0.9497 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.17e-05/0.8599, allocations: 4.719 kB / 0.9497 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.443e-05/0.8599, allocations: 16.83 kB / 0.9497 GB, free: 8.719 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.8601, allocations: 35.34 kB / 0.9498 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.8601, allocations: 0 / 0.9498 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.895e-06/0.8601, allocations: 1.312 kB / 0.9498 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.8601, allocations: 0 / 0.9498 GB, free: 8.695 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.0004503/0.8606, allocations: 340.8 kB / 0.9501 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.616e-05/0.8607, allocations: 8.375 kB / 0.9501 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.11e-05/0.8607, allocations: 3.75 kB / 0.9501 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.783e-05/0.8608, allocations: 166.4 kB / 0.9503 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.8608, allocations: 3.188 kB / 0.9503 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.8609, allocations: 3.156 kB / 0.9503 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.8611, allocations: 67.19 kB / 0.9503 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.8611, allocations: 192 / 0.9503 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.8612, allocations: 9.5 kB / 0.9504 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.8612, allocations: 0.9688 kB / 0.9504 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.8614, allocations: 103.5 kB / 0.9505 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002341/0.8617, allocations: 173 kB / 0.9506 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.8618, allocations: 74.98 kB / 0.9507 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.023e-05/0.8619, allocations: 32.22 kB / 0.9507 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003947/0.8623, allocations: 405.7 kB / 0.9511 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.8624, allocations: 34.5 kB / 0.9511 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.402e-06/0.8624, allocations: 1.375 kB / 0.9511 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003679/0.8627, allocations: 112.5 kB / 0.9512 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.8628, allocations: 52.78 kB / 0.9513 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.496e-05/0.8629, allocations: 99.22 kB / 0.9514 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.8629, allocations: 35.02 kB / 0.9514 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.972e-05/0.8629, allocations: 80.14 kB / 0.9515 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.77e-05/0.863, allocations: 19.83 kB / 0.9515 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.699e-05/0.863, allocations: 32.7 kB / 0.9516 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.837e-05/0.8631, allocations: 320.2 kB / 0.9519 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.587e-05/0.8632, allocations: 20.36 kB / 0.9519 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.166e-05/0.8633, allocations: 20.36 kB / 0.9519 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.8634, allocations: 64.3 kB / 0.952 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.8635, allocations: 0 / 0.952 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002127/0.8637, allocations: 97.45 kB / 0.9521 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.8637, allocations: 5.344 kB / 0.9521 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.8637, allocations: 7.922 kB / 0.9521 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.8638, allocations: 1.156 kB / 0.9521 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.8639, allocations: 15.38 kB / 0.9521 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.864, allocations: 3.938 kB / 0.9521 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.062e-05/0.864, allocations: 9.375 kB / 0.9521 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.864, allocations: 10.92 kB / 0.9521 GB, free: 6.359 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.0001779/0.8642, allocations: 121.2 kB / 0.9522 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.8642, allocations: 2.312 kB / 0.9522 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.8645, allocations: 125.9 kB / 0.9523 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.8646, allocations: 1.594 kB / 0.9523 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.8646, allocations: 5.281 kB / 0.9523 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.8646, allocations: 0 / 0.9523 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.8647, allocations: 175.4 kB / 0.9525 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.8647, allocations: 7.922 kB / 0.9525 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.354e-05/0.8648, allocations: 18.47 kB / 0.9525 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.8649, allocations: 9.359 kB / 0.9525 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.8649, allocations: 1.031 kB / 0.9526 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.8649, allocations: 5.234 kB / 0.9526 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8649, allocations: 0 / 0.9526 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001973/0.8651, allocations: 118.8 kB / 0.9527 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.74e-05/0.8651, allocations: 86.36 kB / 0.9528 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.8652, allocations: 5.172 kB / 0.9528 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.121e-05/0.8652, allocations: 1.219 kB / 0.9528 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.8653, allocations: 8.25 kB / 0.9528 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.8653, allocations: 10.36 kB / 0.9528 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.565e-05/0.8653, allocations: 76.41 kB / 0.9528 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.6e-07/0.8653, allocations: 0 / 0.9528 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003044/0.8656, allocations: 14.88 kB / 0.9529 GB, free: 5.625 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.0001958/0.8658, allocations: 116.3 kB / 0.953 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001881/0.866, allocations: 58.8 kB / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.866, allocations: 0 / 0.953 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.52e-05/0.8661, allocations: 43.67 kB / 0.9531 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.8663, allocations: 7.844 kB / 0.9531 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003643/0.8667, allocations: 155.5 kB / 0.9532 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.8669, allocations: 0.683 MB / 0.9539 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001152/0.867, allocations: 39.03 kB / 0.9539 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.8671, allocations: 12.53 kB / 0.9539 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of SimCode: time 1.362e-06/0.8671, allocations: 0 / 0.9539 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of Templates: time 0.00388/0.871, allocations: 0.5974 MB / 0.9545 GB, free: 4.309 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