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.00116/0.00116, allocations: 107.9 kB / 16.41 MB, free: 6.504 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.001108/0.001108, allocations: 192.2 kB / 17.35 MB, free: 5.738 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.627/2.627, allocations: 461.7 MB / 0.7352 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 71.84 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9984/0.9999, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002795/1.003, allocations: 1.515 MB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003674/1.003, allocations: 135.6 kB / 1.21 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.384e-05/1.003, allocations: 0 / 1.21 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.936e-05/1.003, allocations: 0 / 1.21 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.383e-05/1.003, allocations: 7.938 kB / 1.21 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/1.004, allocations: 15.92 kB / 1.21 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.482e-05/1.004, allocations: 27.98 kB / 1.21 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/1.004, allocations: 19.91 kB / 1.21 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.246e-05/1.004, allocations: 8 kB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.595e-05/1.004, allocations: 19.92 kB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/1.004, allocations: 0 / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.339e-05/1.004, allocations: 15.98 kB / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.607e-05/1.004, allocations: 7.938 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.336e-05/1.004, allocations: 19.92 kB / 1.21 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/1.004, allocations: 31.89 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/1.004, allocations: 0 / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.813e-06/1.004, allocations: 0 / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.783e-06/1.004, allocations: 8 kB / 1.21 GB, free: 11.83 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.0004864/1.005, allocations: 339.3 kB / 1.21 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/1.005, allocations: 12.03 kB / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/1.005, allocations: 0.9375 kB / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/1.005, allocations: 164.4 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/1.005, allocations: 4.375 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/1.005, allocations: 4.375 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/1.005, allocations: 62.17 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/1.005, allocations: 4.172 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/1.005, allocations: 3.938 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/1.005, allocations: 0 / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/1.005, allocations: 43.95 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003962/1.006, allocations: 260.9 kB / 1.211 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/1.006, allocations: 70.41 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/1.006, allocations: 24.91 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001384/1.006, allocations: 85.09 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/1.007, allocations: 38.48 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.623e-06/1.007, allocations: 0 / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004199/1.007, allocations: 93.64 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/1.007, allocations: 51.41 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.328e-05/1.007, allocations: 101.8 kB / 1.211 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/1.007, allocations: 29.7 kB / 1.211 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/1.007, allocations: 80.14 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/1.007, allocations: 5.734 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.877e-05/1.007, allocations: 21.7 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001499/1.007, allocations: 318.8 kB / 1.212 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/1.008, allocations: 19.98 kB / 1.212 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.912e-05/1.008, allocations: 27.91 kB / 1.212 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/1.008, allocations: 40.81 kB / 1.212 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/1.008, allocations: 0 / 1.212 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002248/1.008, allocations: 85.5 kB / 1.212 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/1.008, allocations: 4 kB / 1.212 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/1.008, allocations: 0 / 1.212 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/1.008, allocations: 0 / 1.212 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.522e-05/1.008, allocations: 11.98 kB / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/1.008, allocations: 3.938 kB / 1.212 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.742e-05/1.008, allocations: 7.984 kB / 1.212 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/1.008, allocations: 4 kB / 1.212 GB, free: 9.609 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 9.578e-05/1.008, allocations: 117.8 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/1.008, allocations: 0 / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002664/1.009, allocations: 85.66 kB / 1.212 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.009, allocations: 0 / 1.212 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/1.009, allocations: 48 / 1.212 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.096e-05/1.009, allocations: 81.09 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/1.009, allocations: 0 / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.64e-05/1.009, allocations: 15.98 kB / 1.212 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/1.009, allocations: 11.92 kB / 1.212 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000297/1.009, allocations: 156.9 kB / 1.212 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003059/1.01, allocations: 246.7 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.958e-05/1.01, allocations: 27.98 kB / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.334e-05/1.01, allocations: 83.27 kB / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of Backend: time 4.91e-07/1.01, allocations: 0 / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004774/1.01, allocations: 106.3 kB / 1.213 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005457/1.011, allocations: 0.5609 MB / 1.213 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of Templates: time 0.003154/1.014, allocations: 0.8103 MB / 1.214 GB, free: 7.211 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/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