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.0009849/0.0009849, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001044/0.001044, allocations: 169 kB / 24.28 MB, free: 280 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.9974/0.9974, 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 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.911/1.911, allocations: 377.8 MB / 0.6239 GB, free: 8.582 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.453e-06/1.453e-06, allocations: 0 / 0.8116 GB, free: 2.012 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.627e-05/1.772e-05, allocations: 7.031 kB / 0.8116 GB, free: 2.008 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001028/0.001046, allocations: 0.5989 MB / 0.8122 GB, free: 1.43 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002038/0.00125, allocations: 40.53 kB / 0.8122 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.749e-05/0.001267, allocations: 0.5312 kB / 0.8122 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 1.483e-05/0.001282, allocations: 1.344 kB / 0.8122 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 5.831e-06/0.001288, allocations: 0 / 0.8122 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.001501, allocations: 19.86 kB / 0.8122 GB, free: 1.371 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 4.126e-05/0.001542, allocations: 4 kB / 0.8122 GB, free: 1.367 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 3.438e-05/0.001576, allocations: 0.5312 kB / 0.8122 GB, free: 1.367 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 2.299e-05/0.001599, allocations: 5.359 kB / 0.8122 GB, free: 1.363 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 2.023e-05/0.001619, allocations: 7.984 kB / 0.8122 GB, free: 1.355 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.00163, allocations: 0 / 0.8122 GB, free: 1.355 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 6.811e-05/0.001699, allocations: 11.94 kB / 0.8123 GB, free: 1.344 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 8.986e-06/0.001708, allocations: 1.156 kB / 0.8123 GB, free: 1.344 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 1.414e-05/0.001722, allocations: 0 / 0.8123 GB, free: 1.344 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 7.761e-05/0.001799, allocations: 11.97 kB / 0.8123 GB, free: 1.332 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.001801, allocations: 1.312 kB / 0.8123 GB, free: 1.332 MB / 0.7605 GB Notification: Performance of FrontEnd: time 5.11e-07/0.001802, allocations: 0 / 0.8123 GB, free: 1.332 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.001805, allocations: 0 / 0.8123 GB, free: 1.332 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.0002347/0.00204, allocations: 344.4 kB / 0.8126 GB, free: 0.957 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.002072, allocations: 9.312 kB / 0.8126 GB, free: 0.9492 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.294e-05/0.002105, allocations: 4.938 kB / 0.8126 GB, free: 0.9453 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.868e-05/0.002173, allocations: 108.6 kB / 0.8127 GB, free: 0.8125 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.002186, allocations: 4.969 kB / 0.8127 GB, free: 0.8086 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-06/0.002193, allocations: 384 / 0.8127 GB, free: 0.8086 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.844e-05/0.002272, allocations: 39.59 kB / 0.8128 GB, free: 0.7656 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.002278, allocations: 4.125 kB / 0.8128 GB, free: 0.7617 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.002285, allocations: 384 / 0.8128 GB, free: 0.7617 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.002291, allocations: 2.156 kB / 0.8128 GB, free: 0.7617 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.429e-05/0.002315, allocations: 7.938 kB / 0.8128 GB, free: 0.7539 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.74e-05/0.002413, allocations: 108.6 kB / 0.8129 GB, free: 0.6133 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 4.727e-05/0.00246, allocations: 39.02 kB / 0.8129 GB, free: 0.5625 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.576e-05/0.002476, allocations: 14.23 kB / 0.8129 GB, free: 0.5469 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.002588, allocations: 4.062 kB / 0.8129 GB, free: 0.543 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.00261, allocations: 37.39 kB / 0.813 GB, free: 0.4961 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.002611, allocations: 0 / 0.813 GB, free: 0.4961 MB / 0.7605 GB Notification: Performance of matching and sorting (n=2): time 0.0001138/0.002724, allocations: 41.69 kB / 0.813 GB, free: 460 kB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.002753, allocations: 51.41 kB / 0.8131 GB, free: 396 kB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.915e-05/0.002792, allocations: 142.8 kB / 0.8132 GB, free: 240 kB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 9.017e-06/0.002801, allocations: 26.23 kB / 0.8132 GB, free: 208 kB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 3.171e-05/0.002833, allocations: 126.9 kB / 0.8133 GB, free: 76 kB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.002849, allocations: 14.17 kB / 0.8133 GB, free: 64 kB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.25e-05/0.002872, allocations: 19.38 kB / 0.8134 GB, free: 36 kB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.002989, allocations: 0.4922 MB / 0.8138 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.149e-05/0.003, allocations: 3.984 kB / 0.8139 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.524e-06/0.003008, allocations: 5.875 kB / 0.8139 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.182e-05/0.00304, allocations: 15.69 kB / 0.8139 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.003042, allocations: 0 / 0.8139 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.576e-05/0.003088, allocations: 33.7 kB / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.003099, allocations: 8.703 kB / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.003102, allocations: 0 / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.003114, allocations: 0.5312 kB / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.432e-05/0.003158, allocations: 4.719 kB / 0.8139 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.003162, allocations: 3.938 kB / 0.8139 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.448e-06/0.003172, allocations: 4.844 kB / 0.8139 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.87e-06/0.003177, allocations: 4 kB / 0.8139 GB, free: 15.44 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 6.17e-05/0.003238, allocations: 153.4 kB / 0.8141 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-06/0.003243, allocations: 4 kB / 0.8141 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.349e-05/0.003317, allocations: 42.12 kB / 0.8141 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.003319, allocations: 0 / 0.8141 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.003323, allocations: 0 / 0.8141 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.003329, allocations: 0.8438 kB / 0.8141 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.296e-05/0.003401, allocations: 120.5 kB / 0.8142 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.003404, allocations: 5.234 kB / 0.8142 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.186e-05/0.003416, allocations: 4 kB / 0.8142 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.003419, allocations: 0 / 0.8142 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.003426, allocations: 4 kB / 0.8142 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.003427, allocations: 1.281 kB / 0.8143 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.003428, allocations: 0 / 0.8143 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.3e-05/0.003491, allocations: 85.44 kB / 0.8143 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-06/0.003495, allocations: 0 / 0.8143 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-06/0.003505, allocations: 0 / 0.8143 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.248e-06/0.003509, allocations: 0 / 0.8143 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.694e-05/0.003536, allocations: 5.125 kB / 0.8143 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.003539, allocations: 0 / 0.8143 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.007e-05/0.003569, allocations: 119.2 kB / 0.8145 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.003569, allocations: 1.062 kB / 0.8145 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001227/0.003691, allocations: 4 kB / 0.8145 GB, free: 14.84 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.000121/0.003812, allocations: 108.2 kB / 0.8146 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 7.44e-05/0.003887, allocations: 24.12 kB / 0.8146 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.003888, allocations: 1.438 kB / 0.8146 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.518e-05/0.003903, allocations: 15.67 kB / 0.8146 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001048/0.004008, allocations: 1.891 kB / 0.8146 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001871/0.004195, allocations: 90.11 kB / 0.8147 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.996e-05/0.004225, allocations: 51.36 kB / 0.8147 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.205e-05/0.004237, allocations: 9.328 kB / 0.8147 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.708e-05/0.004254, allocations: 8.5 kB / 0.8148 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of SimCode: time 5.51e-07/0.004255, allocations: 0 / 0.8148 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of Templates: time 0.001864/0.006119, allocations: 351 kB / 0.8151 GB, free: 14.14 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.097581423819065]