Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009053/0.009053, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.001646/0.001646, allocations: 191.7 kB / 16.67 MB, free: 6.391 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.498/2.498, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 63.69 kB / 0.9509 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3674, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003359/0.3708, allocations: 1.523 MB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003993/0.3712, allocations: 132.5 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.026e-05/0.3713, allocations: 4 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.316e-05/0.3713, allocations: 3.938 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.773e-05/0.3714, allocations: 3.938 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003213/0.3717, allocations: 31.91 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.066e-05/0.3718, allocations: 43.89 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.974e-05/0.3719, allocations: 8 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.727e-05/0.372, allocations: 19.92 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.068e-05/0.372, allocations: 19.92 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.3721, allocations: 4 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.854e-05/0.3722, allocations: 19.98 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.225e-05/0.3722, allocations: 11.92 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.516e-05/0.3722, allocations: 19.92 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.3724, allocations: 43.81 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.3724, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.953e-06/0.3724, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.3724, allocations: 0 / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005698/0.373, allocations: 351.4 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.3731, allocations: 12.03 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.3731, allocations: 8.938 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.3733, allocations: 172.3 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.3733, allocations: 4.312 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.3733, allocations: 4.375 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.3736, allocations: 66.16 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.3736, allocations: 192 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.3736, allocations: 3.938 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3736, allocations: 8 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.3738, allocations: 43.95 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004344/0.3743, allocations: 276.8 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.3746, allocations: 58.48 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.3747, allocations: 36.83 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002922/0.375, allocations: 397.5 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.3751, allocations: 30.56 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3751, allocations: 0 / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004059/0.3755, allocations: 93.62 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.3755, allocations: 59.34 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.127e-05/0.3756, allocations: 109.8 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.3757, allocations: 29.7 kB / 1.091 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.3757, allocations: 88.16 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.3757, allocations: 11.95 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.3758, allocations: 17.7 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.3759, allocations: 318.8 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.534e-05/0.376, allocations: 19.98 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.251e-05/0.3761, allocations: 20.16 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.3763, allocations: 52.89 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3763, allocations: 0 / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000227/0.3765, allocations: 77.59 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.3765, allocations: 4 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.3766, allocations: 4 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3766, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.224e-05/0.3767, allocations: 11.98 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.3767, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.944e-05/0.3768, allocations: 7.984 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.3768, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.745e-05/0.3769, allocations: 115.7 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/0.3769, allocations: 15.89 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002693/0.3772, allocations: 81.55 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.3772, allocations: 0 / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3772, allocations: 7.938 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.3772, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.3774, allocations: 169.6 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.3774, allocations: 0 / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.518e-05/0.3775, allocations: 11.98 kB / 1.092 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3775, allocations: 0 / 1.092 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.3775, allocations: 0 / 1.092 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.3775, allocations: 11.98 kB / 1.092 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3775, allocations: 0 / 1.092 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.3778, allocations: 168.9 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.555e-05/0.3779, allocations: 81.06 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.3779, allocations: 4 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.378, allocations: 7.984 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.378, allocations: 11.98 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-06/0.378, allocations: 7.938 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.132e-05/0.3781, allocations: 87.58 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3781, allocations: 3.938 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002381/0.3783, allocations: 8 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000181/0.3785, allocations: 103.2 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002738/0.3788, allocations: 51.95 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3788, allocations: 0 / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.3789, allocations: 27.97 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.3793, allocations: 5.828 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003391/0.3796, allocations: 129.5 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.3799, allocations: 0.6768 MB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.705e-05/0.38, allocations: 8 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.38, allocations: 15.42 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.38, allocations: 0 / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of Templates: time 0.00338/0.3834, allocations: 0.7496 MB / 1.095 GB, free: 10.24 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches