Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_11_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.007465/0.007465, allocations: 101.7 kB / 15.73 MB, free: 6.055 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.001808/0.001808, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.674/2.674, allocations: 469.8 MB / 0.7425 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 67.91 kB / 1.065 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8957/0.8969, allocations: 159.1 MB / 1.221 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003246/0.9002, allocations: 1.529 MB / 1.222 GB, free: 0.5859 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004608/0.9006, allocations: 143.5 kB / 1.222 GB, free: 456 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.32e-05/0.9007, allocations: 0 / 1.222 GB, free: 456 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.681e-05/0.9007, allocations: 3.938 kB / 1.222 GB, free: 452 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.997e-05/0.9008, allocations: 3.938 kB / 1.222 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.9012, allocations: 27.97 kB / 1.222 GB, free: 420 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.9013, allocations: 43.91 kB / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.9014, allocations: 11.98 kB / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.63e-05/0.9014, allocations: 11.94 kB / 1.222 GB, free: 352 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.077e-05/0.9015, allocations: 23.91 kB / 1.222 GB, free: 328 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.9015, allocations: 4 kB / 1.222 GB, free: 324 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.34e-05/0.9016, allocations: 15.98 kB / 1.222 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.193e-05/0.9016, allocations: 11.98 kB / 1.222 GB, free: 296 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.705e-05/0.9017, allocations: 15.88 kB / 1.222 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.9018, allocations: 48.78 kB / 1.222 GB, free: 232 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.9018, allocations: 0 / 1.222 GB, free: 232 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.373e-06/0.9018, allocations: 8 kB / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.9018, allocations: 0 / 1.222 GB, free: 224 kB / 0.9356 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.0005653/0.9024, allocations: 350.9 kB / 1.223 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.9024, allocations: 8.031 kB / 1.223 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.9025, allocations: 12.92 kB / 1.223 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.9026, allocations: 172.3 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.9027, allocations: 4.375 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.9027, allocations: 384 / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.9029, allocations: 70.22 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.9029, allocations: 192 / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.9029, allocations: 3.938 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.9029, allocations: 0 / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.9031, allocations: 47.89 kB / 1.223 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004395/0.9036, allocations: 272.8 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.9039, allocations: 70.47 kB / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.781e-05/0.904, allocations: 20.84 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003097/0.9043, allocations: 401.5 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.9043, allocations: 30.56 kB / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.713e-06/0.9043, allocations: 0 / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0004123/0.9048, allocations: 101.6 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.9048, allocations: 55.39 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.838e-05/0.9049, allocations: 105.8 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.9049, allocations: 29.7 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.982e-05/0.9049, allocations: 88.2 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.905, allocations: 7.938 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.905, allocations: 25.66 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.9051, allocations: 318.8 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-05/0.9052, allocations: 19.98 kB / 1.225 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.229e-05/0.9053, allocations: 23.97 kB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.9054, allocations: 40.83 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.9054, allocations: 0 / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000213/0.9057, allocations: 85.59 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.9057, allocations: 4 kB / 1.225 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.9057, allocations: 0 / 1.225 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.9057, allocations: 4.328 kB / 1.225 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.485e-05/0.9058, allocations: 15.92 kB / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.9058, allocations: 0 / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.689e-05/0.9058, allocations: 4 kB / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.9059, allocations: 0 / 1.225 GB, free: 13.56 MB / 0.9512 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 9.595e-05/0.9059, allocations: 126.3 kB / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/0.906, allocations: 0 / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002716/0.9062, allocations: 89.84 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.9062, allocations: 0 / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.9062, allocations: 0 / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.9063, allocations: 0 / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.9064, allocations: 173.5 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.9064, allocations: 4 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.481e-05/0.9065, allocations: 15.92 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.9065, allocations: 3.938 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.9065, allocations: 3.938 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.9065, allocations: 0 / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9065, allocations: 4 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.9068, allocations: 175.4 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.9068, allocations: 81.11 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.9069, allocations: 0 / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.881e-05/0.9069, allocations: 7.984 kB / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.907, allocations: 8 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.907, allocations: 0 / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.666e-05/0.907, allocations: 87.27 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.907, allocations: 0 / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002359/0.9073, allocations: 15.94 kB / 1.226 GB, free: 12.67 MB / 0.9512 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.0001971/0.9075, allocations: 103.2 kB / 1.226 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002463/0.9077, allocations: 51.88 kB / 1.226 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.9077, allocations: 0 / 1.226 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.9078, allocations: 23.98 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.9081, allocations: 3.938 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004688/0.9086, allocations: 129.4 kB / 1.226 GB, free: 12.33 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.9091, allocations: 0.6807 MB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001002/0.9092, allocations: 4 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.255e-05/0.9092, allocations: 11.44 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of SimCode: time 9.82e-07/0.9092, allocations: 0 / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of Templates: time 0.003545/0.9127, allocations: 0.7707 MB / 1.227 GB, free: 10.84 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches