Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00621/0.006211, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.001293/0.001293, allocations: 193.2 kB / 16.79 MB, free: 5.809 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.382/1.382, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.702/2.702, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001325, allocations: 69.64 kB / 0.899 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2875, allocations: 157.4 MB / 1.053 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001937/0.2894, allocations: 0.6439 MB / 1.053 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002863/0.2898, allocations: 51.84 kB / 1.053 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.938e-06/0.2898, allocations: 0 / 1.053 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.2898, allocations: 4 kB / 1.053 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.19e-06/0.2898, allocations: 0 / 1.053 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.29, allocations: 15.92 kB / 1.053 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.644e-05/0.2901, allocations: 4 kB / 1.053 GB, free: 7.562 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.12e-05/0.2901, allocations: 4 kB / 1.053 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.238e-05/0.2901, allocations: 0 / 1.053 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 1.945e-05/0.2901, allocations: 0 / 1.053 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.207e-06/0.2902, allocations: 0 / 1.053 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.801e-05/0.2902, allocations: 7.984 kB / 1.053 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.919e-05/0.2903, allocations: 15.92 kB / 1.053 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.054e-05/0.2903, allocations: 3.938 kB / 1.053 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.538e-05/0.2904, allocations: 4 kB / 1.053 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2904, allocations: 4 kB / 1.053 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2904, allocations: 0 / 1.053 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.506e-06/0.2904, allocations: 0 / 1.053 GB, free: 7.523 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002979/0.2907, allocations: 315.5 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2907, allocations: 11.97 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.797e-05/0.2908, allocations: 0.9375 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.982e-05/0.2909, allocations: 164.4 kB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.729e-06/0.2909, allocations: 4.375 kB / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.095e-05/0.2909, allocations: 4.375 kB / 1.054 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.972e-05/0.291, allocations: 38.19 kB / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.291, allocations: 192 / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.291, allocations: 3.938 kB / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.291, allocations: 0 / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.203e-05/0.2911, allocations: 4 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.2912, allocations: 153.7 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.348e-05/0.2913, allocations: 22.61 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.224e-05/0.2913, allocations: 16.92 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001613/0.2915, allocations: 85.09 kB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.2915, allocations: 30.56 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.2915, allocations: 3.938 kB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001617/0.2917, allocations: 41.64 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.2917, allocations: 55.34 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.776e-05/0.2918, allocations: 93.86 kB / 1.054 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.2918, allocations: 33.81 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.194e-05/0.2918, allocations: 80.14 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.2918, allocations: 0 / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.2919, allocations: 17.72 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.292, allocations: 310.8 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.09e-05/0.292, allocations: 0 / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.118e-05/0.292, allocations: 4 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.936e-05/0.2921, allocations: 20.86 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2921, allocations: 3.984 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.248e-05/0.2921, allocations: 33.7 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.2922, allocations: 4 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2922, allocations: 4 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.2922, allocations: 3.938 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.423e-05/0.2923, allocations: 3.984 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.2923, allocations: 4 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.629e-05/0.2923, allocations: 3.906 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.2923, allocations: 3.984 kB / 1.055 GB, free: 5.73 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.259e-05/0.2924, allocations: 117.8 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-06/0.2924, allocations: 0 / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.021e-05/0.2925, allocations: 52.97 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2925, allocations: 0 / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.2925, allocations: 4 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.2925, allocations: 0 / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.012e-05/0.2926, allocations: 145.6 kB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2926, allocations: 0 / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.433e-05/0.2927, allocations: 8.016 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2927, allocations: 4 kB / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.2927, allocations: 3.938 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2927, allocations: 0 / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2927, allocations: 0 / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.001e-05/0.2928, allocations: 69.06 kB / 1.055 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.415e-05/0.2928, allocations: 77.11 kB / 1.055 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.048e-05/0.2928, allocations: 3.938 kB / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.358e-05/0.2929, allocations: 8.031 kB / 1.055 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.617e-05/0.2929, allocations: 7.938 kB / 1.055 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.2929, allocations: 0 / 1.055 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.566e-05/0.2929, allocations: 79.28 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2929, allocations: 0 / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001904/0.2931, allocations: 4 kB / 1.056 GB, free: 5.059 MB / 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.000187/0.2933, allocations: 107.2 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.956e-05/0.2934, allocations: 12 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2934, allocations: 0 / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.275e-05/0.2934, allocations: 7.938 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.2936, allocations: 4 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002222/0.2938, allocations: 108.5 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.294, allocations: 0.6731 MB / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.812e-05/0.2941, allocations: 7.438 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of SimCode: time 3.7e-07/0.2941, allocations: 0 / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.001771/0.2958, allocations: 455.8 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches