Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.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.000962/0.000962, allocations: 80.3 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.001063/0.001063, allocations: 169 kB / 24.86 MB, free: 8.836 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.9347/0.9347, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.936/1.936, allocations: 377.9 MB / 0.6247 GB, free: 8.406 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 0.8128 GB, free: 1.387 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.645e-05/1.773e-05, allocations: 8.922 kB / 0.8128 GB, free: 1.379 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001039/0.001057, allocations: 0.5973 MB / 0.8134 GB, free: 0.8008 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0001978/0.001255, allocations: 47.75 kB / 0.8135 GB, free: 0.7539 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.768e-05/0.001272, allocations: 0 / 0.8135 GB, free: 0.7539 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 1.433e-05/0.001287, allocations: 0 / 0.8135 GB, free: 0.7539 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.001292, allocations: 1.625 kB / 0.8135 GB, free: 0.7539 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002167/0.001509, allocations: 11.98 kB / 0.8135 GB, free: 0.7422 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 4.069e-05/0.001549, allocations: 11.92 kB / 0.8135 GB, free: 0.7305 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.001587, allocations: 0 / 0.8135 GB, free: 0.7305 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 2.365e-05/0.001611, allocations: 1.156 kB / 0.8135 GB, free: 0.7305 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 1.722e-05/0.001628, allocations: 4 kB / 0.8135 GB, free: 0.7266 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.001639, allocations: 0 / 0.8135 GB, free: 0.7266 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 7.453e-05/0.001714, allocations: 17.3 kB / 0.8135 GB, free: 0.7109 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 9.167e-06/0.001723, allocations: 0 / 0.8135 GB, free: 0.7109 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 9.447e-06/0.001732, allocations: 0 / 0.8135 GB, free: 0.7109 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 7.16e-05/0.001804, allocations: 15.97 kB / 0.8135 GB, free: 0.6953 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.001806, allocations: 1.75 kB / 0.8135 GB, free: 0.6953 MB / 0.7605 GB Notification: Performance of FrontEnd: time 4.41e-07/0.001806, allocations: 0 / 0.8135 GB, free: 0.6953 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.00181, allocations: 4 kB / 0.8135 GB, free: 0.6914 MB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002181/0.002028, allocations: 336.4 kB / 0.8139 GB, free: 332 kB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.002061, allocations: 12.02 kB / 0.8139 GB, free: 320 kB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.43e-05/0.002086, allocations: 10.22 kB / 0.8139 GB, free: 312 kB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.347e-05/0.002139, allocations: 104.6 kB / 0.814 GB, free: 180 kB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.00215, allocations: 4.375 kB / 0.814 GB, free: 176 kB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-06/0.002156, allocations: 2.281 kB / 0.814 GB, free: 176 kB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.051e-05/0.002216, allocations: 30.27 kB / 0.814 GB, free: 140 kB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.002223, allocations: 192 / 0.814 GB, free: 140 kB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.799e-06/0.002228, allocations: 4.312 kB / 0.814 GB, free: 136 kB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.002232, allocations: 384 / 0.814 GB, free: 136 kB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.042e-05/0.002253, allocations: 14.39 kB / 0.814 GB, free: 124 kB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.28e-05/0.002346, allocations: 93.27 kB / 0.8141 GB, free: 4 kB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 5.139e-05/0.002397, allocations: 27.09 kB / 0.8141 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.197e-05/0.002409, allocations: 11.69 kB / 0.8142 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 9.589e-05/0.002505, allocations: 8.047 kB / 0.8142 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000232/0.002737, allocations: 34.11 kB / 0.8142 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.002738, allocations: 4 kB / 0.8142 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2): time 9.751e-05/0.002835, allocations: 38.17 kB / 0.8142 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.002863, allocations: 53.06 kB / 0.8143 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.046e-05/0.002903, allocations: 150.2 kB / 0.8144 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 7.605e-06/0.002911, allocations: 25.7 kB / 0.8145 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 2.81e-05/0.002939, allocations: 130.9 kB / 0.8146 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.002957, allocations: 8.891 kB / 0.8146 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.048e-05/0.002977, allocations: 19.38 kB / 0.8146 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.00308, allocations: 497.2 kB / 0.8151 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.043e-06/0.003087, allocations: 4 kB / 0.8151 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.003093, allocations: 0 / 0.8151 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.663e-05/0.003119, allocations: 20.77 kB / 0.8151 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.003121, allocations: 0 / 0.8151 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.984e-05/0.003161, allocations: 38.33 kB / 0.8151 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.003171, allocations: 8.719 kB / 0.8151 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.003176, allocations: 0 / 0.8151 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.574e-06/0.003183, allocations: 0.8438 kB / 0.8151 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.899e-05/0.003222, allocations: 4 kB / 0.8152 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.866e-06/0.003225, allocations: 1.844 kB / 0.8152 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.608e-06/0.003235, allocations: 3.984 kB / 0.8152 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.845e-06/0.003237, allocations: 3.938 kB / 0.8152 GB, free: 14.84 MB / 0.7761 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.388e-05/0.003291, allocations: 156.5 kB / 0.8153 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.13e-06/0.003296, allocations: 4.781 kB / 0.8153 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.3e-05/0.003349, allocations: 44.78 kB / 0.8154 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.003352, allocations: 6.375 kB / 0.8154 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.003355, allocations: 3.984 kB / 0.8154 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.003357, allocations: 0 / 0.8154 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.619e-05/0.003414, allocations: 97.19 kB / 0.8155 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.003415, allocations: 0 / 0.8155 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.024e-05/0.003425, allocations: 4 kB / 0.8155 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.003426, allocations: 1.969 kB / 0.8155 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.003433, allocations: 4 kB / 0.8155 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.003433, allocations: 0 / 0.8155 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.003434, allocations: 4 kB / 0.8155 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.83e-05/0.003492, allocations: 80.31 kB / 0.8156 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-06/0.003496, allocations: 0.5 kB / 0.8156 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.358e-06/0.003505, allocations: 4.875 kB / 0.8156 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.168e-06/0.003509, allocations: 0 / 0.8156 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.144e-05/0.003531, allocations: 3.984 kB / 0.8156 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-06/0.003532, allocations: 1.75 kB / 0.8156 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 2.888e-05/0.003561, allocations: 119.2 kB / 0.8157 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6.1e-08/0.003561, allocations: 0 / 0.8157 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000122/0.003683, allocations: 4 kB / 0.8157 GB, free: 14.26 MB / 0.7761 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.483e-05/0.003778, allocations: 100.6 kB / 0.8158 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 5.286e-05/0.003831, allocations: 19.67 kB / 0.8158 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 7.62e-07/0.003831, allocations: 0.7188 kB / 0.8158 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.166e-05/0.003843, allocations: 16.28 kB / 0.8158 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.331e-05/0.003926, allocations: 11.56 kB / 0.8158 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001272/0.004054, allocations: 89.34 kB / 0.8159 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.183e-05/0.004075, allocations: 51.36 kB / 0.816 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.049e-05/0.004086, allocations: 4 kB / 0.816 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.761e-05/0.004114, allocations: 66.2 kB / 0.816 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of SimCode: time 3.41e-07/0.004114, allocations: 0 / 0.816 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of Templates: time 0.001673/0.005787, allocations: 383 kB / 0.8164 GB, free: 13.48 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_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.04766404023394]