Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009479/0.0009478, allocations: 91.92 kB / 16.02 MB, free: 80 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.001216/0.001216, allocations: 177 kB / 16.92 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.443/1.443, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.707/2.707, allocations: 462.7 MB / 0.7371 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003313, allocations: 10.97 kB / 0.9034 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2941, allocations: 159.6 MB / 1.059 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.000699/0.2949, allocations: 322.8 kB / 1.06 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002816/0.2952, allocations: 55.78 kB / 1.06 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.492e-05/0.2952, allocations: 0 / 1.06 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.607e-05/0.2952, allocations: 3.938 kB / 1.06 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.27e-06/0.2952, allocations: 0 / 1.06 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002461/0.2955, allocations: 19.98 kB / 1.06 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.016e-05/0.2956, allocations: 23.97 kB / 1.06 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.271e-05/0.2956, allocations: 8 kB / 1.06 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.229e-05/0.2957, allocations: 11.98 kB / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.109e-05/0.2957, allocations: 12 kB / 1.06 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.2957, allocations: 0 / 1.06 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.365e-05/0.2958, allocations: 19.97 kB / 1.06 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.618e-05/0.2958, allocations: 7.984 kB / 1.06 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.613e-05/0.2959, allocations: 45.58 kB / 1.06 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.265e-05/0.296, allocations: 19.95 kB / 1.06 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.296, allocations: 0 / 1.06 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.403e-06/0.296, allocations: 0 / 1.06 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.296, allocations: 0 / 1.06 GB, free: 4.457 MB / 0.8106 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.0003114/0.2963, allocations: 335.5 kB / 1.06 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2964, allocations: 11.97 kB / 1.06 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.739e-05/0.2964, allocations: 4.938 kB / 1.06 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.2965, allocations: 172.5 kB / 1.06 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.2965, allocations: 4.375 kB / 1.06 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.2965, allocations: 8.375 kB / 1.06 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.2967, allocations: 62.22 kB / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.2967, allocations: 4.188 kB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.2967, allocations: 3.938 kB / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.2967, allocations: 4 kB / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.2969, allocations: 99.88 kB / 1.061 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001732/0.2971, allocations: 181.4 kB / 1.061 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.2972, allocations: 74.55 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.076e-05/0.2973, allocations: 32.84 kB / 1.061 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003721/0.2976, allocations: 405.5 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.2977, allocations: 34.56 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.2977, allocations: 4 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002646/0.298, allocations: 122.1 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.298, allocations: 51.41 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.058e-05/0.2981, allocations: 105.7 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.2981, allocations: 29.69 kB / 1.062 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.783e-05/0.2981, allocations: 80.14 kB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/0.2982, allocations: 19.75 kB / 1.062 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.2982, allocations: 17.72 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2984, allocations: 322.8 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.87e-05/0.2984, allocations: 19.98 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.331e-05/0.2984, allocations: 19.98 kB / 1.062 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/0.2985, allocations: 56.84 kB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2986, allocations: 0 / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001466/0.2987, allocations: 101.4 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.2987, allocations: 9.562 kB / 1.062 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2987, allocations: 3.938 kB / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.2988, allocations: 0 / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.2989, allocations: 19.98 kB / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.2989, allocations: 4 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.977e-05/0.2989, allocations: 0 / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.2989, allocations: 4 kB / 1.062 GB, free: 1.762 MB / 0.8106 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.000154/0.2991, allocations: 121.8 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.2991, allocations: 7.906 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002438/0.2994, allocations: 133.3 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2994, allocations: 4 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2994, allocations: 0 / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2994, allocations: 0 / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.2995, allocations: 169.7 kB / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2996, allocations: 0 / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.142e-05/0.2996, allocations: 23.98 kB / 1.063 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2996, allocations: 3.938 kB / 1.063 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.2996, allocations: 0 / 1.063 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.2997, allocations: 0 / 1.063 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2997, allocations: 3.938 kB / 1.063 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.2998, allocations: 125 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.2999, allocations: 84.98 kB / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.2999, allocations: 8 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.481e-05/0.2999, allocations: 0 / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.3, allocations: 7.984 kB / 1.063 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.3, allocations: 4 kB / 1.063 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.844e-05/0.3, allocations: 79.28 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3, allocations: 0 / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002001/0.3002, allocations: 16 kB / 1.063 GB, free: 0.8828 MB / 0.8106 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.0002118/0.3004, allocations: 127.1 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000132/0.3006, allocations: 52.62 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3006, allocations: 3.938 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.914e-05/0.3006, allocations: 40.08 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001437/0.3008, allocations: 13.48 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003158/0.3011, allocations: 188.3 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.3014, allocations: 0.6809 MB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.956e-05/0.3014, allocations: 19.42 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of SimCode: time 4.21e-07/0.3015, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of Templates: time 0.002568/0.304, allocations: 0.9363 MB / 1.065 GB, free: 14.76 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches