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.001075/0.001075, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001039/0.00104, allocations: 193.4 kB / 17.31 MB, free: 5.613 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.292/1.292, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.536/2.536, allocations: 442.6 MB / 0.7165 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002373, allocations: 63.5 kB / 0.8773 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3312, allocations: 153 MB / 1.027 GB, free: 1.98 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001823/0.333, allocations: 0.5924 MB / 1.027 GB, free: 1.387 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002396/0.3333, allocations: 51.8 kB / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.723e-05/0.3333, allocations: 0 / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.56e-05/0.3334, allocations: 4 kB / 1.027 GB, free: 1.332 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.3334, allocations: 0 / 1.027 GB, free: 1.332 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.3337, allocations: 23.91 kB / 1.027 GB, free: 1.309 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.851e-05/0.3338, allocations: 31.97 kB / 1.027 GB, free: 1.277 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.103e-05/0.3338, allocations: 4 kB / 1.027 GB, free: 1.273 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.907e-05/0.3338, allocations: 7.984 kB / 1.027 GB, free: 1.266 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 2.899e-05/0.3339, allocations: 11.98 kB / 1.027 GB, free: 1.254 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.3339, allocations: 4 kB / 1.027 GB, free: 1.25 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.82e-05/0.334, allocations: 19.98 kB / 1.027 GB, free: 1.23 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.631e-05/0.334, allocations: 15.92 kB / 1.027 GB, free: 1.215 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.188e-05/0.334, allocations: 11.92 kB / 1.027 GB, free: 1.203 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.101e-05/0.3341, allocations: 31.89 kB / 1.028 GB, free: 1.172 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3342, allocations: 7.938 kB / 1.028 GB, free: 1.164 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3342, allocations: 4 kB / 1.028 GB, free: 1.16 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.3342, allocations: 0 / 1.028 GB, free: 1.16 MB / 0.795 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.0002887/0.3345, allocations: 331.6 kB / 1.028 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.3345, allocations: 8.031 kB / 1.028 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.3345, allocations: 4.938 kB / 1.028 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.536e-05/0.3346, allocations: 174.7 kB / 1.028 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.3347, allocations: 4.375 kB / 1.028 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.3347, allocations: 4.375 kB / 1.028 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.3348, allocations: 70.17 kB / 1.028 GB, free: 496 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.3348, allocations: 192 / 1.028 GB, free: 496 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3349, allocations: 3.938 kB / 1.028 GB, free: 492 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3349, allocations: 0 / 1.028 GB, free: 492 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.335, allocations: 103.9 kB / 1.028 GB, free: 388 kB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.3352, allocations: 173.6 kB / 1.028 GB, free: 164 kB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.3353, allocations: 74.48 kB / 1.028 GB, free: 80 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.421e-05/0.3353, allocations: 32.84 kB / 1.028 GB, free: 44 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003444/0.3357, allocations: 409.5 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.3357, allocations: 30.56 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.3357, allocations: 0 / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002383/0.336, allocations: 125.8 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.336, allocations: 51.41 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.262e-05/0.3361, allocations: 97.77 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.3361, allocations: 29.7 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.462e-05/0.3361, allocations: 80.14 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.3361, allocations: 19.75 kB / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.3362, allocations: 37.7 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3363, allocations: 314.8 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.788e-05/0.3364, allocations: 19.98 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.845e-05/0.3364, allocations: 23.98 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.359e-05/0.3365, allocations: 65.38 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3365, allocations: 0 / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001386/0.3366, allocations: 97.5 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.3367, allocations: 4 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3367, allocations: 7.938 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.3367, allocations: 4 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.3368, allocations: 15.98 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3368, allocations: 4 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.155e-05/0.3368, allocations: 4 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.3369, allocations: 7.938 kB / 1.03 GB, free: 14.46 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.0001036/0.337, allocations: 121.8 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.337, allocations: 7.906 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002103/0.3372, allocations: 133.3 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.3372, allocations: 4 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.3372, allocations: 0 / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3372, allocations: 0 / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.3374, allocations: 177.5 kB / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3374, allocations: 0 / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.3374, allocations: 19.98 kB / 1.03 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.3375, allocations: 3.938 kB / 1.03 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.3375, allocations: 8 kB / 1.03 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3375, allocations: 0 / 1.03 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3375, allocations: 4 kB / 1.03 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.3376, allocations: 121 kB / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.3377, allocations: 85.05 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.3377, allocations: 0 / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.684e-05/0.3377, allocations: 0 / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-05/0.3378, allocations: 11.98 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.3378, allocations: 4 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.586e-05/0.3378, allocations: 79.28 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3378, allocations: 0 / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002052/0.338, allocations: 20 kB / 1.031 GB, free: 13.57 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.0001559/0.3382, allocations: 111.2 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001418/0.3383, allocations: 67.84 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3383, allocations: 0 / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.504e-05/0.3384, allocations: 35.92 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.3385, allocations: 8 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002873/0.3388, allocations: 148.9 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.3391, allocations: 0.6817 MB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.642e-05/0.3391, allocations: 39.8 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.639e-05/0.3392, allocations: 15.44 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of SimCode: time 4.4e-07/0.3392, allocations: 0 / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of Templates: time 0.002453/0.3416, allocations: 0.6103 MB / 1.032 GB, free: 11.8 MB / 0.8106 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 -s gbode -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