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: 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.001405/0.001405, allocations: 104.4 kB / 16.27 MB, free: 6.414 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.001437/0.001437, 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.348/1.348, 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 11.0.1-master/package.mo): time 2.632/2.632, allocations: 469.4 MB / 0.7427 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 71.14 kB / 0.9088 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3206, allocations: 159.1 MB / 1.064 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.00182/0.3224, allocations: 0.5855 MB / 1.065 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002762/0.3227, allocations: 55.8 kB / 1.065 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.13e-05/0.3227, allocations: 3.938 kB / 1.065 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.593e-05/0.3228, allocations: 0 / 1.065 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.3228, allocations: 0 / 1.065 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.3231, allocations: 23.97 kB / 1.065 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.302e-05/0.3232, allocations: 31.97 kB / 1.065 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.405e-05/0.3232, allocations: 0 / 1.065 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.148e-05/0.3232, allocations: 11.98 kB / 1.065 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.651e-05/0.3233, allocations: 15.98 kB / 1.065 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.3233, allocations: 4 kB / 1.065 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.345e-05/0.3234, allocations: 15.98 kB / 1.065 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.916e-05/0.3234, allocations: 11.92 kB / 1.065 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.556e-05/0.3235, allocations: 15.88 kB / 1.065 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.206e-05/0.3236, allocations: 35.89 kB / 1.065 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.3236, allocations: 0 / 1.065 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3236, allocations: 0 / 1.065 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.3236, allocations: 0 / 1.065 GB, free: 14.21 MB / 0.8419 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.0003142/0.3239, allocations: 343.6 kB / 1.065 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3239, allocations: 8.625 kB / 1.065 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.368e-05/0.324, allocations: 4.844 kB / 1.065 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.893e-05/0.3241, allocations: 168.6 kB / 1.066 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.3241, allocations: 384 / 1.066 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.3241, allocations: 8.312 kB / 1.066 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.3243, allocations: 62.22 kB / 1.066 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.3243, allocations: 192 / 1.066 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.3243, allocations: 7.938 kB / 1.066 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3243, allocations: 7.938 kB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.3244, allocations: 107.9 kB / 1.066 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.3246, allocations: 169.6 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.3247, allocations: 70.55 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.708e-05/0.3248, allocations: 24.84 kB / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003263/0.3251, allocations: 409.5 kB / 1.066 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.3251, allocations: 34.56 kB / 1.066 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 3.918e-06/0.3252, allocations: 3.984 kB / 1.066 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0002367/0.3254, allocations: 121.8 kB / 1.066 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.3254, allocations: 55.41 kB / 1.067 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.014e-05/0.3255, allocations: 97.75 kB / 1.067 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.3255, allocations: 33.7 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 2.683e-05/0.3255, allocations: 80.14 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.3256, allocations: 15.75 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.97e-05/0.3256, allocations: 29.7 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.187e-05/0.3257, allocations: 318.8 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.158e-05/0.3258, allocations: 23.98 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.232e-05/0.3258, allocations: 20.42 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.336e-05/0.3259, allocations: 64.92 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3259, allocations: 0 / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001274/0.326, allocations: 97.52 kB / 1.067 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.3261, allocations: 4 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3261, allocations: 3.938 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3261, allocations: 0 / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.818e-05/0.3262, allocations: 19.98 kB / 1.067 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3262, allocations: 0 / 1.067 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.022e-05/0.3262, allocations: 8 kB / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.3262, allocations: 4 kB / 1.067 GB, free: 11.52 MB / 0.8419 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.0001222/0.3264, allocations: 127.7 kB / 1.067 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.313e-05/0.3264, allocations: 7.906 kB / 1.067 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002086/0.3266, allocations: 125.4 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.3266, allocations: 4 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3266, allocations: 3.984 kB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3266, allocations: 4 kB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.3267, allocations: 173.6 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3268, allocations: 3.938 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-05/0.3268, allocations: 27.92 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.227e-06/0.3268, allocations: 3.938 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.3269, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3269, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3269, allocations: 4 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001396/0.327, allocations: 121 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/0.3271, allocations: 88.95 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.3271, allocations: 4 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.558e-05/0.3271, allocations: 3.984 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.3271, allocations: 4 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.3271, allocations: 8 kB / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 2.213e-05/0.3272, allocations: 75.28 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.384e-06/0.3272, allocations: 0 / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001929/0.3274, allocations: 19.92 kB / 1.068 GB, free: 10.62 MB / 0.8419 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.0001684/0.3275, allocations: 117.2 kB / 1.068 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001497/0.3277, allocations: 75.89 kB / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3277, allocations: 0 / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 4.219e-05/0.3278, allocations: 31.98 kB / 1.068 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.3279, allocations: 8.766 kB / 1.068 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002757/0.3282, allocations: 178.5 kB / 1.069 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.3284, allocations: 0.6884 MB / 1.069 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.632e-05/0.3285, allocations: 15.44 kB / 1.069 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3285, allocations: 0 / 1.069 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of Templates: time 0.002483/0.3309, allocations: 0.9569 MB / 1.07 GB, free: 8.496 MB / 0.8419 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