Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 115.7 kB / 18.89 MB, free: 2.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002127/0.002127, allocations: 203.7 kB / 22.18 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 225.6 MB / 250.9 MB, free: 13.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.815/2.815, allocations: 476.7 MB / 0.7645 GB, free: 10.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 63.89 kB / 1.109 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8522/0.8542, allocations: 168.7 MB / 1.274 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003449/0.8577, allocations: 1.533 MB / 1.276 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000439/0.8581, allocations: 123.6 kB / 1.276 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.989e-05/0.8582, allocations: 0 / 1.276 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.926e-05/0.8582, allocations: 0 / 1.276 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.749e-05/0.8583, allocations: 11.92 kB / 1.276 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.8585, allocations: 27.91 kB / 1.276 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.702e-05/0.8586, allocations: 23.98 kB / 1.276 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.8587, allocations: 12 kB / 1.276 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.18e-05/0.8588, allocations: 15.92 kB / 1.276 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.083e-05/0.8588, allocations: 19.91 kB / 1.276 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.942e-05/0.8589, allocations: 4 kB / 1.276 GB, free: 2.719 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.921e-05/0.8589, allocations: 8 kB / 1.276 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.859, allocations: 7.938 kB / 1.276 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.45e-05/0.859, allocations: 15.92 kB / 1.276 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.8591, allocations: 34.56 kB / 1.276 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.8591, allocations: 4 kB / 1.276 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.784e-06/0.8591, allocations: 0 / 1.276 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.8592, allocations: 0 / 1.276 GB, free: 2.652 MB / 0.9669 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.0006208/0.8598, allocations: 347.4 kB / 1.276 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.8598, allocations: 8.031 kB / 1.276 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.187e-05/0.8599, allocations: 8.891 kB / 1.276 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.86, allocations: 164.4 kB / 1.276 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.396e-05/0.8601, allocations: 4.375 kB / 1.276 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.8601, allocations: 384 / 1.276 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.8603, allocations: 62.22 kB / 1.276 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.8603, allocations: 4.125 kB / 1.276 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.8604, allocations: 7.938 kB / 1.276 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.8604, allocations: 0 / 1.276 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002074/0.8606, allocations: 39.95 kB / 1.276 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005028/0.8611, allocations: 260.9 kB / 1.277 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004007/0.8615, allocations: 62.53 kB / 1.277 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.8616, allocations: 28.77 kB / 1.277 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.8617, allocations: 85.09 kB / 1.277 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.8618, allocations: 34.56 kB / 1.277 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.8618, allocations: 3.938 kB / 1.277 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004375/0.8622, allocations: 97.62 kB / 1.277 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.8623, allocations: 55.41 kB / 1.277 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.8624, allocations: 97.86 kB / 1.277 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.8624, allocations: 25.7 kB / 1.277 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/0.8625, allocations: 88.06 kB / 1.277 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.8625, allocations: 15.89 kB / 1.277 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.941e-05/0.8625, allocations: 17.72 kB / 1.277 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000183/0.8627, allocations: 310.8 kB / 1.278 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.8628, allocations: 23.91 kB / 1.278 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.788e-05/0.8629, allocations: 19.98 kB / 1.278 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.8631, allocations: 48.81 kB / 1.278 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.8631, allocations: 3.938 kB / 1.278 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002417/0.8633, allocations: 73.61 kB / 1.278 GB, free: 460 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.8633, allocations: 8 kB / 1.278 GB, free: 452 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.8633, allocations: 0 / 1.278 GB, free: 452 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.8634, allocations: 3.984 kB / 1.278 GB, free: 448 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.593e-05/0.8635, allocations: 8 kB / 1.278 GB, free: 440 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.8635, allocations: 3.938 kB / 1.278 GB, free: 436 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.157e-05/0.8635, allocations: 11.98 kB / 1.278 GB, free: 424 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.8635, allocations: 4 kB / 1.278 GB, free: 420 kB / 0.9669 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 0.0001032/0.8636, allocations: 113.8 kB / 1.278 GB, free: 296 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.64e-05/0.8637, allocations: 0 / 1.278 GB, free: 296 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003167/0.864, allocations: 77.14 kB / 1.278 GB, free: 212 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.864, allocations: 3.984 kB / 1.278 GB, free: 208 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.864, allocations: 4 kB / 1.278 GB, free: 204 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.864, allocations: 0 / 1.278 GB, free: 204 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.8642, allocations: 169.6 kB / 1.278 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.8642, allocations: 3.984 kB / 1.278 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.931e-05/0.8643, allocations: 8 kB / 1.278 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.8643, allocations: 0 / 1.278 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.8643, allocations: 7.984 kB / 1.278 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.8643, allocations: 3.938 kB / 1.278 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.8643, allocations: 0.5625 kB / 1.278 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003168/0.8647, allocations: 171.5 kB / 1.278 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.423e-05/0.8647, allocations: 85.09 kB / 1.278 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.8647, allocations: 7.984 kB / 1.278 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.846e-05/0.8648, allocations: 4 kB / 1.278 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.062e-05/0.8649, allocations: 7.984 kB / 1.278 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.8649, allocations: 7.938 kB / 1.278 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.345e-05/0.8649, allocations: 83.28 kB / 1.279 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.8649, allocations: 0 / 1.279 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002381/0.8652, allocations: 11.94 kB / 1.279 GB, free: 15.55 MB / 0.9825 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.0001976/0.8654, allocations: 107.8 kB / 1.279 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002684/0.8657, allocations: 47.89 kB / 1.279 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.8657, allocations: 0 / 1.279 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.8658, allocations: 19.98 kB / 1.279 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.8661, allocations: 17.58 kB / 1.279 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003701/0.8664, allocations: 125.4 kB / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.8668, allocations: 0.6807 MB / 1.279 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.742e-05/0.8668, allocations: 0 / 1.279 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.184e-05/0.8668, allocations: 11.44 kB / 1.28 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of SimCode: time 5.61e-07/0.8668, allocations: 0 / 1.28 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of Templates: time 0.00363/0.8705, allocations: 0.7115 MB / 1.28 GB, free: 13.79 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.94776163296774]