Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_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.001617/0.001617, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001987/0.001987, allocations: 193.7 kB / 16.53 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.488/1.488, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.832/2.832, allocations: 472.6 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 68.34 kB / 0.912 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2961, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002665/0.2989, allocations: 1.539 MB / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003178/0.2992, allocations: 131.6 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.465e-05/0.2992, allocations: 4 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.505e-05/0.2993, allocations: 3.938 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.067e-05/0.2993, allocations: 3.938 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.2996, allocations: 31.89 kB / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.672e-05/0.2997, allocations: 31.98 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.2998, allocations: 15.98 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.762e-05/0.2999, allocations: 19.92 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.438e-05/0.2999, allocations: 15.92 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.2999, allocations: 4 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.205e-05/0.3, allocations: 19.92 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.3, allocations: 15.92 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.034e-05/0.3001, allocations: 15.94 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.3002, allocations: 43.88 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3002, allocations: 4 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3002, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.3002, allocations: 0 / 1.07 GB, free: 8.539 MB / 0.8262 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.0005282/0.3008, allocations: 351.7 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.3008, allocations: 12.03 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.3008, allocations: 0.9375 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.301, allocations: 168.3 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.301, allocations: 8.375 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.301, allocations: 384 / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.3012, allocations: 70.2 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.3013, allocations: 192 / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.3013, allocations: 3.938 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.3013, allocations: 4 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.3015, allocations: 47.89 kB / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004285/0.3019, allocations: 296.6 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/0.3023, allocations: 54.55 kB / 1.071 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.3024, allocations: 32.83 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002681/0.3027, allocations: 393.5 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.3027, allocations: 38.56 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.163e-06/0.3027, allocations: 0 / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004662/0.3032, allocations: 93.62 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.3032, allocations: 51.41 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.057e-05/0.3033, allocations: 109.8 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.3033, allocations: 25.7 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/0.3034, allocations: 88.14 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.3034, allocations: 7.844 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.728e-05/0.3035, allocations: 21.7 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3036, allocations: 318.8 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.3037, allocations: 23.91 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.855e-05/0.3038, allocations: 19.98 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.304, allocations: 49.09 kB / 1.072 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.304, allocations: 0 / 1.072 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000224/0.3042, allocations: 81.55 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.3042, allocations: 4 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3042, allocations: 0 / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.3042, allocations: 0 / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.43e-05/0.3043, allocations: 11.98 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3043, allocations: 3.938 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.618e-05/0.3044, allocations: 11.98 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.3045, allocations: 0 / 1.072 GB, free: 5.867 MB / 0.8262 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 0.0001062/0.3046, allocations: 118.3 kB / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.3046, allocations: 0 / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000276/0.3049, allocations: 85.55 kB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3049, allocations: 0 / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3049, allocations: 4 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3049, allocations: 0 / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.3051, allocations: 169.6 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3051, allocations: 0 / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.777e-05/0.3052, allocations: 11.94 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.3052, allocations: 3.984 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.3052, allocations: 4 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3052, allocations: 3.938 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3052, allocations: 0 / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.3055, allocations: 179.4 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.3056, allocations: 77.11 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.3056, allocations: 3.984 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.158e-05/0.3057, allocations: 4 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.412e-05/0.3057, allocations: 15.98 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.3057, allocations: 0 / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.645e-05/0.3058, allocations: 95.27 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3058, allocations: 0 / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002377/0.306, allocations: 8 kB / 1.073 GB, free: 4.992 MB / 0.8262 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.0001498/0.3062, allocations: 99.25 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002415/0.3065, allocations: 51.89 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3065, allocations: 0 / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.3066, allocations: 27.97 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.3069, allocations: 15.81 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003145/0.3072, allocations: 133.3 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.3075, allocations: 0.6807 MB / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.53e-05/0.3075, allocations: 7.984 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.3076, allocations: 11.44 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3076, allocations: 0 / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of Templates: time 0.002985/0.3106, allocations: 0.7673 MB / 1.075 GB, free: 3.145 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches