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.001538/0.001538, allocations: 107.6 kB / 16.27 MB, free: 6.41 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.001754/0.001754, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.396/1.396, allocations: 222.9 MB / 240.9 MB, free: 15.22 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.183/2.183, allocations: 390.3 MB / 0.6653 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 65.84 kB / 0.8132 GB, free: 33.01 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2962, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001978/0.2982, allocations: 0.598 MB / 0.9508 GB, free: 8.281 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002957/0.2986, allocations: 55.8 kB / 0.9509 GB, free: 8.227 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.053e-05/0.2986, allocations: 0 / 0.9509 GB, free: 8.227 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.504e-05/0.2986, allocations: 0 / 0.9509 GB, free: 8.227 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.879e-06/0.2987, allocations: 0 / 0.9509 GB, free: 8.227 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.299, allocations: 19.92 kB / 0.9509 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.408e-05/0.2991, allocations: 31.95 kB / 0.951 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.992e-05/0.2992, allocations: 4 kB / 0.951 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.146e-05/0.2992, allocations: 11.94 kB / 0.951 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.574e-05/0.2992, allocations: 19.97 kB / 0.951 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.2993, allocations: 0 / 0.951 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.83e-05/0.2994, allocations: 19.98 kB / 0.951 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.253e-05/0.2994, allocations: 12 kB / 0.951 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.2994, allocations: 11.92 kB / 0.951 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.2996, allocations: 35.88 kB / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2996, allocations: 0 / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.854e-06/0.2996, allocations: 0 / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.2996, allocations: 0 / 0.9511 GB, free: 8.062 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.0003647/0.3, allocations: 347.4 kB / 0.9514 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3, allocations: 8.031 kB / 0.9514 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.3, allocations: 4.938 kB / 0.9514 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.3002, allocations: 164.6 kB / 0.9516 GB, free: 7.461 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.3002, allocations: 4.375 kB / 0.9516 GB, free: 7.457 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.3002, allocations: 12.36 kB / 0.9516 GB, free: 7.445 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.3003, allocations: 62.17 kB / 0.9516 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.3004, allocations: 192 / 0.9516 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.3004, allocations: 3.938 kB / 0.9516 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3004, allocations: 0 / 0.9516 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00015/0.3005, allocations: 107.9 kB / 0.9517 GB, free: 7.27 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.3007, allocations: 169.6 kB / 0.9519 GB, free: 7.055 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.3009, allocations: 74.53 kB / 0.952 GB, free: 6.973 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.83e-05/0.3009, allocations: 33.17 kB / 0.952 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003515/0.3013, allocations: 409.3 kB / 0.9524 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.3013, allocations: 30.56 kB / 0.9524 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.3013, allocations: 0 / 0.9524 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0002703/0.3016, allocations: 117.6 kB / 0.9525 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.3016, allocations: 59.39 kB / 0.9526 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.308e-05/0.3017, allocations: 93.77 kB / 0.9527 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.3017, allocations: 29.7 kB / 0.9527 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.41e-05/0.3017, allocations: 80.14 kB / 0.9528 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.2e-05/0.3018, allocations: 23.73 kB / 0.9528 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.987e-05/0.3018, allocations: 33.7 kB / 0.9528 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3019, allocations: 310.8 kB / 0.9531 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.877e-05/0.302, allocations: 27.92 kB / 0.9532 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.555e-05/0.302, allocations: 27.91 kB / 0.9532 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.599e-05/0.3021, allocations: 57.5 kB / 0.9533 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3021, allocations: 0 / 0.9533 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001425/0.3023, allocations: 97.45 kB / 0.9533 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3023, allocations: 7.984 kB / 0.9534 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.3023, allocations: 7.938 kB / 0.9534 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3024, allocations: 0 / 0.9534 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.3025, allocations: 19.94 kB / 0.9534 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3025, allocations: 3.984 kB / 0.9534 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.316e-05/0.3025, allocations: 8 kB / 0.9534 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.3025, allocations: 7.984 kB / 0.9534 GB, free: 5.352 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.0001395/0.3027, allocations: 121.5 kB / 0.9535 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.382e-05/0.3027, allocations: 3.906 kB / 0.9535 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002147/0.3029, allocations: 129.5 kB / 0.9536 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3029, allocations: 8 kB / 0.9536 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3029, allocations: 0 / 0.9536 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3029, allocations: 3.938 kB / 0.9537 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.3031, allocations: 169.7 kB / 0.9538 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3031, allocations: 4 kB / 0.9538 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.587e-05/0.3032, allocations: 15.94 kB / 0.9538 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.3032, allocations: 7.922 kB / 0.9538 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3032, allocations: 11.98 kB / 0.9539 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3032, allocations: 0 / 0.9539 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3032, allocations: 0 / 0.9539 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.3034, allocations: 121 kB / 0.954 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.69e-05/0.3034, allocations: 85.03 kB / 0.954 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.3034, allocations: 0 / 0.954 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.69e-05/0.3035, allocations: 7.938 kB / 0.9541 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.3035, allocations: 4 kB / 0.9541 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/0.3035, allocations: 7.984 kB / 0.9541 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.876e-05/0.3036, allocations: 81.33 kB / 0.9541 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3036, allocations: 0 / 0.9541 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002037/0.3038, allocations: 20 kB / 0.9542 GB, free: 4.465 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.0001872/0.304, allocations: 111.2 kB / 0.9543 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001609/0.3041, allocations: 75.83 kB / 0.9543 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3041, allocations: 0 / 0.9543 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.559e-05/0.3042, allocations: 35.92 kB / 0.9544 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.3043, allocations: 5.875 kB / 0.9544 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003296/0.3047, allocations: 182.6 kB / 0.9546 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.3049, allocations: 0.6844 MB / 0.9552 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.915e-05/0.305, allocations: 15.44 kB / 0.9552 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.305, allocations: 0 / 0.9552 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of Templates: time 0.002416/0.3074, allocations: 0.9488 MB / 0.9562 GB, free: 2.348 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