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.001024/0.001024, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.0009663/0.0009663, allocations: 185 kB / 24.09 MB, free: 416 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.9867/0.9867, allocations: 177.1 MB / 204.5 MB, free: 5.52 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.728/1.728, allocations: 359 MB / 0.6055 GB, free: 10.87 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.553e-06/1.553e-06, allocations: 0 / 0.7876 GB, free: 12.19 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.491e-05/2.646e-05, allocations: 3.078 kB / 0.7876 GB, free: 12.19 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002156/0.002182, allocations: 1.567 MB / 0.7891 GB, free: 10.63 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0003127/0.002495, allocations: 135.5 kB / 0.7892 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.796e-05/0.002533, allocations: 4.594 kB / 0.7892 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.719e-05/0.00256, allocations: 3.938 kB / 0.7892 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.684e-05/0.002607, allocations: 4.531 kB / 0.7892 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.002831, allocations: 20.92 kB / 0.7893 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 5.838e-05/0.002889, allocations: 31.92 kB / 0.7893 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.155e-05/0.002971, allocations: 11.97 kB / 0.7893 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.582e-05/0.003027, allocations: 21.42 kB / 0.7893 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.266e-05/0.003069, allocations: 4 kB / 0.7893 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.003085, allocations: 4 kB / 0.7893 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.834e-05/0.003153, allocations: 12.95 kB / 0.7893 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.5e-05/0.003168, allocations: 15.92 kB / 0.7894 GB, free: 10.37 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.509e-05/0.003183, allocations: 3.984 kB / 0.7894 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.003289, allocations: 32.7 kB / 0.7894 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.003292, allocations: 7.938 kB / 0.7894 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.62e-07/0.003293, allocations: 2.5 kB / 0.7894 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.457e-06/0.003296, allocations: 0 / 0.7894 GB, free: 10.32 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.0003077/0.003604, allocations: 356.6 kB / 0.7897 GB, free: 9.938 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.003643, allocations: 12.03 kB / 0.7898 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.744e-05/0.003671, allocations: 4.938 kB / 0.7898 GB, free: 9.922 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.121e-05/0.003742, allocations: 112.6 kB / 0.7899 GB, free: 9.785 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.003757, allocations: 6.031 kB / 0.7899 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.003764, allocations: 4.375 kB / 0.7899 GB, free: 9.777 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.003877, allocations: 58.94 kB / 0.7899 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.003883, allocations: 192 / 0.7899 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.162e-06/0.003889, allocations: 0.9062 kB / 0.7899 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.003895, allocations: 4.375 kB / 0.7899 GB, free: 9.707 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.256e-05/0.003918, allocations: 8.656 kB / 0.7899 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002421/0.00416, allocations: 248.8 kB / 0.7902 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.004296, allocations: 48.62 kB / 0.7902 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.632e-05/0.004312, allocations: 11.81 kB / 0.7902 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 6.87e-05/0.004381, allocations: 12 kB / 0.7903 GB, free: 9.344 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.0044, allocations: 33.39 kB / 0.7903 GB, free: 9.301 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.004402, allocations: 4.5 kB / 0.7903 GB, free: 9.297 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001234/0.004525, allocations: 50.16 kB / 0.7903 GB, free: 9.242 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.004551, allocations: 55.39 kB / 0.7904 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.722e-05/0.004619, allocations: 162.7 kB / 0.7905 GB, free: 9 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.348e-06/0.004628, allocations: 25.7 kB / 0.7906 GB, free: 8.969 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.967e-05/0.004668, allocations: 132 kB / 0.7907 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.004683, allocations: 7.938 kB / 0.7907 GB, free: 8.828 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.004712, allocations: 23.36 kB / 0.7907 GB, free: 8.797 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.004829, allocations: 493.5 kB / 0.7912 GB, free: 8.305 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.755e-05/0.004847, allocations: 4 kB / 0.7912 GB, free: 8.301 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.351e-05/0.00486, allocations: 7.984 kB / 0.7912 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.417e-05/0.004895, allocations: 21.97 kB / 0.7912 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.004897, allocations: 0 / 0.7912 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.102e-05/0.004968, allocations: 53.56 kB / 0.7913 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.00498, allocations: 4 kB / 0.7913 GB, free: 8.207 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.004986, allocations: 3.984 kB / 0.7913 GB, free: 8.203 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.005001, allocations: 9.312 kB / 0.7913 GB, free: 8.195 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.546e-05/0.005047, allocations: 11.98 kB / 0.7913 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-06/0.00505, allocations: 0 / 0.7913 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.019e-05/0.00507, allocations: 5.156 kB / 0.7913 GB, free: 8.18 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-06/0.005074, allocations: 0 / 0.7913 GB, free: 8.18 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.994e-05/0.005144, allocations: 158.5 kB / 0.7915 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.005157, allocations: 0 / 0.7915 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.736e-05/0.005244, allocations: 57.3 kB / 0.7915 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.005247, allocations: 3.938 kB / 0.7915 GB, free: 7.945 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.005249, allocations: 0 / 0.7915 GB, free: 7.945 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.005251, allocations: 2.438 kB / 0.7915 GB, free: 7.945 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.272e-05/0.005344, allocations: 105.2 kB / 0.7916 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.005346, allocations: 0 / 0.7916 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.536e-05/0.005371, allocations: 8 kB / 0.7916 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.005373, allocations: 0 / 0.7916 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.005378, allocations: 3.984 kB / 0.7916 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.005379, allocations: 0 / 0.7916 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.00538, allocations: 0.5312 kB / 0.7916 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.005483, allocations: 197.8 kB / 0.7918 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.643e-06/0.005489, allocations: 4 kB / 0.7918 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.333e-06/0.005496, allocations: 0 / 0.7918 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.075e-05/0.005527, allocations: 4 kB / 0.7918 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.5e-05/0.005562, allocations: 7.922 kB / 0.7918 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.005566, allocations: 10.5 kB / 0.7918 GB, free: 7.57 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.354e-05/0.0056, allocations: 127.2 kB / 0.792 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.0056, allocations: 0 / 0.792 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001481/0.005748, allocations: 8 kB / 0.792 GB, free: 7.438 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.0001207/0.005869, allocations: 103.2 kB / 0.7921 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 6.376e-05/0.005932, allocations: 20.58 kB / 0.7921 GB, free: 7.305 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.005933, allocations: 0 / 0.7921 GB, free: 7.305 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.234e-05/0.005956, allocations: 24.39 kB / 0.7921 GB, free: 7.277 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001604/0.006116, allocations: 11.98 kB / 0.7921 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002074/0.006324, allocations: 123.3 kB / 0.7922 GB, free: 7.117 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.013e-05/0.006354, allocations: 55.36 kB / 0.7923 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.107e-05/0.006375, allocations: 9.609 kB / 0.7923 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.549e-05/0.00642, allocations: 78.2 kB / 0.7924 GB, free: 6.957 MB / 0.7448 GB Notification: Performance of SimCode: time 5.61e-07/0.006421, allocations: 3.156 kB / 0.7924 GB, free: 6.957 MB / 0.7448 GB Notification: Performance of Templates: time 0.002262/0.008682, allocations: 0.8301 MB / 0.7932 GB, free: 6.141 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.752158728893846]