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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008329/0.008329, allocations: 100.2 kB / 15.73 MB, free: 6.012 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.00194/0.001941, allocations: 197.2 kB / 16.68 MB, free: 5.934 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.352/1.352, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.591/2.591, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 68.11 kB / 1.054 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9931/0.9946, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003272/0.998, allocations: 1.508 MB / 1.209 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003839/0.9984, allocations: 131.6 kB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.961e-05/0.9984, allocations: 0 / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.285e-05/0.9985, allocations: 0 / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.075e-05/0.9985, allocations: 3.938 kB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.9988, allocations: 27.91 kB / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.133e-05/0.9989, allocations: 23.98 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.999, allocations: 19.92 kB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.9991, allocations: 8 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.194e-05/0.9992, allocations: 19.91 kB / 1.209 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.9992, allocations: 4 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.587e-05/0.9993, allocations: 15.98 kB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.45e-05/0.9993, allocations: 3.938 kB / 1.209 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.179e-05/0.9993, allocations: 19.92 kB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.9995, allocations: 31.89 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.9995, allocations: 0 / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.152e-06/0.9995, allocations: 0 / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.9995, allocations: 7.938 kB / 1.21 GB, free: 11.77 MB / 0.9356 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.0005478/1, allocations: 347.3 kB / 1.21 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/1, allocations: 16.02 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/1, allocations: 0.9375 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/1, allocations: 160.4 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/1, allocations: 4.375 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/1, allocations: 384 / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/1.001, allocations: 66.17 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/1.001, allocations: 4.172 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/1.001, allocations: 3.938 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/1.001, allocations: 0 / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/1.001, allocations: 43.95 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003986/1.001, allocations: 260.9 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/1.002, allocations: 66.41 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.702e-05/1.002, allocations: 28.89 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/1.002, allocations: 85.09 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/1.002, allocations: 34.56 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/1.002, allocations: 0 / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004015/1.002, allocations: 89.64 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/1.002, allocations: 55.39 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.214e-05/1.002, allocations: 97.86 kB / 1.211 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/1.002, allocations: 25.7 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/1.002, allocations: 84.14 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/1.002, allocations: 13.67 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/1.003, allocations: 17.7 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001259/1.003, allocations: 318.8 kB / 1.211 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.747e-05/1.003, allocations: 23.91 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.89e-05/1.003, allocations: 19.98 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/1.003, allocations: 44.81 kB / 1.211 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/1.003, allocations: 3.938 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002203/1.003, allocations: 81.56 kB / 1.211 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/1.003, allocations: 4 kB / 1.211 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/1.003, allocations: 0 / 1.211 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/1.003, allocations: 0 / 1.211 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.203e-05/1.003, allocations: 15.92 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/1.003, allocations: 0 / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.614e-05/1.003, allocations: 7.984 kB / 1.211 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/1.003, allocations: 0 / 1.211 GB, free: 9.543 MB / 0.9356 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 8.123e-05/1.004, allocations: 117.8 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.445e-05/1.004, allocations: 0 / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/1.004, allocations: 85.14 kB / 1.212 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/1.004, allocations: 0 / 1.212 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.004, allocations: 3.938 kB / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/1.004, allocations: 0 / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/1.004, allocations: 165.6 kB / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/1.004, allocations: 0 / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.602e-05/1.004, allocations: 15.98 kB / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/1.004, allocations: 3.938 kB / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/1.004, allocations: 0.5625 kB / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/1.004, allocations: 0 / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.004, allocations: 0 / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002712/1.004, allocations: 179.4 kB / 1.212 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.604e-05/1.005, allocations: 84.95 kB / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/1.005, allocations: 12 kB / 1.212 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.153e-05/1.005, allocations: 3.984 kB / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.714e-05/1.005, allocations: 4 kB / 1.212 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/1.005, allocations: 7.984 kB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.397e-05/1.005, allocations: 79.28 kB / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.005, allocations: 0 / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002258/1.005, allocations: 8 kB / 1.212 GB, free: 8.684 MB / 0.9356 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.0001561/1.005, allocations: 107.2 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002283/1.005, allocations: 47.89 kB / 1.212 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/1.005, allocations: 0 / 1.212 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.985e-05/1.005, allocations: 27.97 kB / 1.212 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/1.006, allocations: 7.938 kB / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003305/1.006, allocations: 117.5 kB / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/1.006, allocations: 0.6768 MB / 1.213 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.646e-05/1.006, allocations: 11.94 kB / 1.213 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.657e-05/1.006, allocations: 11.44 kB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of SimCode: time 1.028e-05/1.006, allocations: 0 / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of Templates: time 0.003085/1.01, allocations: 0.7066 MB / 1.214 GB, free: 6.914 MB / 0.9356 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches