Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009405/0.0009405, allocations: 98.56 kB / 16.02 MB, free: 76 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.001195/0.001195, allocations: 186.8 kB / 16.92 MB, free: 6.75 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.459/1.459, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.782/2.782, allocations: 462.6 MB / 0.7371 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 9.125 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2939, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001919/0.2959, allocations: 1.243 MB / 1.061 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004184/0.2964, allocations: 119.7 kB / 1.061 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.432e-05/0.2964, allocations: 0 / 1.061 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.037e-05/0.2964, allocations: 4 kB / 1.061 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.146e-05/0.2965, allocations: 3.938 kB / 1.061 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.2967, allocations: 23.98 kB / 1.061 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.174e-05/0.2968, allocations: 27.92 kB / 1.061 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.2969, allocations: 7.984 kB / 1.061 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.308e-05/0.297, allocations: 15.92 kB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.324e-05/0.297, allocations: 7.984 kB / 1.061 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.297, allocations: 3.938 kB / 1.061 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.328e-05/0.2971, allocations: 12 kB / 1.061 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.2971, allocations: 4 kB / 1.061 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.433e-05/0.2972, allocations: 41.61 kB / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.913e-05/0.2973, allocations: 23.91 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2973, allocations: 0 / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.174e-06/0.2973, allocations: 0 / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.2973, allocations: 0 / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004831/0.2978, allocations: 343.7 kB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.2979, allocations: 15.97 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.554e-05/0.2979, allocations: 8.844 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.298, allocations: 168.4 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.2981, allocations: 384 / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.2981, allocations: 8.312 kB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.2983, allocations: 58.23 kB / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.423e-06/0.2983, allocations: 192 / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.2984, allocations: 11.92 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.2984, allocations: 4 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.2986, allocations: 47.95 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003916/0.299, allocations: 261 kB / 1.062 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003301/0.2993, allocations: 70.41 kB / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.2994, allocations: 28.91 kB / 1.062 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.2996, allocations: 81.11 kB / 1.062 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.2996, allocations: 46.48 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.2996, allocations: 4 kB / 1.062 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004191/0.3, allocations: 101.6 kB / 1.062 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.3001, allocations: 55.34 kB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.109e-05/0.3002, allocations: 109.8 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.3002, allocations: 25.7 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.148e-05/0.3003, allocations: 80.14 kB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.3003, allocations: 15.83 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/0.3003, allocations: 13.72 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3005, allocations: 314.8 kB / 1.063 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.762e-05/0.3006, allocations: 27.98 kB / 1.063 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.626e-05/0.3007, allocations: 27.97 kB / 1.063 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.3009, allocations: 52.83 kB / 1.063 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3009, allocations: 3.938 kB / 1.063 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002269/0.3011, allocations: 89.58 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.3011, allocations: 8 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3011, allocations: 0 / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.3012, allocations: 0 / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.598e-05/0.3013, allocations: 15.98 kB / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3013, allocations: 0 / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.955e-05/0.3013, allocations: 8 kB / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.3013, allocations: 0 / 1.063 GB, free: 1.125 MB / 0.8106 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 (rea2Int.y,fac.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.0001084/0.3015, allocations: 121.8 kB / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.3015, allocations: 7.938 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000274/0.3018, allocations: 89.66 kB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3018, allocations: 0 / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3018, allocations: 3.938 kB / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3018, allocations: 4 kB / 1.063 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.302, allocations: 173.5 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.302, allocations: 4.047 kB / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.3021, allocations: 15.97 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3021, allocations: 0 / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-06/0.3021, allocations: 0 / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.3021, allocations: 4 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3021, allocations: 3.938 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002931/0.3024, allocations: 179.5 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.596e-05/0.3025, allocations: 81.09 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.3025, allocations: 0 / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.891e-05/0.3026, allocations: 16 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.08e-05/0.3027, allocations: 7.984 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.3027, allocations: 0 / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.894e-05/0.3027, allocations: 83.27 kB / 1.064 GB, free: 252 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3027, allocations: 3.938 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002225/0.3029, allocations: 16 kB / 1.064 GB, free: 232 kB / 0.8106 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 (fac.y,rea2Int.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.0001676/0.3031, allocations: 95.25 kB / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002371/0.3034, allocations: 55.95 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3034, allocations: 0 / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.3035, allocations: 31.97 kB / 1.064 GB, free: 36 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.3038, allocations: 11.94 kB / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003398/0.3041, allocations: 150.4 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.3044, allocations: 0.677 MB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.3044, allocations: 11.44 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3044, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.002196/0.3066, allocations: 0.7303 MB / 1.065 GB, free: 14.39 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches