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.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.001096/0.001096, 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.001767/0.001767, allocations: 169 kB / 23.27 MB, free: 1.223 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.999/0.999, allocations: 177.2 MB / 203.7 MB, free: 5.52 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.608/2.608, 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.374e-06/2.374e-06, allocations: 0 / 0.8897 GB, free: 9.758 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.722e-05/2.96e-05, allocations: 9.203 kB / 0.8898 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00341/0.00344, allocations: 1.578 MB / 0.8913 GB, free: 8.16 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0004355/0.003875, allocations: 115.7 kB / 0.8914 GB, free: 8.047 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.421e-05/0.003929, allocations: 0 / 0.8914 GB, free: 8.047 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 3.984e-05/0.003969, allocations: 3.938 kB / 0.8914 GB, free: 8.043 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.504e-05/0.004034, allocations: 7.922 kB / 0.8914 GB, free: 8.035 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.004364, allocations: 27.86 kB / 0.8914 GB, free: 8.008 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.533e-05/0.004439, allocations: 27.92 kB / 0.8915 GB, free: 7.98 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.00455, allocations: 7.984 kB / 0.8915 GB, free: 7.973 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 7.775e-05/0.004628, allocations: 19.97 kB / 0.8915 GB, free: 7.953 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 5.346e-05/0.004682, allocations: 15.94 kB / 0.8915 GB, free: 7.938 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.796e-05/0.0047, allocations: 4 kB / 0.8915 GB, free: 7.934 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 8.398e-05/0.004784, allocations: 15.98 kB / 0.8915 GB, free: 7.918 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.506e-05/0.004799, allocations: 0 / 0.8915 GB, free: 7.918 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.369e-05/0.004822, allocations: 15.97 kB / 0.8915 GB, free: 7.902 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.004954, allocations: 31.84 kB / 0.8916 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.004956, allocations: 0 / 0.8916 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.282e-06/0.004958, allocations: 3.938 kB / 0.8916 GB, free: 7.867 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.668e-06/0.004962, allocations: 0 / 0.8916 GB, free: 7.867 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004896/0.005452, allocations: 360.6 kB / 0.8919 GB, free: 7.477 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 6.341e-05/0.005515, allocations: 12.62 kB / 0.8919 GB, free: 7.465 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.281e-05/0.005558, allocations: 12.88 kB / 0.892 GB, free: 7.453 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.005669, allocations: 120.5 kB / 0.8921 GB, free: 7.309 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.005692, allocations: 384 / 0.8921 GB, free: 7.309 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.005702, allocations: 4.375 kB / 0.8921 GB, free: 7.305 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.005854, allocations: 58.94 kB / 0.8921 GB, free: 7.238 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.005864, allocations: 192 / 0.8921 GB, free: 7.238 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.005874, allocations: 4.375 kB / 0.8921 GB, free: 7.234 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.005881, allocations: 384 / 0.8921 GB, free: 7.234 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.167e-05/0.005913, allocations: 11.88 kB / 0.8921 GB, free: 7.223 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003223/0.006235, allocations: 244.5 kB / 0.8924 GB, free: 6.957 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.006403, allocations: 43.03 kB / 0.8924 GB, free: 6.902 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.149e-05/0.006425, allocations: 11.75 kB / 0.8924 GB, free: 6.887 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 8.048e-05/0.006505, allocations: 8 kB / 0.8924 GB, free: 6.879 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.006532, allocations: 41.39 kB / 0.8925 GB, free: 6.828 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.006533, allocations: 0 / 0.8925 GB, free: 6.828 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0001538/0.006687, allocations: 53.52 kB / 0.8925 GB, free: 6.77 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.006719, allocations: 55.39 kB / 0.8926 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.006791, allocations: 157.9 kB / 0.8927 GB, free: 6.531 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.006803, allocations: 25.7 kB / 0.8928 GB, free: 6.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.989e-05/0.006853, allocations: 138.9 kB / 0.8929 GB, free: 6.359 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.006873, allocations: 7.938 kB / 0.8929 GB, free: 6.352 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.006904, allocations: 27.3 kB / 0.8929 GB, free: 6.316 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.007046, allocations: 492.1 kB / 0.8934 GB, free: 5.824 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.761e-05/0.007064, allocations: 4 kB / 0.8934 GB, free: 5.82 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.435e-05/0.007078, allocations: 7.984 kB / 0.8934 GB, free: 5.812 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.177e-05/0.00711, allocations: 19.62 kB / 0.8934 GB, free: 5.789 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.007112, allocations: 0 / 0.8934 GB, free: 5.789 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.788e-05/0.00717, allocations: 41.69 kB / 0.8935 GB, free: 5.742 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.007182, allocations: 4 kB / 0.8935 GB, free: 5.738 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.007187, allocations: 8 kB / 0.8935 GB, free: 5.73 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.007204, allocations: 4.453 kB / 0.8935 GB, free: 5.727 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.747e-05/0.007251, allocations: 7.984 kB / 0.8935 GB, free: 5.719 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.007255, allocations: 0 / 0.8935 GB, free: 5.719 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.336e-05/0.007278, allocations: 7.953 kB / 0.8935 GB, free: 5.711 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.007284, allocations: 4 kB / 0.8935 GB, free: 5.707 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 (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.799e-05/0.007362, allocations: 160.6 kB / 0.8936 GB, free: 5.539 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.342e-05/0.007375, allocations: 0 / 0.8936 GB, free: 5.539 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.248e-05/0.007468, allocations: 61.28 kB / 0.8937 GB, free: 5.469 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.007471, allocations: 7.938 kB / 0.8937 GB, free: 5.461 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.007473, allocations: 0 / 0.8937 GB, free: 5.461 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.007477, allocations: 0 / 0.8937 GB, free: 5.461 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.00758, allocations: 101.2 kB / 0.8938 GB, free: 5.336 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.007582, allocations: 0 / 0.8938 GB, free: 5.336 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.641e-05/0.007608, allocations: 8 kB / 0.8938 GB, free: 5.328 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.00761, allocations: 0 / 0.8938 GB, free: 5.328 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.007617, allocations: 7.984 kB / 0.8938 GB, free: 5.32 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.007618, allocations: 0 / 0.8938 GB, free: 5.32 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.007619, allocations: 0 / 0.8938 GB, free: 5.32 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.007725, allocations: 195.8 kB / 0.894 GB, free: 5.109 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-06/0.007733, allocations: 11.95 kB / 0.894 GB, free: 5.098 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-06/0.007741, allocations: 0 / 0.894 GB, free: 5.098 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.284e-05/0.007774, allocations: 8 kB / 0.894 GB, free: 5.09 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.007815, allocations: 11.92 kB / 0.894 GB, free: 5.078 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.007818, allocations: 0 / 0.894 GB, free: 5.078 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.347e-05/0.007862, allocations: 127.2 kB / 0.8942 GB, free: 4.953 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4e-08/0.007862, allocations: 0 / 0.8942 GB, free: 4.953 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002241/0.008086, allocations: 15.88 kB / 0.8942 GB, free: 4.938 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.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.000125/0.008211, allocations: 99.25 kB / 0.8943 GB, free: 4.828 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 7.918e-05/0.00829, allocations: 23.67 kB / 0.8943 GB, free: 4.801 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.008292, allocations: 0 / 0.8943 GB, free: 4.801 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.3e-05/0.008315, allocations: 19.62 kB / 0.8943 GB, free: 4.777 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001725/0.008487, allocations: 10.48 kB / 0.8943 GB, free: 4.77 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002509/0.008738, allocations: 126.2 kB / 0.8944 GB, free: 4.617 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.812e-05/0.008776, allocations: 55.36 kB / 0.8945 GB, free: 4.543 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.43e-05/0.008801, allocations: 7.984 kB / 0.8945 GB, free: 4.535 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.159e-05/0.008862, allocations: 78.2 kB / 0.8946 GB, free: 4.457 MB / 0.8542 GB Notification: Performance of SimCode: time 6.01e-07/0.008863, allocations: 0 / 0.8946 GB, free: 4.457 MB / 0.8542 GB Notification: Performance of Templates: time 0.002534/0.0114, allocations: 0.8195 MB / 0.8954 GB, free: 3.645 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_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.919013037811965]