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.0009147/0.0009147, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.0009903/0.0009903, allocations: 166.8 kB / 24.87 MB, free: 8.891 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 1.027/1.027, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.875/1.875, allocations: 359 MB / 0.6063 GB, free: 10.89 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.332e-06/1.332e-06, allocations: 0 / 0.7883 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.856e-05/1.989e-05, allocations: 5.875 kB / 0.7883 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001938/0.001958, allocations: 1.576 MB / 0.7899 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002805/0.002238, allocations: 119.7 kB / 0.79 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.013e-05/0.002268, allocations: 3.938 kB / 0.79 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.192e-05/0.00229, allocations: 1.062 kB / 0.79 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.126e-05/0.002332, allocations: 7.922 kB / 0.79 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.002532, allocations: 25.42 kB / 0.79 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 6.194e-05/0.002594, allocations: 31.86 kB / 0.79 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.576e-05/0.00267, allocations: 11.98 kB / 0.79 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 4.692e-05/0.002717, allocations: 15.97 kB / 0.7901 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 3.703e-05/0.002754, allocations: 9.188 kB / 0.7901 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.002769, allocations: 4 kB / 0.7901 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.609e-05/0.002825, allocations: 11.98 kB / 0.7901 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.308e-05/0.002838, allocations: 5.312 kB / 0.7901 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.002856, allocations: 19.91 kB / 0.7901 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 9.242e-05/0.002948, allocations: 31.84 kB / 0.7901 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.00295, allocations: 0 / 0.7901 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of FrontEnd: time 4.91e-07/0.00295, allocations: 0.9688 kB / 0.7901 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.487e-06/0.002954, allocations: 0 / 0.7901 GB, free: 10.36 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.0002912/0.003245, allocations: 365.4 kB / 0.7905 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.905e-05/0.003274, allocations: 8.031 kB / 0.7905 GB, free: 9.961 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.081e-05/0.003305, allocations: 7.406 kB / 0.7905 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.752e-05/0.003382, allocations: 112.5 kB / 0.7906 GB, free: 9.82 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.003399, allocations: 4.375 kB / 0.7906 GB, free: 9.816 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.003408, allocations: 8.312 kB / 0.7906 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.003515, allocations: 58.94 kB / 0.7907 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.00352, allocations: 192 / 0.7907 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.003527, allocations: 2.125 kB / 0.7907 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.003531, allocations: 384 / 0.7907 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.627e-05/0.003557, allocations: 15.88 kB / 0.7907 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002341/0.003791, allocations: 240.4 kB / 0.7909 GB, free: 9.465 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.00393, allocations: 51.75 kB / 0.791 GB, free: 9.402 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.671e-05/0.003947, allocations: 8.406 kB / 0.791 GB, free: 9.391 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 5.697e-05/0.004003, allocations: 8 kB / 0.791 GB, free: 9.383 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.004026, allocations: 41.86 kB / 0.791 GB, free: 9.332 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.004027, allocations: 1.656 kB / 0.791 GB, free: 9.332 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001289/0.004155, allocations: 49.62 kB / 0.7911 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.761e-05/0.004183, allocations: 51.41 kB / 0.7911 GB, free: 9.215 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.563e-05/0.004249, allocations: 161.9 kB / 0.7913 GB, free: 9.039 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 8.866e-06/0.004258, allocations: 30.2 kB / 0.7913 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.907e-05/0.004297, allocations: 126.9 kB / 0.7914 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.004311, allocations: 8.547 kB / 0.7914 GB, free: 8.867 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.00434, allocations: 28.12 kB / 0.7915 GB, free: 8.832 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.004445, allocations: 496.1 kB / 0.7919 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.133e-05/0.004456, allocations: 1.156 kB / 0.7919 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.3e-05/0.004469, allocations: 15.92 kB / 0.792 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.701e-05/0.004496, allocations: 11.69 kB / 0.792 GB, free: 8.305 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.004498, allocations: 1.375 kB / 0.792 GB, free: 8.305 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.311e-05/0.004551, allocations: 50.11 kB / 0.792 GB, free: 8.25 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.004562, allocations: 8 kB / 0.792 GB, free: 8.242 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.004566, allocations: 1.75 kB / 0.792 GB, free: 8.242 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.035e-06/0.004574, allocations: 3.984 kB / 0.792 GB, free: 8.238 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.238e-05/0.004617, allocations: 11.97 kB / 0.792 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-06/0.004619, allocations: 0 / 0.792 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.004637, allocations: 4 kB / 0.792 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-06/0.004641, allocations: 1.25 kB / 0.792 GB, free: 8.223 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 6.238e-05/0.004703, allocations: 160.5 kB / 0.7922 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.004719, allocations: 5.281 kB / 0.7922 GB, free: 8.051 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.331e-05/0.004792, allocations: 57.3 kB / 0.7923 GB, free: 7.984 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.004795, allocations: 3.938 kB / 0.7923 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/0.004796, allocations: 1.781 kB / 0.7923 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.004799, allocations: 0 / 0.7923 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.619e-05/0.004885, allocations: 101.2 kB / 0.7924 GB, free: 7.855 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.004887, allocations: 4 kB / 0.7924 GB, free: 7.852 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.284e-05/0.00491, allocations: 4 kB / 0.7924 GB, free: 7.848 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.004912, allocations: 2.562 kB / 0.7924 GB, free: 7.848 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-06/0.004917, allocations: 3.984 kB / 0.7924 GB, free: 7.844 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.093e-06/0.004918, allocations: 0 / 0.7924 GB, free: 7.844 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.004919, allocations: 4 kB / 0.7924 GB, free: 7.84 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.589e-05/0.005014, allocations: 199.8 kB / 0.7926 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.27e-06/0.00502, allocations: 0 / 0.7926 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.256e-06/0.005028, allocations: 0 / 0.7926 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.128e-05/0.005059, allocations: 4.5 kB / 0.7926 GB, free: 7.621 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.005097, allocations: 16.45 kB / 0.7926 GB, free: 7.605 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.0051, allocations: 1.938 kB / 0.7926 GB, free: 7.605 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.174e-05/0.005132, allocations: 127.2 kB / 0.7927 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3.4e-07/0.005132, allocations: 0 / 0.7927 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001516/0.005283, allocations: 7.938 kB / 0.7927 GB, free: 7.473 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 9.088e-05/0.005374, allocations: 101.8 kB / 0.7928 GB, free: 7.367 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 6.881e-05/0.005443, allocations: 27.61 kB / 0.7928 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.005444, allocations: 0 / 0.7928 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.096e-05/0.005465, allocations: 15.69 kB / 0.7929 GB, free: 7.316 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.005623, allocations: 11.92 kB / 0.7929 GB, free: 7.305 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000192/0.005815, allocations: 126.7 kB / 0.793 GB, free: 7.152 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.061e-05/0.005846, allocations: 56.27 kB / 0.793 GB, free: 7.078 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.134e-05/0.005867, allocations: 12.77 kB / 0.7931 GB, free: 7.066 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.604e-05/0.005913, allocations: 71.48 kB / 0.7931 GB, free: 6.996 MB / 0.7448 GB Notification: Performance of SimCode: time 3.5e-07/0.005914, allocations: 0 / 0.7931 GB, free: 6.996 MB / 0.7448 GB Notification: Performance of Templates: time 0.00217/0.008084, allocations: 0.852 MB / 0.794 GB, free: 6.176 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.086290242150426]