Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001514/0.001514, allocations: 100.4 kB / 16.27 MB, free: 5.969 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.001583/0.001583, allocations: 191.4 kB / 17.2 MB, free: 5.598 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.422/1.422, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.558/2.558, allocations: 437.1 MB / 0.7111 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 66.67 kB / 0.8699 GB, free: 2.168 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2824, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001773/0.2842, allocations: 0.5669 MB / 1.019 GB, free: 10.04 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002546/0.2845, allocations: 63.77 kB / 1.019 GB, free: 9.973 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.65e-05/0.2845, allocations: 7.938 kB / 1.019 GB, free: 9.965 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.693e-05/0.2846, allocations: 0 / 1.019 GB, free: 9.965 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.2846, allocations: 3.938 kB / 1.019 GB, free: 9.961 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.2849, allocations: 15.98 kB / 1.019 GB, free: 9.945 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.852e-05/0.2849, allocations: 35.95 kB / 1.019 GB, free: 9.91 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.51e-05/0.285, allocations: 4 kB / 1.019 GB, free: 9.906 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.557e-05/0.285, allocations: 4 kB / 1.019 GB, free: 9.902 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.57e-05/0.2851, allocations: 19.97 kB / 1.019 GB, free: 9.883 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.2851, allocations: 0 / 1.019 GB, free: 9.883 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.893e-05/0.2851, allocations: 15.98 kB / 1.019 GB, free: 9.867 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.1e-05/0.2852, allocations: 8 kB / 1.019 GB, free: 9.859 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.2852, allocations: 23.86 kB / 1.019 GB, free: 9.836 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.351e-05/0.2853, allocations: 27.91 kB / 1.019 GB, free: 9.809 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2853, allocations: 0 / 1.019 GB, free: 9.809 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2853, allocations: 0 / 1.019 GB, free: 9.809 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.2853, allocations: 0 / 1.019 GB, free: 9.809 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.000356/0.2857, allocations: 347.4 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.2857, allocations: 12.88 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.2858, allocations: 4.938 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.2859, allocations: 164.6 kB / 1.019 GB, free: 9.203 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.2859, allocations: 12.31 kB / 1.019 GB, free: 9.191 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.2859, allocations: 4.375 kB / 1.019 GB, free: 9.188 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.2861, allocations: 66.22 kB / 1.019 GB, free: 9.117 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.2861, allocations: 192 / 1.019 GB, free: 9.117 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.2861, allocations: 3.938 kB / 1.019 GB, free: 9.113 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.2861, allocations: 0 / 1.019 GB, free: 9.113 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.2863, allocations: 111.8 kB / 1.019 GB, free: 9.004 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001889/0.2865, allocations: 177.5 kB / 1.02 GB, free: 8.781 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.2866, allocations: 70.55 kB / 1.02 GB, free: 8.703 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.721e-05/0.2866, allocations: 36.84 kB / 1.02 GB, free: 8.664 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003674/0.287, allocations: 401.5 kB / 1.02 GB, free: 8.18 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.2871, allocations: 30.56 kB / 1.02 GB, free: 8.141 MB / 0.795 GB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.2871, allocations: 0 / 1.02 GB, free: 8.141 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.0002475/0.2873, allocations: 122.1 kB / 1.02 GB, free: 8.016 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.2874, allocations: 51.41 kB / 1.02 GB, free: 7.953 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.373e-05/0.2874, allocations: 105.8 kB / 1.02 GB, free: 7.84 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.2874, allocations: 25.7 kB / 1.02 GB, free: 7.809 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.044e-05/0.2875, allocations: 84.14 kB / 1.021 GB, free: 7.723 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.2875, allocations: 19.75 kB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.702e-05/0.2876, allocations: 33.7 kB / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.2877, allocations: 310.8 kB / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.796e-05/0.2878, allocations: 19.98 kB / 1.021 GB, free: 7.332 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.74e-05/0.2878, allocations: 24.03 kB / 1.021 GB, free: 7.309 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.2879, allocations: 60.83 kB / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2879, allocations: 0 / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001416/0.2881, allocations: 101.5 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.2881, allocations: 4 kB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.2881, allocations: 3.938 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.2881, allocations: 4 kB / 1.021 GB, free: 7.129 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.293e-05/0.2882, allocations: 15.98 kB / 1.021 GB, free: 7.113 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.2882, allocations: 4 kB / 1.021 GB, free: 7.109 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.006e-05/0.2883, allocations: 4 kB / 1.021 GB, free: 7.105 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.2883, allocations: 4 kB / 1.021 GB, free: 7.102 MB / 0.795 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.000134/0.2884, allocations: 129.8 kB / 1.021 GB, free: 6.965 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.2884, allocations: 3.906 kB / 1.021 GB, free: 6.961 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002217/0.2887, allocations: 125.4 kB / 1.021 GB, free: 6.832 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2887, allocations: 4 kB / 1.021 GB, free: 6.828 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2887, allocations: 3.984 kB / 1.021 GB, free: 6.824 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2887, allocations: 3.984 kB / 1.021 GB, free: 6.82 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.2888, allocations: 173.6 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2889, allocations: 0 / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.921e-05/0.2889, allocations: 27.92 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.2889, allocations: 3.938 kB / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.289, allocations: 8 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.289, allocations: 0 / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.289, allocations: 0 / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.2891, allocations: 117 kB / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.612e-05/0.2892, allocations: 85.05 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.2892, allocations: 3.938 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.697e-05/0.2893, allocations: 8 kB / 1.022 GB, free: 6.316 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.2893, allocations: 7.984 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.2893, allocations: 8 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.218e-05/0.2893, allocations: 75.28 kB / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2893, allocations: 0 / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0001985/0.2896, allocations: 19.98 kB / 1.022 GB, free: 6.207 MB / 0.795 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.0001863/0.2897, allocations: 115 kB / 1.022 GB, free: 6.086 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001597/0.2899, allocations: 80.5 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2899, allocations: 0 / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.079e-05/0.29, allocations: 36.14 kB / 1.022 GB, free: 5.973 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.2901, allocations: 4.219 kB / 1.022 GB, free: 5.969 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002966/0.2904, allocations: 186.4 kB / 1.022 GB, free: 5.754 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.2907, allocations: 0.683 MB / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.823e-05/0.2908, allocations: 19.44 kB / 1.023 GB, free: 5.027 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.2908, allocations: 0 / 1.023 GB, free: 5.027 MB / 0.795 GB Notification: Performance of Templates: time 0.002454/0.2932, allocations: 0.9534 MB / 1.024 GB, free: 4.074 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches