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.001432/0.001432, allocations: 106.9 kB / 16.27 MB, free: 6.414 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.001565/0.001566, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.412/1.412, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.753/2.753, allocations: 469.4 MB / 0.7427 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 69.09 kB / 0.9088 GB, free: 14.15 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.308, allocations: 159.1 MB / 1.064 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003125/0.3112, allocations: 1.523 MB / 1.066 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003624/0.3116, allocations: 119.7 kB / 1.066 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.237e-05/0.3116, allocations: 0 / 1.066 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.867e-05/0.3117, allocations: 3.938 kB / 1.066 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.388e-05/0.3118, allocations: 3.938 kB / 1.066 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.312, allocations: 19.98 kB / 1.066 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.21e-05/0.3121, allocations: 31.91 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.3122, allocations: 8 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.439e-05/0.3122, allocations: 15.92 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.074e-05/0.3123, allocations: 19.86 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.3123, allocations: 4 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.467e-05/0.3124, allocations: 12 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.884e-05/0.3124, allocations: 11.97 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.278e-05/0.3125, allocations: 11.94 kB / 1.066 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.3126, allocations: 35.89 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3126, allocations: 0 / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3126, allocations: 0 / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.3126, allocations: 4 kB / 1.066 GB, free: 13.2 MB / 0.8419 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.0004796/0.3131, allocations: 339.8 kB / 1.066 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3131, allocations: 12.56 kB / 1.066 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.814e-05/0.3132, allocations: 8.844 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3133, allocations: 160.4 kB / 1.066 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.3133, allocations: 4.359 kB / 1.066 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/0.3134, allocations: 8.375 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.3136, allocations: 54.23 kB / 1.067 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.3136, allocations: 4.188 kB / 1.067 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.3136, allocations: 3.938 kB / 1.067 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3136, allocations: 0 / 1.067 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/0.3138, allocations: 39.95 kB / 1.067 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003881/0.3142, allocations: 272.8 kB / 1.067 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.3145, allocations: 62.48 kB / 1.067 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.95e-05/0.3146, allocations: 28.89 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001222/0.3148, allocations: 77.11 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.3148, allocations: 30.56 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.362e-06/0.3148, allocations: 4 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0003841/0.3152, allocations: 101.8 kB / 1.067 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.3152, allocations: 51.41 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.676e-05/0.3153, allocations: 105.8 kB / 1.067 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.3153, allocations: 25.7 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.021e-05/0.3154, allocations: 84.08 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.3154, allocations: 11.84 kB / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.3155, allocations: 21.72 kB / 1.067 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.3156, allocations: 314.8 kB / 1.068 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.375e-05/0.3157, allocations: 19.98 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.953e-05/0.3158, allocations: 19.97 kB / 1.068 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.3159, allocations: 44.77 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.316, allocations: 3.938 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002237/0.3162, allocations: 77.64 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.3162, allocations: 8 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3162, allocations: 0 / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.3162, allocations: 0 / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.145e-05/0.3163, allocations: 15.92 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.3163, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.815e-05/0.3164, allocations: 4 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.3164, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8419 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 7.953e-05/0.3165, allocations: 125.8 kB / 1.068 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.3165, allocations: 3.906 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002693/0.3168, allocations: 85.08 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3168, allocations: 4 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3168, allocations: 0 / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3168, allocations: 0 / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.317, allocations: 165.6 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.317, allocations: 8 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.416e-05/0.3171, allocations: 7.984 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3171, allocations: 4 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.3171, allocations: 0 / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3171, allocations: 0 / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3171, allocations: 0 / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.3174, allocations: 175.4 kB / 1.068 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.562e-05/0.3174, allocations: 81.09 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.3175, allocations: 0 / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-05/0.3176, allocations: 4 kB / 1.069 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.3176, allocations: 12.41 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.3176, allocations: 0 / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.754e-05/0.3177, allocations: 87.2 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3177, allocations: 0 / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000228/0.3179, allocations: 19.89 kB / 1.069 GB, free: 10.11 MB / 0.8419 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.0001521/0.3181, allocations: 103.8 kB / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002266/0.3183, allocations: 43.95 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3183, allocations: 0 / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.735e-05/0.3184, allocations: 27.91 kB / 1.069 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.3187, allocations: 7.938 kB / 1.069 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003322/0.319, allocations: 143.2 kB / 1.069 GB, free: 9.742 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.3193, allocations: 0.6768 MB / 1.07 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.3193, allocations: 15.44 kB / 1.07 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3193, allocations: 0 / 1.07 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of Templates: time 0.002093/0.3214, allocations: 0.734 MB / 1.07 GB, free: 8.297 MB / 0.8419 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