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.001387/0.001387, allocations: 108.6 kB / 16.41 MB, free: 6.027 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.001456/0.001457, allocations: 188.7 kB / 17.34 MB, free: 5.633 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.426/1.426, allocations: 222.9 MB / 241 MB, free: 15.17 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.495/2.495, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 63.91 kB / 1.019 GB, free: 9.371 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9125/0.9139, allocations: 151.6 MB / 1.167 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002006/0.916, allocations: 0.575 MB / 1.168 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003179/0.9163, allocations: 63.77 kB / 1.168 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.9164, allocations: 0 / 1.168 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.948e-05/0.9164, allocations: 0 / 1.168 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.9165, allocations: 4 kB / 1.168 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.9168, allocations: 19.92 kB / 1.168 GB, free: 3.152 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.779e-05/0.9169, allocations: 23.98 kB / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.954e-05/0.917, allocations: 7.984 kB / 1.168 GB, free: 3.121 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.278e-05/0.917, allocations: 15.92 kB / 1.168 GB, free: 3.105 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.006e-05/0.917, allocations: 8 kB / 1.168 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.9171, allocations: 0 / 1.168 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.348e-05/0.9172, allocations: 19.97 kB / 1.168 GB, free: 3.078 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.713e-05/0.9172, allocations: 15.98 kB / 1.168 GB, free: 3.062 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.533e-05/0.9172, allocations: 11.94 kB / 1.168 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.9174, allocations: 39.83 kB / 1.168 GB, free: 3.012 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.9174, allocations: 4 kB / 1.168 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9174, allocations: 0 / 1.168 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.816e-06/0.9174, allocations: 0 / 1.168 GB, free: 3.008 MB / 0.8887 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.0003784/0.9178, allocations: 331.6 kB / 1.168 GB, free: 2.633 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.9178, allocations: 20.52 kB / 1.168 GB, free: 2.613 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.9179, allocations: 4.844 kB / 1.168 GB, free: 2.609 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.918, allocations: 168.2 kB / 1.169 GB, free: 2.41 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.918, allocations: 8.375 kB / 1.169 GB, free: 2.402 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.918, allocations: 4.375 kB / 1.169 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001541/0.9182, allocations: 74.09 kB / 1.169 GB, free: 2.32 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.9182, allocations: 192 / 1.169 GB, free: 2.32 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.9182, allocations: 3.938 kB / 1.169 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.9182, allocations: 0 / 1.169 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.9184, allocations: 103.9 kB / 1.169 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001922/0.9186, allocations: 165.7 kB / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.9187, allocations: 70.55 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.85e-05/0.9188, allocations: 36.78 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003849/0.9192, allocations: 413.8 kB / 1.169 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.9192, allocations: 34.5 kB / 1.17 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.9192, allocations: 0 / 1.17 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.000261/0.9195, allocations: 113.5 kB / 1.17 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.9195, allocations: 55.41 kB / 1.17 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.473e-05/0.9196, allocations: 93.86 kB / 1.17 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.9196, allocations: 25.7 kB / 1.17 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.755e-05/0.9197, allocations: 80.14 kB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.9197, allocations: 29.53 kB / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.9197, allocations: 33.7 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.9199, allocations: 310.8 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.181e-05/0.9199, allocations: 27.86 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.674e-05/0.92, allocations: 23.98 kB / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001006/0.9201, allocations: 56.83 kB / 1.17 GB, free: 472 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.9201, allocations: 0 / 1.17 GB, free: 472 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001361/0.9202, allocations: 90.33 kB / 1.17 GB, free: 376 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.9202, allocations: 15.94 kB / 1.17 GB, free: 360 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.9203, allocations: 3.938 kB / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.9203, allocations: 0 / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.9204, allocations: 23.92 kB / 1.17 GB, free: 332 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.9204, allocations: 0 / 1.17 GB, free: 332 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.491e-05/0.9204, allocations: 11.78 kB / 1.17 GB, free: 320 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.9204, allocations: 7.984 kB / 1.17 GB, free: 312 kB / 0.8887 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.0001622/0.9206, allocations: 123.5 kB / 1.171 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.237e-05/0.9206, allocations: 4 kB / 1.171 GB, free: 176 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/0.9209, allocations: 133.5 kB / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.9209, allocations: 0 / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.9209, allocations: 0 / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.9209, allocations: 0 / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.9211, allocations: 177.5 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.9211, allocations: 4 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.983e-05/0.9211, allocations: 19.98 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.9212, allocations: 7.938 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.9212, allocations: 3.938 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.9212, allocations: 4 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9212, allocations: 0 / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000157/0.9214, allocations: 121 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.9214, allocations: 88.95 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.9214, allocations: 4 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.476e-05/0.9214, allocations: 0 / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.9215, allocations: 11.98 kB / 1.171 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.9215, allocations: 0 / 1.171 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.765e-05/0.9215, allocations: 81.75 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9215, allocations: 0 / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000205/0.9218, allocations: 16 kB / 1.171 GB, free: 15.41 MB / 0.9044 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.0002072/0.922, allocations: 115.2 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001509/0.9221, allocations: 59.84 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.9221, allocations: 4 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 4.904e-05/0.9222, allocations: 35.97 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.9223, allocations: 8 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003712/0.9227, allocations: 174.5 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.923, allocations: 0.6846 MB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.9e-05/0.923, allocations: 15.42 kB / 1.172 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.923, allocations: 0 / 1.172 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of Templates: time 0.002628/0.9257, allocations: 0.9603 MB / 1.173 GB, free: 13.3 MB / 0.9044 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=480 -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