Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009236/0.0009236, 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.0009989/0.0009989, allocations: 169 kB / 24.28 MB, free: 276 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.9612/0.9612, 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.865/1.865, allocations: 377.8 MB / 0.6239 GB, free: 8.574 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 0.8115 GB, free: 0.918 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.937e-05/2.052e-05, allocations: 2.312 kB / 0.8115 GB, free: 0.9141 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001902/0.001922, allocations: 1.579 MB / 0.8131 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.00029/0.002212, allocations: 128.9 kB / 0.8132 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.639e-05/0.002249, allocations: 4 kB / 0.8132 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 2.429e-05/0.002273, allocations: 1.25 kB / 0.8132 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 4.353e-05/0.002317, allocations: 5.25 kB / 0.8132 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.002544, allocations: 27.73 kB / 0.8132 GB, free: 15.19 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 6.736e-05/0.002611, allocations: 34 kB / 0.8133 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 9.173e-05/0.002703, allocations: 4 kB / 0.8133 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 5.367e-05/0.002757, allocations: 19.98 kB / 0.8133 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 3.874e-05/0.002795, allocations: 11.98 kB / 0.8133 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.002811, allocations: 4 kB / 0.8133 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 5.408e-05/0.002865, allocations: 12.47 kB / 0.8133 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 1.539e-05/0.00288, allocations: 11.94 kB / 0.8133 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 1.835e-05/0.002899, allocations: 8.938 kB / 0.8133 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.003002, allocations: 27.95 kB / 0.8133 GB, free: 15.06 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.003007, allocations: 9.016 kB / 0.8134 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of FrontEnd: time 5.81e-07/0.003008, allocations: 0 / 0.8134 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.003012, allocations: 0 / 0.8134 GB, free: 15.05 MB / 0.7292 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.0003311/0.003343, allocations: 361.6 kB / 0.8137 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.003377, allocations: 8.031 kB / 0.8137 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.649e-05/0.003413, allocations: 8.891 kB / 0.8137 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.685e-05/0.0035, allocations: 112.6 kB / 0.8138 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.00352, allocations: 5.266 kB / 0.8138 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.00353, allocations: 4.375 kB / 0.8138 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.003662, allocations: 59.95 kB / 0.8139 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.003669, allocations: 192 / 0.8139 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.00368, allocations: 4.859 kB / 0.8139 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.003689, allocations: 4.375 kB / 0.8139 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.537e-05/0.003725, allocations: 12.58 kB / 0.8139 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002807/0.004005, allocations: 265 kB / 0.8142 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.00417, allocations: 50.98 kB / 0.8142 GB, free: 14.06 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.425e-05/0.004194, allocations: 18.17 kB / 0.8142 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 7.025e-05/0.004264, allocations: 8 kB / 0.8142 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.004285, allocations: 33.39 kB / 0.8143 GB, free: 13.99 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.004286, allocations: 0 / 0.8143 GB, free: 13.99 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001533/0.004439, allocations: 53.62 kB / 0.8143 GB, free: 13.93 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.004468, allocations: 51.41 kB / 0.8144 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.185e-05/0.00454, allocations: 162.4 kB / 0.8145 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.004549, allocations: 25.7 kB / 0.8145 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.272e-05/0.004592, allocations: 132.4 kB / 0.8147 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.004607, allocations: 7.953 kB / 0.8147 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.77e-05/0.004635, allocations: 27.3 kB / 0.8147 GB, free: 13.49 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.004737, allocations: 496.1 kB / 0.8152 GB, free: 12.99 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.689e-05/0.004754, allocations: 5.375 kB / 0.8152 GB, free: 12.99 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.396e-05/0.004768, allocations: 7.984 kB / 0.8152 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.435e-05/0.004802, allocations: 23.69 kB / 0.8152 GB, free: 12.95 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.004804, allocations: 1.438 kB / 0.8152 GB, free: 12.95 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.785e-05/0.004862, allocations: 45.64 kB / 0.8153 GB, free: 12.9 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.004874, allocations: 7.938 kB / 0.8153 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.004878, allocations: 0 / 0.8153 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.004889, allocations: 1.156 kB / 0.8153 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.554e-05/0.004934, allocations: 15.92 kB / 0.8153 GB, free: 12.88 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.004938, allocations: 3.938 kB / 0.8153 GB, free: 12.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.181e-05/0.00496, allocations: 8.531 kB / 0.8153 GB, free: 12.87 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-06/0.004964, allocations: 0.5312 kB / 0.8153 GB, free: 12.87 MB / 0.7292 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 5.719e-05/0.005021, allocations: 153.5 kB / 0.8154 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.441e-05/0.005036, allocations: 4 kB / 0.8154 GB, free: 12.7 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.149e-05/0.005127, allocations: 58.62 kB / 0.8155 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.005129, allocations: 0 / 0.8155 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.005132, allocations: 0.5312 kB / 0.8155 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.005134, allocations: 1.375 kB / 0.8155 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.932e-05/0.005224, allocations: 116.6 kB / 0.8156 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.005225, allocations: 48 / 0.8156 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.973e-05/0.005254, allocations: 15.97 kB / 0.8156 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.005256, allocations: 1.156 kB / 0.8156 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.005263, allocations: 4 kB / 0.8156 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.005265, allocations: 7.875 kB / 0.8156 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.005266, allocations: 0.8125 kB / 0.8156 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.943e-05/0.005355, allocations: 191.9 kB / 0.8158 GB, free: 12.26 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-06/0.00536, allocations: 4.516 kB / 0.8158 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.071e-05/0.005371, allocations: 4.75 kB / 0.8158 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.34e-05/0.005404, allocations: 7.922 kB / 0.8158 GB, free: 12.24 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.005451, allocations: 9.188 kB / 0.8159 GB, free: 12.23 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.005455, allocations: 3.984 kB / 0.8159 GB, free: 12.23 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.039e-05/0.005485, allocations: 123.2 kB / 0.816 GB, free: 12.11 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6e-08/0.005485, allocations: 0.7188 kB / 0.816 GB, free: 12.11 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001487/0.005634, allocations: 8 kB / 0.816 GB, free: 12.1 MB / 0.7292 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.0001031/0.005737, allocations: 104 kB / 0.8161 GB, free: 11.99 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 7.92e-05/0.005816, allocations: 33.17 kB / 0.8161 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.005818, allocations: 0 / 0.8161 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.36e-05/0.005841, allocations: 19.67 kB / 0.8161 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001678/0.006009, allocations: 16.92 kB / 0.8162 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002446/0.006254, allocations: 126.1 kB / 0.8163 GB, free: 11.76 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.605e-05/0.00629, allocations: 62.62 kB / 0.8163 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.305e-05/0.006313, allocations: 7.938 kB / 0.8163 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.576e-05/0.006338, allocations: 12.5 kB / 0.8164 GB, free: 11.66 MB / 0.7292 GB Notification: Performance of SimCode: time 7.31e-07/0.006339, allocations: 0 / 0.8164 GB, free: 11.66 MB / 0.7292 GB Notification: Performance of Templates: time 0.002675/0.009014, allocations: 0.7475 MB / 0.8171 GB, free: 10.95 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.970480852061883]