Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001461/0.001461, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001476/0.001476, allocations: 161 kB / 23.82 MB, free: 0.75 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.9428/0.9428, allocations: 177.1 MB / 204.2 MB, free: 5.262 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.838/1.838, allocations: 359 MB / 0.6052 GB, free: 11.04 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.521e-05/1.672e-05, allocations: 4.984 kB / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001933/0.00195, allocations: 1.569 MB / 0.7886 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002881/0.002238, allocations: 124.7 kB / 0.7888 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.224e-05/0.00227, allocations: 0 / 0.7888 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.985e-05/0.0023, allocations: 1.562 kB / 0.7888 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.139e-05/0.002341, allocations: 3.938 kB / 0.7888 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.002574, allocations: 31.89 kB / 0.7888 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 6.215e-05/0.002636, allocations: 27.92 kB / 0.7888 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.077e-05/0.002717, allocations: 10.47 kB / 0.7888 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.277e-05/0.002769, allocations: 15.92 kB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.14e-05/0.002811, allocations: 19.91 kB / 0.7889 GB, free: 10.69 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.002826, allocations: 4 kB / 0.7889 GB, free: 10.69 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.769e-05/0.002884, allocations: 15.98 kB / 0.7889 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.162e-05/0.002895, allocations: 0 / 0.7889 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.95e-05/0.002915, allocations: 11.94 kB / 0.7889 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001062/0.003021, allocations: 37.64 kB / 0.7889 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.003023, allocations: 0 / 0.7889 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of FrontEnd: time 4.51e-07/0.003023, allocations: 0 / 0.7889 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.003027, allocations: 0 / 0.7889 GB, free: 10.62 MB / 0.7448 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.0003268/0.003354, allocations: 361.2 kB / 0.7893 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.003387, allocations: 12.03 kB / 0.7893 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.366e-05/0.003421, allocations: 2.281 kB / 0.7893 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.506e-05/0.003496, allocations: 112.6 kB / 0.7894 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.003514, allocations: 384 / 0.7894 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.003526, allocations: 5.562 kB / 0.7894 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.00365, allocations: 66.88 kB / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.00366, allocations: 192 / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.916e-06/0.003668, allocations: 1.219 kB / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.003676, allocations: 384 / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.177e-05/0.003718, allocations: 20.8 kB / 0.7895 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002841/0.004002, allocations: 259.8 kB / 0.7897 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.004169, allocations: 53.58 kB / 0.7898 GB, free: 9.637 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.374e-05/0.004192, allocations: 11.75 kB / 0.7898 GB, free: 9.621 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-05/0.004271, allocations: 15.98 kB / 0.7898 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.004292, allocations: 37.39 kB / 0.7898 GB, free: 9.559 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.004293, allocations: 0 / 0.7898 GB, free: 9.559 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001452/0.004438, allocations: 53.75 kB / 0.7899 GB, free: 9.5 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.379e-05/0.004462, allocations: 51.94 kB / 0.7899 GB, free: 9.438 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.491e-05/0.004527, allocations: 170.6 kB / 0.7901 GB, free: 9.254 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 8.596e-06/0.004535, allocations: 25.7 kB / 0.7901 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.004576, allocations: 127.4 kB / 0.7903 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.306e-05/0.004589, allocations: 3.953 kB / 0.7903 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.709e-05/0.004616, allocations: 29.02 kB / 0.7903 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.00473, allocations: 496.1 kB / 0.7908 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.555e-05/0.004746, allocations: 0 / 0.7908 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.167e-05/0.004757, allocations: 4 kB / 0.7908 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.276e-05/0.00479, allocations: 24.27 kB / 0.7908 GB, free: 8.527 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.004792, allocations: 0.7812 kB / 0.7908 GB, free: 8.527 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.092e-05/0.004853, allocations: 49.64 kB / 0.7908 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.004864, allocations: 9.094 kB / 0.7908 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.004869, allocations: 4 kB / 0.7908 GB, free: 8.461 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.004884, allocations: 3.938 kB / 0.7908 GB, free: 8.457 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.207e-05/0.004926, allocations: 5.375 kB / 0.7909 GB, free: 8.453 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.004932, allocations: 3.984 kB / 0.7909 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.967e-05/0.004952, allocations: 4 kB / 0.7909 GB, free: 8.445 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-06/0.004956, allocations: 1.75 kB / 0.7909 GB, free: 8.445 MB / 0.7448 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 5.99e-05/0.005016, allocations: 160.6 kB / 0.791 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.00503, allocations: 0 / 0.791 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.256e-05/0.005123, allocations: 57.3 kB / 0.7911 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.005124, allocations: 0.8438 kB / 0.7911 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.005127, allocations: 0 / 0.7911 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.005129, allocations: 1.219 kB / 0.7911 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.969e-05/0.005219, allocations: 124.6 kB / 0.7912 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.00522, allocations: 0 / 0.7912 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.619e-05/0.005246, allocations: 9.25 kB / 0.7912 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.005248, allocations: 3.938 kB / 0.7912 GB, free: 8.043 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.005255, allocations: 7.984 kB / 0.7912 GB, free: 8.035 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.005258, allocations: 3.938 kB / 0.7912 GB, free: 8.031 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.005258, allocations: 1.625 kB / 0.7912 GB, free: 8.031 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.005478, allocations: 191.9 kB / 0.7914 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.48e-06/0.005483, allocations: 4 kB / 0.7914 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.716e-06/0.005492, allocations: 480 / 0.7914 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.622e-05/0.005528, allocations: 18.66 kB / 0.7914 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.00557, allocations: 3.984 kB / 0.7914 GB, free: 7.801 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.005573, allocations: 0 / 0.7914 GB, free: 7.801 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.976e-05/0.005613, allocations: 135.2 kB / 0.7916 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.005613, allocations: 0 / 0.7916 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002211/0.005834, allocations: 11.94 kB / 0.7916 GB, free: 7.656 MB / 0.7448 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.0001228/0.005957, allocations: 103.7 kB / 0.7917 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.053e-05/0.006048, allocations: 20.2 kB / 0.7917 GB, free: 7.523 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.006049, allocations: 1.938 kB / 0.7917 GB, free: 7.523 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.411e-05/0.006073, allocations: 19.69 kB / 0.7917 GB, free: 7.5 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.006242, allocations: 11.92 kB / 0.7917 GB, free: 7.488 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002398/0.006481, allocations: 122.2 kB / 0.7918 GB, free: 7.34 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.136e-05/0.006513, allocations: 56.2 kB / 0.7919 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.715e-05/0.00654, allocations: 12.77 kB / 0.7919 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.465e-05/0.006565, allocations: 13.78 kB / 0.7919 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of SimCode: time 4.61e-07/0.006565, allocations: 0 / 0.7919 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of Templates: time 0.002167/0.008732, allocations: 0.7608 MB / 0.7927 GB, free: 6.508 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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.011449083220214]