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.0009771/0.0009771, 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.0009643/0.0009643, 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.9129/0.9129, allocations: 177.1 MB / 204.2 MB, free: 5.254 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.927/1.927, allocations: 377.8 MB / 0.6236 GB, free: 8.539 MB / 0.5886 GB " [Timeout remaining time 177] 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.462e-06/1.462e-06, allocations: 0 / 0.8116 GB, free: 1.652 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.847e-05/2.994e-05, allocations: 8.641 kB / 0.8116 GB, free: 1.645 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001339/0.001369, allocations: 0.6024 MB / 0.8122 GB, free: 1.062 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002543/0.001623, allocations: 47.8 kB / 0.8122 GB, free: 1.016 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.881e-05/0.001642, allocations: 1.844 kB / 0.8122 GB, free: 1.016 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.154e-05/0.001663, allocations: 0 / 0.8122 GB, free: 1.016 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.00167, allocations: 0 / 0.8122 GB, free: 1.016 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.001923, allocations: 8 kB / 0.8122 GB, free: 1.008 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 5.803e-05/0.001981, allocations: 7.984 kB / 0.8122 GB, free: 1 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 3.972e-05/0.00202, allocations: 1.344 kB / 0.8122 GB, free: 1 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 2.747e-05/0.002048, allocations: 0 / 0.8122 GB, free: 1 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 3.196e-05/0.00208, allocations: 7.984 kB / 0.8123 GB, free: 0.9922 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.002094, allocations: 1.594 kB / 0.8123 GB, free: 0.9922 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 8.364e-05/0.002177, allocations: 15.92 kB / 0.8123 GB, free: 0.9766 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 1.192e-05/0.002189, allocations: 7.875 kB / 0.8123 GB, free: 0.9688 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 1.422e-05/0.002204, allocations: 0 / 0.8123 GB, free: 0.9688 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 9.251e-05/0.002296, allocations: 11.98 kB / 0.8123 GB, free: 0.957 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.002299, allocations: 0.7188 kB / 0.8123 GB, free: 0.957 MB / 0.7605 GB Notification: Performance of FrontEnd: time 6.92e-07/0.002299, allocations: 0.5312 kB / 0.8123 GB, free: 0.957 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.002305, allocations: 7.984 kB / 0.8123 GB, free: 0.9492 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.0002602/0.002566, allocations: 334.1 kB / 0.8126 GB, free: 0.5859 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.002616, allocations: 8.031 kB / 0.8126 GB, free: 0.5781 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.638e-05/0.002653, allocations: 0.9375 kB / 0.8126 GB, free: 0.5781 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.326e-05/0.002716, allocations: 108.6 kB / 0.8127 GB, free: 456 kB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.002728, allocations: 4.969 kB / 0.8127 GB, free: 452 kB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.00274, allocations: 4.359 kB / 0.8127 GB, free: 448 kB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.641e-05/0.002827, allocations: 35.56 kB / 0.8128 GB, free: 408 kB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.002837, allocations: 192 / 0.8128 GB, free: 408 kB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.036e-06/0.002845, allocations: 384 / 0.8128 GB, free: 408 kB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.924e-06/0.002853, allocations: 1.531 kB / 0.8128 GB, free: 408 kB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.68e-05/0.002879, allocations: 11.88 kB / 0.8128 GB, free: 396 kB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001115/0.002991, allocations: 116.6 kB / 0.8129 GB, free: 244 kB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 5.444e-05/0.003045, allocations: 28.47 kB / 0.8129 GB, free: 204 kB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.003061, allocations: 7.688 kB / 0.8129 GB, free: 192 kB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.003192, allocations: 4.062 kB / 0.8129 GB, free: 188 kB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.003216, allocations: 43 kB / 0.813 GB, free: 136 kB / 0.7605 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.003217, allocations: 0 / 0.813 GB, free: 136 kB / 0.7605 GB Notification: Performance of matching and sorting (n=2): time 0.0001261/0.003343, allocations: 41.64 kB / 0.813 GB, free: 88 kB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.003369, allocations: 53.03 kB / 0.8131 GB, free: 24 kB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.409e-05/0.003423, allocations: 142.2 kB / 0.8132 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 9.768e-06/0.003433, allocations: 25.7 kB / 0.8132 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 2.853e-05/0.003461, allocations: 130.9 kB / 0.8134 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.003482, allocations: 13.08 kB / 0.8134 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-05/0.003507, allocations: 23.36 kB / 0.8134 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.003616, allocations: 0.4883 MB / 0.8139 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.003627, allocations: 2.156 kB / 0.8139 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.618e-06/0.003637, allocations: 8 kB / 0.8139 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.599e-05/0.003673, allocations: 15.69 kB / 0.8139 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.003675, allocations: 0 / 0.8139 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.544e-05/0.003731, allocations: 43.81 kB / 0.8139 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.003743, allocations: 4 kB / 0.8139 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.003748, allocations: 0 / 0.8139 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.003764, allocations: 0 / 0.8139 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.821e-05/0.003822, allocations: 4 kB / 0.8139 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.003828, allocations: 0 / 0.8139 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.919e-06/0.003838, allocations: 4.438 kB / 0.8139 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.488e-06/0.003843, allocations: 4.531 kB / 0.8139 GB, free: 15.07 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.247e-05/0.003905, allocations: 162.5 kB / 0.8141 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-06/0.003909, allocations: 0 / 0.8141 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.276e-05/0.003992, allocations: 40.8 kB / 0.8141 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.003996, allocations: 3.984 kB / 0.8141 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.003999, allocations: 0 / 0.8141 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.004003, allocations: 6.25 kB / 0.8141 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.891e-05/0.004062, allocations: 112.6 kB / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.004063, allocations: 0 / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.294e-05/0.004076, allocations: 4 kB / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.004078, allocations: 0 / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-06/0.004083, allocations: 0 / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.004084, allocations: 1.094 kB / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.004085, allocations: 0 / 0.8143 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.949e-05/0.004145, allocations: 80.97 kB / 0.8143 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-06/0.004148, allocations: 0 / 0.8143 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.078e-06/0.004158, allocations: 0.9375 kB / 0.8143 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.781e-06/0.004163, allocations: 7.938 kB / 0.8143 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/0.00419, allocations: 4.828 kB / 0.8144 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-06/0.004192, allocations: 0 / 0.8144 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 2.757e-05/0.00422, 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.00422, allocations: 3.406 kB / 0.8145 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001237/0.004344, allocations: 7.938 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.0001102/0.004454, allocations: 103.2 kB / 0.8146 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 7.21e-05/0.004526, allocations: 23.67 kB / 0.8146 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.004528, allocations: 0 / 0.8146 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.381e-05/0.004541, 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 9.683e-05/0.004638, allocations: 2.188 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.0001893/0.004827, allocations: 97.28 kB / 0.8147 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.618e-05/0.004864, allocations: 55.36 kB / 0.8148 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.161e-05/0.004875, allocations: 4 kB / 0.8148 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.854e-05/0.004894, allocations: 8.5 kB / 0.8148 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of SimCode: time 1.082e-06/0.004895, allocations: 0.9688 kB / 0.8148 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of Templates: time 0.002181/0.007076, allocations: 351.9 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: 5.327743832953274]