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.0009639/0.0009639, allocations: 71.75 kB / 20.97 MB, free: 3.574 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.0009644/0.0009644, allocations: 173 kB / 24.28 MB, free: 272 kB / 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.9663/0.9663, allocations: 177.1 MB / 204.6 MB, free: 5.633 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.891/1.891, allocations: 359 MB / 0.6055 GB, free: 11.02 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 4.148e-06/4.148e-06, allocations: 3.984 kB / 0.7871 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.703e-05/3.118e-05, allocations: 6.25 kB / 0.7871 GB, free: 12.79 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002828/0.002859, allocations: 1.569 MB / 0.7886 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0003149/0.003174, allocations: 120.9 kB / 0.7887 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.913e-05/0.003213, allocations: 4 kB / 0.7887 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.691e-05/0.00324, allocations: 3.938 kB / 0.7888 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.318e-05/0.003283, allocations: 0.5625 kB / 0.7888 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.003532, allocations: 32.55 kB / 0.7888 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.078e-05/0.003602, allocations: 31.92 kB / 0.7888 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.229e-05/0.003695, allocations: 4.906 kB / 0.7888 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.642e-05/0.003751, allocations: 19.98 kB / 0.7888 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.326e-05/0.003794, allocations: 12.62 kB / 0.7889 GB, free: 11.01 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.00381, allocations: 4 kB / 0.7889 GB, free: 11 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.00387, allocations: 15.42 kB / 0.7889 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.5e-05/0.003885, allocations: 11.94 kB / 0.7889 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.269e-05/0.003908, allocations: 0 / 0.7889 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.004033, allocations: 35.89 kB / 0.7889 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.004035, allocations: 0 / 0.7889 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.192e-06/0.004037, allocations: 3.938 kB / 0.7889 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.00404, allocations: 4 kB / 0.7889 GB, free: 10.94 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.0003735/0.004414, allocations: 360.6 kB / 0.7893 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.004451, allocations: 8.031 kB / 0.7893 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.34e-05/0.004494, allocations: 13.53 kB / 0.7893 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.258e-05/0.004587, allocations: 113.2 kB / 0.7894 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.004611, allocations: 4.375 kB / 0.7894 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.467e-06/0.004621, allocations: 2 kB / 0.7894 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.00476, allocations: 62.94 kB / 0.7895 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.004767, allocations: 192 / 0.7895 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.004776, allocations: 384 / 0.7895 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.004786, allocations: 5.906 kB / 0.7895 GB, free: 10.31 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.918e-05/0.004826, allocations: 15.86 kB / 0.7895 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003174/0.005143, allocations: 259.8 kB / 0.7897 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.005319, allocations: 44.64 kB / 0.7898 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.641e-05/0.005345, allocations: 19.73 kB / 0.7898 GB, free: 9.93 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 7.586e-05/0.005421, allocations: 8 kB / 0.7898 GB, free: 9.922 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.005444, allocations: 33.39 kB / 0.7898 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.005445, allocations: 0.625 kB / 0.7898 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001623/0.005607, allocations: 59.67 kB / 0.7899 GB, free: 9.816 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.005637, allocations: 51.41 kB / 0.7899 GB, free: 9.754 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.065e-05/0.005708, allocations: 166 kB / 0.7901 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.005719, allocations: 25.7 kB / 0.7901 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.005764, allocations: 134.9 kB / 0.7902 GB, free: 9.406 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.53e-05/0.005779, allocations: 4.516 kB / 0.7903 GB, free: 9.402 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.005809, allocations: 27.36 kB / 0.7903 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.005924, allocations: 492.8 kB / 0.7907 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.859e-05/0.005943, allocations: 8 kB / 0.7908 GB, free: 8.867 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.422e-05/0.005957, allocations: 9.203 kB / 0.7908 GB, free: 8.859 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.603e-05/0.005993, allocations: 19.62 kB / 0.7908 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.005995, allocations: 0 / 0.7908 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.603e-05/0.006061, allocations: 50.27 kB / 0.7908 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.006074, allocations: 9.062 kB / 0.7908 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.006079, allocations: 0 / 0.7908 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.006091, allocations: 0 / 0.7908 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.021e-05/0.006141, allocations: 12.8 kB / 0.7909 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.006146, allocations: 0 / 0.7909 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.122e-05/0.006167, allocations: 4.656 kB / 0.7909 GB, free: 8.758 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.006172, allocations: 3.938 kB / 0.7909 GB, free: 8.754 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.534e-05/0.006237, allocations: 157.8 kB / 0.791 GB, free: 8.59 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.006252, allocations: 4 kB / 0.791 GB, free: 8.586 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.926e-05/0.006352, allocations: 57.95 kB / 0.7911 GB, free: 8.52 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.006354, allocations: 4 kB / 0.7911 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.006358, allocations: 1.219 kB / 0.7911 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.006362, allocations: 0 / 0.7911 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.006462, allocations: 116.6 kB / 0.7912 GB, free: 8.367 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.006465, allocations: 4.938 kB / 0.7912 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.802e-05/0.006493, allocations: 8 kB / 0.7912 GB, free: 8.355 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.006496, allocations: 4.828 kB / 0.7912 GB, free: 8.352 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.006502, allocations: 0 / 0.7912 GB, free: 8.352 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.006504, allocations: 3.938 kB / 0.7912 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.006506, allocations: 2.219 kB / 0.7912 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.00661, allocations: 199.8 kB / 0.7914 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-06/0.006615, allocations: 0 / 0.7914 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.006625, allocations: 4 kB / 0.7914 GB, free: 8.129 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.372e-05/0.006659, allocations: 7.938 kB / 0.7914 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.006705, allocations: 11.19 kB / 0.7914 GB, free: 8.113 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.006708, allocations: 0 / 0.7914 GB, free: 8.113 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.301e-05/0.006751, allocations: 135.2 kB / 0.7916 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6.1e-08/0.006751, allocations: 0 / 0.7916 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001572/0.006908, allocations: 11.94 kB / 0.7916 GB, free: 7.969 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.0001209/0.007029, allocations: 95.25 kB / 0.7917 GB, free: 7.867 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 8.829e-05/0.007117, allocations: 29.14 kB / 0.7917 GB, free: 7.836 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.007119, allocations: 0 / 0.7917 GB, free: 7.836 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.5e-05/0.007144, allocations: 23.61 kB / 0.7917 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.007317, allocations: 0.5 kB / 0.7917 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002561/0.007573, allocations: 126.8 kB / 0.7918 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.866e-05/0.007612, allocations: 60.72 kB / 0.7919 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.023e-05/0.007632, allocations: 0 / 0.7919 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.729e-05/0.007659, allocations: 17.03 kB / 0.7919 GB, free: 7.559 MB / 0.7448 GB Notification: Performance of SimCode: time 6.92e-07/0.00766, allocations: 5.062 kB / 0.7919 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of Templates: time 0.002437/0.0101, allocations: 0.7621 MB / 0.7926 GB, free: 6.82 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.147732245037332]