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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002799/0.002799, allocations: 193.8 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.271/2.271, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.053/5.053, allocations: 461.9 MB / 0.7344 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 65.98 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2719, allocations: 157.4 MB / 1.052 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001974/0.2739, allocations: 0.6604 MB / 1.053 GB, free: 7.98 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002899/0.2742, allocations: 67.77 kB / 1.053 GB, free: 7.914 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.78e-05/0.2742, allocations: 0 / 1.053 GB, free: 7.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.42e-05/0.2743, allocations: 3.938 kB / 1.053 GB, free: 7.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.723e-06/0.2743, allocations: 0 / 1.053 GB, free: 7.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000317/0.2746, allocations: 7.984 kB / 1.053 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.618e-05/0.2747, allocations: 27.98 kB / 1.053 GB, free: 7.875 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.2748, allocations: 8 kB / 1.053 GB, free: 7.867 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.546e-05/0.2748, allocations: 15.97 kB / 1.053 GB, free: 7.852 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.949e-05/0.2749, allocations: 8 kB / 1.053 GB, free: 7.844 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.2749, allocations: 0 / 1.053 GB, free: 7.844 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.065e-05/0.275, allocations: 15.98 kB / 1.053 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.18e-05/0.275, allocations: 11.98 kB / 1.053 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.825e-05/0.275, allocations: 23.86 kB / 1.053 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.55e-05/0.2751, allocations: 31.89 kB / 1.053 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2752, allocations: 4 kB / 1.053 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2752, allocations: 0 / 1.053 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.2752, allocations: 0 / 1.053 GB, free: 7.758 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.0003119/0.2755, allocations: 331.6 kB / 1.054 GB, free: 7.383 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2755, allocations: 8.625 kB / 1.054 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.2756, allocations: 42.73 kB / 1.054 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.2756, allocations: 0.9375 kB / 1.054 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.2757, allocations: 172.5 kB / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.2758, allocations: 384 / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.2758, allocations: 8.375 kB / 1.054 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.2759, allocations: 62.22 kB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.276, allocations: 3.938 kB / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.276, allocations: 4 kB / 1.054 GB, free: 7.035 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.276, allocations: 4 kB / 1.054 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.2761, allocations: 99.81 kB / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002023/0.2763, allocations: 177.6 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.2765, allocations: 82.42 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.608e-05/0.2765, allocations: 28.84 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003474/0.2769, allocations: 405.5 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.2769, allocations: 38.56 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.183e-06/0.2769, allocations: 0 / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002887/0.2772, allocations: 117.9 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.2773, allocations: 55.34 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.321e-05/0.2773, allocations: 97.77 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.2773, allocations: 29.69 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.427e-05/0.2774, allocations: 84.14 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.351e-05/0.2774, allocations: 19.75 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.876e-05/0.2775, allocations: 29.7 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.2776, allocations: 318.8 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.309e-05/0.2777, allocations: 19.98 kB / 1.055 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.837e-05/0.2777, allocations: 19.98 kB / 1.055 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.2778, allocations: 65.48 kB / 1.055 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.2778, allocations: 0 / 1.055 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001529/0.278, allocations: 101.4 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.278, allocations: 7.938 kB / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.278, allocations: 0 / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.278, allocations: 0 / 1.056 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.891e-05/0.2782, allocations: 23.98 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.2782, allocations: 0 / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.212e-05/0.2782, allocations: 4 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.2782, allocations: 4 kB / 1.056 GB, free: 5.016 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.0001394/0.2783, allocations: 123.4 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.2784, allocations: 11.84 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002054/0.2786, allocations: 129.4 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.2786, allocations: 3.984 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2786, allocations: 0 / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2786, allocations: 3.984 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.2787, allocations: 177.6 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2788, allocations: 0 / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.769e-05/0.2788, allocations: 19.98 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.2788, allocations: 3.938 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.2788, allocations: 4 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2789, allocations: 0 / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2789, allocations: 4 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001505/0.279, allocations: 125 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.488e-05/0.2791, allocations: 84.98 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.2791, allocations: 4 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.715e-05/0.2791, allocations: 4 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.2791, allocations: 11.92 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.2792, allocations: 4 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.716e-05/0.2792, allocations: 79.28 kB / 1.056 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2792, allocations: 0 / 1.056 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001999/0.2794, allocations: 12 kB / 1.056 GB, free: 4.125 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.0005314/0.2799, allocations: 0.6747 MB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001625/0.2801, allocations: 75.84 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.2801, allocations: 4 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.287e-05/0.2802, allocations: 35.97 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001427/0.2803, allocations: 4 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.2807, allocations: 191.4 kB / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.281, allocations: 0.6845 MB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.75e-05/0.2811, allocations: 43.8 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.2811, allocations: 15.44 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.2811, allocations: 0 / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.881/2.162, allocations: 1.475 MB / 1.06 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003354/2.163, allocations: 211.4 kB / 1.06 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/3.905, allocations: 64 / 1.06 GB, free: 0.7227 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > 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