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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001016/0.001016, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001341/0.001342, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.524/2.524, allocations: 390.9 MB / 0.666 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003807/0.0003809, allocations: 15.94 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.752/0.7524, allocations: 142.4 MB / 0.9544 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0005526/0.753, allocations: 314.1 kB / 0.9547 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002334/0.7532, allocations: 61.12 kB / 0.9548 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.534e-05/0.7533, allocations: 0 / 0.9548 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.983e-05/0.7533, allocations: 0 / 0.9548 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.181e-06/0.7533, allocations: 0 / 0.9548 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.7535, allocations: 9.469 kB / 0.9548 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.784e-05/0.7536, allocations: 33.22 kB / 0.9548 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.935e-05/0.7536, allocations: 1.031 kB / 0.9548 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.073e-05/0.7537, allocations: 10.02 kB / 0.9549 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.01e-05/0.7537, allocations: 13.64 kB / 0.9549 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.7537, allocations: 0.9688 kB / 0.9549 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.494e-05/0.7538, allocations: 15.58 kB / 0.9549 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.7538, allocations: 9.422 kB / 0.9549 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.892e-05/0.7539, allocations: 35.92 kB / 0.9549 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.181e-05/0.7539, allocations: 20.88 kB / 0.9549 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.7539, allocations: 0 / 0.9549 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.144e-06/0.7539, allocations: 3.938 kB / 0.9549 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.586e-06/0.754, allocations: 5.531 kB / 0.955 GB, free: 7.359 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.0002278/0.7542, allocations: 326.9 kB / 0.9553 GB, free: 7 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.7542, allocations: 8.969 kB / 0.9553 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.409e-05/0.7543, allocations: 10.17 kB / 0.9553 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.955e-05/0.7543, allocations: 162 kB / 0.9554 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.7543, allocations: 2.062 kB / 0.9554 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.7544, allocations: 6.922 kB / 0.9554 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.7545, allocations: 58.17 kB / 0.9555 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.7545, allocations: 0 / 0.9555 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.7545, allocations: 13.03 kB / 0.9555 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.7545, allocations: 5.078 kB / 0.9555 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.7547, allocations: 106.2 kB / 0.9556 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001312/0.7549, allocations: 182 kB / 0.9558 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.949e-05/0.755, allocations: 74.12 kB / 0.9559 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.297e-05/0.755, allocations: 27.81 kB / 0.9559 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002189/0.7552, allocations: 401 kB / 0.9563 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.67e-05/0.7553, allocations: 35.75 kB / 0.9563 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.7553, allocations: 9.125 kB / 0.9563 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002198/0.7555, allocations: 112.2 kB / 0.9564 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.265e-05/0.7555, allocations: 56.92 kB / 0.9565 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.054e-05/0.7555, allocations: 91.3 kB / 0.9566 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.604e-06/0.7556, allocations: 29.7 kB / 0.9566 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.829e-06/0.7556, allocations: 80.33 kB / 0.9567 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.7556, allocations: 20.22 kB / 0.9567 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.7556, allocations: 0 / 0.9567 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.398e-05/0.7557, allocations: 325.6 kB / 0.957 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.419e-05/0.7557, allocations: 18.95 kB / 0.957 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.15e-05/0.7557, allocations: 24.17 kB / 0.957 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.915e-05/0.7558, allocations: 27.23 kB / 0.9571 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.7558, allocations: 0 / 0.9571 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001193/0.7559, allocations: 88.83 kB / 0.9572 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.7559, allocations: 4.844 kB / 0.9572 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.756, allocations: 0 / 0.9572 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.756, allocations: 1.531 kB / 0.9572 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.913e-05/0.7561, allocations: 27.42 kB / 0.9572 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.7561, allocations: 0 / 0.9572 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.037e-05/0.7561, allocations: 8.656 kB / 0.9572 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.7561, allocations: 7.969 kB / 0.9572 GB, free: 5.074 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 (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 initialization (11): * Single equations (assignments): 11 * 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 9.8e-05/0.7562, allocations: 136.4 kB / 0.9573 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-06/0.7562, allocations: 1.562 kB / 0.9573 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001935/0.7564, allocations: 127 kB / 0.9575 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.7564, allocations: 1.094 kB / 0.9575 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.7565, allocations: 0 / 0.9575 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.7565, allocations: 0.9062 kB / 0.9575 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.118e-05/0.7565, allocations: 182.7 kB / 0.9576 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.7566, allocations: 0 / 0.9576 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.087e-05/0.7566, allocations: 22.95 kB / 0.9576 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.7566, allocations: 0.9688 kB / 0.9577 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.7567, allocations: 5.938 kB / 0.9577 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.7567, allocations: 0 / 0.9577 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7567, allocations: 5.281 kB / 0.9577 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.7568, allocations: 122 kB / 0.9578 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.402e-05/0.7568, allocations: 78.23 kB / 0.9579 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.7568, allocations: 1.281 kB / 0.9579 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.56e-05/0.7569, allocations: 5.312 kB / 0.9579 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.7569, allocations: 7.891 kB / 0.9579 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.7569, allocations: 3.531 kB / 0.9579 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.122e-05/0.7569, allocations: 75.28 kB / 0.9579 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7569, allocations: 4 kB / 0.9579 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000204/0.7571, allocations: 14.84 kB / 0.958 GB, free: 4.336 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 (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.0001379/0.7573, allocations: 117.8 kB / 0.9581 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000123/0.7574, allocations: 59.33 kB / 0.9581 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.7574, allocations: 0 / 0.9581 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.63e-05/0.7575, allocations: 34.33 kB / 0.9582 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.7576, allocations: 15.3 kB / 0.9582 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.7578, allocations: 147.3 kB / 0.9583 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.051e-05/0.7579, allocations: 0.6833 MB / 0.959 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.699e-05/0.758, allocations: 39.44 kB / 0.959 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.124e-05/0.758, allocations: 17.28 kB / 0.959 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.758, allocations: 4 kB / 0.959 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of Templates: time 0.002382/0.7604, allocations: 0.5727 MB / 0.9596 GB, free: 3.031 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