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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 169 kB / 23.27 MB, free: 1.227 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9726/0.9726, allocations: 177.1 MB / 203.7 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.376/2.376, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 0.8898 GB, free: 9.707 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.731e-05/2.91e-05, allocations: 5.125 kB / 0.8898 GB, free: 9.703 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00189/0.001919, allocations: 0.6071 MB / 0.8904 GB, free: 9.098 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0002738/0.002193, allocations: 47.8 kB / 0.8904 GB, free: 9.051 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.002216, allocations: 0 / 0.8904 GB, free: 9.051 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.002234, allocations: 0 / 0.8904 GB, free: 9.051 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.133e-06/0.002241, allocations: 0 / 0.8904 GB, free: 9.051 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.002498, allocations: 7.984 kB / 0.8904 GB, free: 9.043 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 4.71e-05/0.002545, allocations: 7.984 kB / 0.8904 GB, free: 9.035 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 4.265e-05/0.002588, allocations: 7.938 kB / 0.8905 GB, free: 9.027 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 3.736e-05/0.002625, allocations: 8 kB / 0.8905 GB, free: 9.02 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 2.215e-05/0.002647, allocations: 0 / 0.8905 GB, free: 9.02 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.202e-05/0.002659, allocations: 0 / 0.8905 GB, free: 9.02 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 9.472e-05/0.002754, allocations: 15.86 kB / 0.8905 GB, free: 9.004 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.414e-05/0.002768, allocations: 3.984 kB / 0.8905 GB, free: 9 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 1.343e-05/0.002782, allocations: 4 kB / 0.8905 GB, free: 8.996 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 9.402e-05/0.002876, allocations: 8 kB / 0.8905 GB, free: 8.988 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.002878, allocations: 0 / 0.8905 GB, free: 8.988 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.463e-06/0.00288, allocations: 0 / 0.8905 GB, free: 8.988 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.002884, allocations: 0 / 0.8905 GB, free: 8.988 MB / 0.8542 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.000272/0.003156, allocations: 344.8 kB / 0.8908 GB, free: 8.613 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.003201, allocations: 12.62 kB / 0.8908 GB, free: 8.602 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.003233, allocations: 8.891 kB / 0.8908 GB, free: 8.594 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.178e-05/0.003304, allocations: 104.6 kB / 0.8909 GB, free: 8.465 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.003318, allocations: 4.375 kB / 0.8909 GB, free: 8.461 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.791e-06/0.003323, allocations: 4.375 kB / 0.891 GB, free: 8.457 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.64e-05/0.0034, allocations: 34.25 kB / 0.891 GB, free: 8.418 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.003407, allocations: 4.188 kB / 0.891 GB, free: 8.414 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.991e-06/0.003413, allocations: 384 / 0.891 GB, free: 8.414 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.003419, allocations: 4.312 kB / 0.891 GB, free: 8.41 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.154e-05/0.003441, allocations: 7.938 kB / 0.891 GB, free: 8.402 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001126/0.003553, allocations: 105.2 kB / 0.8911 GB, free: 8.273 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 4.61e-05/0.003599, allocations: 27.09 kB / 0.8911 GB, free: 8.234 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.532e-05/0.003615, allocations: 11.75 kB / 0.8911 GB, free: 8.219 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001279/0.003742, allocations: 7.984 kB / 0.8911 GB, free: 8.211 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.003769, allocations: 33.39 kB / 0.8912 GB, free: 8.168 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.003771, allocations: 0 / 0.8912 GB, free: 8.168 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2): time 0.0001325/0.003903, allocations: 45.62 kB / 0.8912 GB, free: 8.117 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.003934, allocations: 51.41 kB / 0.8913 GB, free: 8.055 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.002e-05/0.003994, allocations: 150.3 kB / 0.8914 GB, free: 7.895 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.004009, allocations: 29.7 kB / 0.8914 GB, free: 7.859 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.228e-05/0.004051, allocations: 126.9 kB / 0.8916 GB, free: 7.73 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.004071, allocations: 3.938 kB / 0.8916 GB, free: 7.727 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.449e-05/0.004106, allocations: 23.36 kB / 0.8916 GB, free: 7.695 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.004259, allocations: 0.4883 MB / 0.8921 GB, free: 7.195 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.135e-05/0.004271, allocations: 0 / 0.8921 GB, free: 7.195 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.044e-05/0.004281, allocations: 4 kB / 0.8921 GB, free: 7.191 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.651e-05/0.004318, allocations: 15.62 kB / 0.8921 GB, free: 7.172 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.00432, allocations: 0 / 0.8921 GB, free: 7.172 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.929e-05/0.004389, allocations: 45.75 kB / 0.8921 GB, free: 7.121 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.004406, allocations: 4 kB / 0.8921 GB, free: 7.117 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.004411, allocations: 0 / 0.8921 GB, free: 7.117 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.004425, allocations: 0 / 0.8921 GB, free: 7.117 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.479e-05/0.00448, allocations: 4 kB / 0.8921 GB, free: 7.113 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.086e-06/0.004483, allocations: 0 / 0.8921 GB, free: 7.113 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.21e-05/0.004495, allocations: 0 / 0.8921 GB, free: 7.113 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.0045, allocations: 0 / 0.8921 GB, free: 7.113 MB / 0.8542 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 7.434e-05/0.004574, allocations: 160.5 kB / 0.8923 GB, free: 6.945 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-06/0.004583, allocations: 3.953 kB / 0.8923 GB, free: 6.941 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.438e-05/0.004668, allocations: 52.81 kB / 0.8923 GB, free: 6.883 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.00467, allocations: 0 / 0.8923 GB, free: 6.883 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.004672, allocations: 0 / 0.8923 GB, free: 6.883 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.004675, allocations: 0 / 0.8923 GB, free: 6.883 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.541e-05/0.00475, allocations: 101.2 kB / 0.8924 GB, free: 6.758 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.004752, allocations: 0 / 0.8924 GB, free: 6.758 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.966e-05/0.004771, allocations: 4 kB / 0.8924 GB, free: 6.754 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.004774, allocations: 0 / 0.8924 GB, free: 6.754 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.004779, allocations: 4 kB / 0.8924 GB, free: 6.75 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.004781, allocations: 0 / 0.8924 GB, free: 6.75 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.004782, allocations: 32 / 0.8924 GB, free: 6.75 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.704e-05/0.004859, allocations: 88.31 kB / 0.8925 GB, free: 6.641 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-06/0.004863, allocations: 0 / 0.8925 GB, free: 6.641 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.466e-06/0.004871, allocations: 0 / 0.8925 GB, free: 6.641 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.214e-06/0.004878, allocations: 0 / 0.8925 GB, free: 6.641 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.222e-05/0.004901, allocations: 0 / 0.8925 GB, free: 6.641 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.004904, allocations: 11.92 kB / 0.8925 GB, free: 6.629 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.802e-05/0.004942, allocations: 119.2 kB / 0.8927 GB, free: 6.512 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.004942, allocations: 0 / 0.8927 GB, free: 6.512 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002093/0.005152, allocations: 4 kB / 0.8927 GB, free: 6.508 MB / 0.8542 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.0001358/0.005287, allocations: 99.28 kB / 0.8928 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 6.457e-05/0.005352, allocations: 19.69 kB / 0.8928 GB, free: 6.375 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.005353, allocations: 0 / 0.8928 GB, free: 6.375 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.865e-05/0.005372, allocations: 19.61 kB / 0.8928 GB, free: 6.352 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.005505, allocations: 3.938 kB / 0.8928 GB, free: 6.348 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000173/0.005678, allocations: 89.34 kB / 0.8929 GB, free: 6.23 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.913e-05/0.005717, allocations: 59.34 kB / 0.8929 GB, free: 6.152 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.297e-05/0.00573, allocations: 0 / 0.8929 GB, free: 6.152 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.346e-05/0.005773, allocations: 74.33 kB / 0.893 GB, free: 6.078 MB / 0.8542 GB Notification: Performance of SimCode: time 5.31e-07/0.005774, allocations: 0 / 0.893 GB, free: 6.078 MB / 0.8542 GB Notification: Performance of Templates: time 0.002236/0.00801, allocations: 375.9 kB / 0.8934 GB, free: 5.715 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.209871680941433]