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.0009249/0.0009249, 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.0008914/0.0008914, 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.8751/0.8751, allocations: 177.1 MB / 204.2 MB, free: 5.598 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.864/1.864, allocations: 377.9 MB / 0.6236 GB, free: 8.543 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 2.144e-06/2.144e-06, allocations: 0.875 kB / 0.8116 GB, free: 1.656 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.757e-05/1.972e-05, allocations: 4.703 kB / 0.8116 GB, free: 1.652 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001268/0.001288, allocations: 0.6063 MB / 0.8122 GB, free: 1.066 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002319/0.00152, allocations: 43.86 kB / 0.8122 GB, free: 1.023 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.919e-05/0.001539, allocations: 0.6562 kB / 0.8122 GB, free: 1.023 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.152e-05/0.001561, allocations: 0 / 0.8122 GB, free: 1.023 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.001568, allocations: 4.812 kB / 0.8122 GB, free: 1.02 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.001809, allocations: 8 kB / 0.8122 GB, free: 1.012 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 4.779e-05/0.001857, allocations: 4 kB / 0.8122 GB, free: 1.008 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 4.408e-05/0.001901, allocations: 5.078 kB / 0.8123 GB, free: 1.004 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 3.235e-05/0.001933, allocations: 4 kB / 0.8123 GB, free: 1 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 2.555e-05/0.001959, allocations: 5.547 kB / 0.8123 GB, free: 0.9961 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.001975, allocations: 0 / 0.8123 GB, free: 0.9961 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.002075, allocations: 19.86 kB / 0.8123 GB, free: 0.9766 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 1.274e-05/0.002088, allocations: 0 / 0.8123 GB, free: 0.9766 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 1.627e-05/0.002104, allocations: 0 / 0.8123 GB, free: 0.9766 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.002206, allocations: 13.53 kB / 0.8123 GB, free: 0.9648 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.002209, allocations: 0 / 0.8123 GB, free: 0.9648 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.583e-06/0.00221, allocations: 0 / 0.8123 GB, free: 0.9648 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.002216, allocations: 0 / 0.8123 GB, free: 0.9648 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.0003011/0.002517, allocations: 337.7 kB / 0.8126 GB, free: 0.5977 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.002557, allocations: 8.031 kB / 0.8126 GB, free: 0.5898 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.082e-05/0.002598, allocations: 4.938 kB / 0.8126 GB, free: 0.5859 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.926e-05/0.002667, allocations: 117.8 kB / 0.8127 GB, free: 456 kB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.002681, allocations: 384 / 0.8127 GB, free: 456 kB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.00269, allocations: 4.375 kB / 0.8127 GB, free: 452 kB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.002793, allocations: 30.78 kB / 0.8128 GB, free: 416 kB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.002802, allocations: 192 / 0.8128 GB, free: 416 kB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.002817, allocations: 1.094 kB / 0.8128 GB, free: 416 kB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.002825, allocations: 4.375 kB / 0.8128 GB, free: 412 kB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.607e-05/0.002852, allocations: 5.438 kB / 0.8128 GB, free: 408 kB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001284/0.00298, allocations: 120.6 kB / 0.8129 GB, free: 252 kB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 5.703e-05/0.003037, allocations: 31.03 kB / 0.8129 GB, free: 208 kB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.107e-05/0.003058, allocations: 12.38 kB / 0.8129 GB, free: 192 kB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001577/0.003216, allocations: 5 kB / 0.8129 GB, free: 188 kB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.003245, allocations: 37.39 kB / 0.813 GB, free: 140 kB / 0.7605 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.003246, allocations: 0 / 0.813 GB, free: 140 kB / 0.7605 GB Notification: Performance of matching and sorting (n=2): time 0.0001577/0.003404, allocations: 38.44 kB / 0.813 GB, free: 96 kB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.00344, allocations: 55.97 kB / 0.8131 GB, free: 28 kB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.977e-05/0.0035, allocations: 150.2 kB / 0.8132 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.00351, allocations: 27.02 kB / 0.8132 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 2.787e-05/0.003538, allocations: 126.9 kB / 0.8134 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.003561, allocations: 12.23 kB / 0.8134 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-05/0.003586, allocations: 25.11 kB / 0.8134 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.003704, allocations: 496.1 kB / 0.8139 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-06/0.003713, allocations: 0 / 0.8139 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.535e-06/0.003721, allocations: 4 kB / 0.8139 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.24e-05/0.003753, allocations: 18 kB / 0.8139 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.003755, allocations: 0 / 0.8139 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.516e-05/0.0038, allocations: 37.69 kB / 0.8139 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.003812, allocations: 4 kB / 0.8139 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.003817, allocations: 7.938 kB / 0.8139 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.003829, allocations: 0 / 0.8139 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.972e-05/0.003879, allocations: 3.438 kB / 0.8139 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.003886, allocations: 4 kB / 0.8139 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.077e-06/0.003895, allocations: 3.938 kB / 0.814 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-06/0.003899, allocations: 0 / 0.814 GB, free: 15.08 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.755e-05/0.003957, allocations: 156.6 kB / 0.8141 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.67e-06/0.003963, allocations: 7.984 kB / 0.8141 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.757e-05/0.00403, allocations: 36.86 kB / 0.8141 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.004034, allocations: 8 kB / 0.8142 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.004038, allocations: 0.875 kB / 0.8142 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.004042, allocations: 3.984 kB / 0.8142 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.863e-05/0.004101, allocations: 109.1 kB / 0.8143 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.004102, allocations: 0.5625 kB / 0.8143 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.708e-06/0.004111, allocations: 4 kB / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.004113, allocations: 4.5 kB / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-06/0.004119, allocations: 1.219 kB / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.004121, allocations: 4 kB / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.004122, allocations: 0 / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.438e-05/0.004176, allocations: 77.09 kB / 0.8143 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-06/0.004181, allocations: 0 / 0.8143 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.445e-06/0.004189, allocations: 4.531 kB / 0.8144 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.028e-06/0.004194, allocations: 2.062 kB / 0.8144 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.802e-05/0.004222, allocations: 3.984 kB / 0.8144 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-06/0.004223, allocations: 3.938 kB / 0.8144 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 2.864e-05/0.004251, allocations: 119.2 kB / 0.8145 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.004251, allocations: 4 kB / 0.8145 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001173/0.004369, allocations: 4 kB / 0.8145 GB, free: 14.47 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 0.0001109/0.00448, allocations: 104.9 kB / 0.8146 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 7.71e-05/0.004557, allocations: 23.61 kB / 0.8146 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.004558, allocations: 1.281 kB / 0.8146 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.235e-05/0.00457, allocations: 11.69 kB / 0.8146 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.984e-05/0.00466, allocations: 3.031 kB / 0.8146 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001913/0.004851, allocations: 93.34 kB / 0.8147 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.913e-05/0.004881, allocations: 55.36 kB / 0.8148 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.008e-05/0.004891, allocations: 1.156 kB / 0.8148 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2e-05/0.004911, allocations: 12.5 kB / 0.8148 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of SimCode: time 3.6e-07/0.004911, allocations: 0 / 0.8148 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of Templates: time 0.00185/0.006761, allocations: 364.2 kB / 0.8151 GB, free: 13.77 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: 4.760782867204398]