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.001015/0.001015, 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.0009208/0.0009208, 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.8983/0.8983, allocations: 177.2 MB / 204.2 MB, free: 5.59 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.694/1.694, allocations: 359 MB / 0.6052 GB, free: 10.98 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.193e-06/1.193e-06, allocations: 3.938 kB / 0.7871 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.724e-05/1.844e-05, allocations: 8.969 kB / 0.7871 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001927/0.001946, allocations: 1.565 MB / 0.7886 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002764/0.002222, allocations: 136.1 kB / 0.7888 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.943e-05/0.002252, allocations: 1.25 kB / 0.7888 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.421e-05/0.002276, allocations: 0 / 0.7888 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.03e-05/0.002316, allocations: 3.938 kB / 0.7888 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.002543, allocations: 29.53 kB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 6.364e-05/0.002606, allocations: 31.91 kB / 0.7888 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.271e-05/0.002689, allocations: 4 kB / 0.7888 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 4.682e-05/0.002736, allocations: 19.92 kB / 0.7889 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 3.8e-05/0.002774, allocations: 11.92 kB / 0.7889 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.344e-05/0.002787, allocations: 5.219 kB / 0.7889 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.861e-05/0.002846, allocations: 19.97 kB / 0.7889 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.135e-05/0.002857, allocations: 4 kB / 0.7889 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.888e-05/0.002876, allocations: 8.625 kB / 0.7889 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 9.906e-05/0.002975, allocations: 35.83 kB / 0.7889 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.002978, allocations: 1.406 kB / 0.7889 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.753e-06/0.002979, allocations: 3.984 kB / 0.7889 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.002984, allocations: 0 / 0.7889 GB, free: 10.57 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.0003201/0.003304, allocations: 361.5 kB / 0.7893 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.003336, allocations: 8.031 kB / 0.7893 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.502e-05/0.003381, allocations: 5.5 kB / 0.7893 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.427e-05/0.003455, allocations: 108.6 kB / 0.7894 GB, free: 10.03 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.003476, allocations: 9.062 kB / 0.7894 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.454e-05/0.003491, allocations: 5.266 kB / 0.7894 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.00362, allocations: 62.89 kB / 0.7895 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.555e-06/0.003628, allocations: 0.8438 kB / 0.7895 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.003637, allocations: 384 / 0.7895 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.003645, allocations: 2.031 kB / 0.7895 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.568e-05/0.00368, allocations: 15.92 kB / 0.7895 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002667/0.003947, allocations: 259.8 kB / 0.7897 GB, free: 9.645 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.004107, allocations: 48.58 kB / 0.7898 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.194e-05/0.004129, allocations: 15.73 kB / 0.7898 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 6.801e-05/0.004197, allocations: 8 kB / 0.7898 GB, free: 9.559 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.004217, allocations: 37.39 kB / 0.7898 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 9.71e-07/0.004218, allocations: 1.031 kB / 0.7898 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0002831/0.004501, allocations: 49.62 kB / 0.7899 GB, free: 9.457 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.004535, allocations: 59.34 kB / 0.79 GB, free: 9.387 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.034e-05/0.004605, allocations: 169.1 kB / 0.7901 GB, free: 9.207 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.004617, allocations: 25.7 kB / 0.7901 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.004667, allocations: 126.9 kB / 0.7903 GB, free: 9.047 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.004686, allocations: 11.95 kB / 0.7903 GB, free: 9.035 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.004714, allocations: 23.36 kB / 0.7903 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.861e-05/0.004813, allocations: 496.1 kB / 0.7908 GB, free: 8.508 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.614e-05/0.004829, allocations: 4 kB / 0.7908 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.252e-05/0.004841, allocations: 3.984 kB / 0.7908 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.22e-05/0.004874, allocations: 20.41 kB / 0.7908 GB, free: 8.477 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.004876, allocations: 4 kB / 0.7908 GB, free: 8.473 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.755e-05/0.004934, allocations: 46.64 kB / 0.7908 GB, free: 8.422 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.004947, allocations: 14.88 kB / 0.7909 GB, free: 8.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.004951, allocations: 3.938 kB / 0.7909 GB, free: 8.406 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.004961, allocations: 0 / 0.7909 GB, free: 8.406 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.416e-05/0.005006, allocations: 9.141 kB / 0.7909 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.00501, allocations: 0 / 0.7909 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.843e-05/0.005028, allocations: 8.047 kB / 0.7909 GB, free: 8.391 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.005034, allocations: 4.922 kB / 0.7909 GB, free: 8.387 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.681e-05/0.005091, allocations: 156.6 kB / 0.791 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.379e-05/0.005104, allocations: 1.625 kB / 0.791 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.799e-05/0.005192, allocations: 57.3 kB / 0.7911 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.005194, allocations: 0 / 0.7911 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.005197, allocations: 0 / 0.7911 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.005199, allocations: 1.344 kB / 0.7911 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.76e-05/0.005287, allocations: 120.6 kB / 0.7912 GB, free: 8.004 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.005287, allocations: 0 / 0.7912 GB, free: 8.004 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-05/0.005313, allocations: 11.92 kB / 0.7912 GB, free: 7.992 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.005315, allocations: 4.5 kB / 0.7912 GB, free: 7.988 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-06/0.00532, allocations: 0.5625 kB / 0.7912 GB, free: 7.988 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.005322, allocations: 4.5 kB / 0.7912 GB, free: 7.984 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.005323, allocations: 0 / 0.7912 GB, free: 7.984 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.917e-05/0.005412, allocations: 197.3 kB / 0.7914 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.539e-06/0.005417, allocations: 4 kB / 0.7914 GB, free: 7.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.02e-05/0.005427, allocations: 3.938 kB / 0.7914 GB, free: 7.766 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.303e-05/0.00546, allocations: 12.45 kB / 0.7914 GB, free: 7.754 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.005505, allocations: 0 / 0.7914 GB, free: 7.754 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.005511, allocations: 13.67 kB / 0.7914 GB, free: 7.742 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.906e-05/0.00554, allocations: 119.2 kB / 0.7916 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.00554, allocations: 0 / 0.7916 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001447/0.005685, allocations: 11.94 kB / 0.7916 GB, free: 7.613 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.93e-05/0.005784, allocations: 108.1 kB / 0.7917 GB, free: 7.5 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 8.003e-05/0.005864, allocations: 24.2 kB / 0.7917 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.005865, allocations: 0 / 0.7917 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.394e-05/0.005889, allocations: 20.2 kB / 0.7917 GB, free: 7.449 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001563/0.006046, allocations: 5.156 kB / 0.7917 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002277/0.006273, allocations: 122.7 kB / 0.7918 GB, free: 7.297 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.194e-05/0.006305, allocations: 63.28 kB / 0.7919 GB, free: 7.215 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.054e-05/0.006326, allocations: 9.75 kB / 0.7919 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.699e-05/0.006353, allocations: 16.5 kB / 0.7919 GB, free: 7.188 MB / 0.7448 GB Notification: Performance of SimCode: time 5.81e-07/0.006353, allocations: 1.344 kB / 0.7919 GB, free: 7.188 MB / 0.7448 GB Notification: Performance of Templates: time 0.002344/0.008698, allocations: 0.8076 MB / 0.7927 GB, free: 6.418 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: 4.643217154312879]