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.001107/0.001107, allocations: 99.11 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 185.2 kB / 16.92 MB, free: 6.75 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.462/1.462, allocations: 223.3 MB / 241 MB, free: 5.234 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.48/2.48, allocations: 390.9 MB / 0.667 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003878/0.0003878, allocations: 8 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7192/0.7196, allocations: 142.4 MB / 0.9557 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0006232/0.7203, allocations: 320.6 kB / 0.956 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002573/0.7206, allocations: 57 kB / 0.9561 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.373e-05/0.7206, allocations: 4 kB / 0.9561 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.406e-05/0.7206, allocations: 1.438 kB / 0.9561 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.7206, allocations: 0 / 0.9561 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.7209, allocations: 12.08 kB / 0.9561 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.905e-05/0.721, allocations: 30.88 kB / 0.9561 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.025e-05/0.721, allocations: 5.359 kB / 0.9561 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.978e-05/0.721, allocations: 6.938 kB / 0.9561 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.986e-05/0.7211, allocations: 17.92 kB / 0.9562 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.301e-05/0.7211, allocations: 1.438 kB / 0.9562 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.593e-05/0.7212, allocations: 15.14 kB / 0.9562 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.7212, allocations: 9.578 kB / 0.9562 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.79e-05/0.7212, allocations: 46.45 kB / 0.9562 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.681e-05/0.7213, allocations: 24.14 kB / 0.9562 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.7213, allocations: 0 / 0.9562 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.392e-06/0.7213, allocations: 0 / 0.9562 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.216e-06/0.7213, allocations: 1.375 kB / 0.9562 GB, free: 7.371 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.0002368/0.7216, allocations: 326.8 kB / 0.9566 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.7216, allocations: 10.03 kB / 0.9566 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.897e-05/0.7217, allocations: 5.75 kB / 0.9566 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.895e-05/0.7217, allocations: 163.6 kB / 0.9567 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.7217, allocations: 6.969 kB / 0.9567 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.7218, allocations: 7.188 kB / 0.9567 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.7219, allocations: 63.69 kB / 0.9568 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.7219, allocations: 192 / 0.9568 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.7219, allocations: 3.938 kB / 0.9568 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.7219, allocations: 5.359 kB / 0.9568 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.7221, allocations: 106.9 kB / 0.9569 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001299/0.7222, allocations: 173.9 kB / 0.9571 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.784e-05/0.7223, allocations: 70.98 kB / 0.9571 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.224e-05/0.7224, allocations: 35.25 kB / 0.9572 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002252/0.7226, allocations: 406.2 kB / 0.9576 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.7226, allocations: 35.91 kB / 0.9576 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.082e-06/0.7226, allocations: 7.875 kB / 0.9576 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002199/0.7229, allocations: 113 kB / 0.9577 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.125e-05/0.7229, allocations: 53.97 kB / 0.9578 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.447e-05/0.7229, allocations: 99.25 kB / 0.9579 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.7229, allocations: 25.7 kB / 0.9579 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.054e-05/0.7229, allocations: 84.14 kB / 0.958 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.723, allocations: 19.91 kB / 0.958 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-05/0.723, allocations: 22.64 kB / 0.958 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.215e-05/0.723, allocations: 316.9 kB / 0.9583 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.525e-05/0.7231, allocations: 20.08 kB / 0.9583 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.298e-05/0.7231, allocations: 24.05 kB / 0.9584 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.609e-05/0.7232, allocations: 61.11 kB / 0.9584 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.7232, allocations: 0 / 0.9584 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001165/0.7234, allocations: 97.36 kB / 0.9585 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.7234, allocations: 4.438 kB / 0.9585 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.7234, allocations: 5 kB / 0.9585 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.7234, allocations: 5.375 kB / 0.9585 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.605e-05/0.7235, allocations: 18.45 kB / 0.9585 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.7235, allocations: 1.125 kB / 0.9585 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.098e-05/0.7235, allocations: 8.906 kB / 0.9585 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.7235, allocations: 6.281 kB / 0.9586 GB, free: 5.043 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.0001095/0.7237, allocations: 129.5 kB / 0.9587 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.669e-06/0.7237, allocations: 2.062 kB / 0.9587 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001802/0.7239, allocations: 126.9 kB / 0.9588 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.7239, allocations: 1.875 kB / 0.9588 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.7239, allocations: 0 / 0.9588 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.7239, allocations: 0 / 0.9588 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.758e-05/0.724, allocations: 178.9 kB / 0.959 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.724, allocations: 1.344 kB / 0.959 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.526e-05/0.724, allocations: 26.27 kB / 0.959 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.7241, allocations: 5.156 kB / 0.959 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.7241, allocations: 1.531 kB / 0.959 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.7241, allocations: 0 / 0.959 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.7241, allocations: 5.25 kB / 0.959 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.7242, allocations: 118.3 kB / 0.9591 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.7242, allocations: 82.64 kB / 0.9592 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.7242, allocations: 5.312 kB / 0.9592 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.482e-05/0.7243, allocations: 4 kB / 0.9592 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.078e-05/0.7243, allocations: 9.109 kB / 0.9592 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-06/0.7243, allocations: 2.594 kB / 0.9592 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.108e-05/0.7243, allocations: 75.28 kB / 0.9593 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7243, allocations: 0 / 0.9593 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000194/0.7245, allocations: 23.81 kB / 0.9593 GB, free: 4.305 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.0001445/0.7247, allocations: 116.4 kB / 0.9594 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001278/0.7248, allocations: 62.5 kB / 0.9595 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.7248, allocations: 0 / 0.9595 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.507e-05/0.7249, allocations: 34.8 kB / 0.9595 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.725, allocations: 16.69 kB / 0.9595 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002286/0.7252, allocations: 171 kB / 0.9597 GB, free: 4 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.937e-05/0.7254, allocations: 0.6815 MB / 0.9604 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.567e-05/0.7254, allocations: 22.48 kB / 0.9604 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7254, allocations: 3.938 kB / 0.9604 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of Templates: time 0.002112/0.7275, allocations: 0.942 MB / 0.9613 GB, free: 2.812 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/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