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.001278/0.001278, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.001342/0.001342, allocations: 190.3 kB / 22.23 MB, free: 5.137 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.451/1.451, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.769/2.769, allocations: 476.7 MB / 0.7646 GB, free: 9.902 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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.00214/0.00214, allocations: 63.91 kB / 1.11 GB, free: 6.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8799/0.882, allocations: 168.8 MB / 1.274 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00275/0.8847, allocations: 1.521 MB / 1.276 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003542/0.8851, allocations: 135.5 kB / 1.276 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.518e-05/0.8851, allocations: 0 / 1.276 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.376e-05/0.8852, allocations: 0 / 1.276 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.398e-05/0.8852, allocations: 3.938 kB / 1.276 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.8854, allocations: 27.86 kB / 1.276 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.853e-05/0.8855, allocations: 27.92 kB / 1.276 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.8856, allocations: 15.98 kB / 1.276 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.797e-05/0.8857, allocations: 19.92 kB / 1.276 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.185e-05/0.8857, allocations: 11.98 kB / 1.276 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.8857, allocations: 4 kB / 1.276 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.211e-05/0.8858, allocations: 15.98 kB / 1.276 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.559e-05/0.8858, allocations: 7.938 kB / 1.276 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.752e-05/0.8858, allocations: 15.92 kB / 1.276 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.886, allocations: 39.55 kB / 1.276 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.886, allocations: 0 / 1.276 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.044e-06/0.886, allocations: 0 / 1.276 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.886, allocations: 0 / 1.276 GB, free: 2.383 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.0004487/0.8864, allocations: 269 kB / 1.276 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.8865, allocations: 8.031 kB / 1.276 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.8865, allocations: 8.891 kB / 1.276 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.8866, allocations: 110.5 kB / 1.277 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.8866, allocations: 8.375 kB / 1.277 GB, free: 1.934 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.8866, allocations: 384 / 1.277 GB, free: 1.934 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.8869, allocations: 58.17 kB / 1.277 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.8869, allocations: 192 / 1.277 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.8869, allocations: 7.938 kB / 1.277 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.8869, allocations: 0 / 1.277 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.8871, allocations: 43.95 kB / 1.277 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003646/0.8875, allocations: 232 kB / 1.277 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.8878, allocations: 66.42 kB / 1.277 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.651e-05/0.8879, allocations: 28.89 kB / 1.277 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 7.46e-05/0.8879, allocations: 0 / 1.277 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.888, allocations: 34.56 kB / 1.277 GB, free: 1.402 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 8.71e-07/0.888, allocations: 0 / 1.277 GB, free: 1.402 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0003729/0.8883, allocations: 97.62 kB / 1.277 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.8884, allocations: 51.41 kB / 1.277 GB, free: 1.238 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.909e-05/0.8885, allocations: 101.8 kB / 1.277 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.8885, allocations: 29.64 kB / 1.277 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.494e-05/0.8885, allocations: 84.14 kB / 1.277 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.8886, allocations: 11.88 kB / 1.277 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.615e-05/0.8886, allocations: 21.66 kB / 1.277 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.8888, allocations: 314.8 kB / 1.278 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.194e-05/0.8889, allocations: 23.98 kB / 1.278 GB, free: 0.6289 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.026e-05/0.8889, allocations: 23.97 kB / 1.278 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.8891, allocations: 36.83 kB / 1.278 GB, free: 0.5664 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.8891, allocations: 3.938 kB / 1.278 GB, free: 0.5625 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002166/0.8893, allocations: 85.53 kB / 1.278 GB, free: 484 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.8893, allocations: 8 kB / 1.278 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.8893, allocations: 0 / 1.278 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.8894, allocations: 0 / 1.278 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-05/0.8894, allocations: 16.44 kB / 1.278 GB, free: 460 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.8894, allocations: 0 / 1.278 GB, free: 460 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.429e-05/0.8895, allocations: 4 kB / 1.278 GB, free: 456 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.8895, allocations: 3.984 kB / 1.278 GB, free: 452 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 9.45e-05/0.8896, allocations: 117.8 kB / 1.278 GB, free: 324 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.8896, allocations: 4 kB / 1.278 GB, free: 320 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002568/0.8899, allocations: 85.31 kB / 1.278 GB, free: 228 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.8899, allocations: 0 / 1.278 GB, free: 228 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.8899, allocations: 0 / 1.278 GB, free: 228 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.8899, allocations: 0 / 1.278 GB, free: 228 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001773/0.8901, allocations: 140.7 kB / 1.278 GB, free: 44 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.8901, allocations: 4 kB / 1.278 GB, free: 40 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.561e-05/0.8901, allocations: 15.92 kB / 1.278 GB, free: 24 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.8901, allocations: 4 kB / 1.278 GB, free: 20 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.433e-06/0.8901, allocations: 0 / 1.278 GB, free: 20 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.8902, allocations: 0 / 1.278 GB, free: 20 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.8902, allocations: 0 / 1.278 GB, free: 20 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.8904, allocations: 167.5 kB / 1.278 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.361e-05/0.8904, allocations: 11.94 kB / 1.278 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.8905, allocations: 0 / 1.278 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.844e-05/0.8906, allocations: 12 kB / 1.278 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.8906, allocations: 3.984 kB / 1.278 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.8906, allocations: 4 kB / 1.278 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.762e-05/0.8907, allocations: 83.27 kB / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.8907, allocations: 0 / 1.278 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000225/0.8909, allocations: 11.94 kB / 1.278 GB, free: 15.71 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.0001576/0.891, allocations: 102.9 kB / 1.279 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002289/0.8913, allocations: 51.89 kB / 1.279 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.8913, allocations: 0 / 1.279 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.684e-05/0.8914, allocations: 19.97 kB / 1.279 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.8917, allocations: 11.94 kB / 1.279 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003247/0.892, allocations: 109.5 kB / 1.279 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.8923, allocations: 0.6807 MB / 1.279 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.399e-05/0.8924, allocations: 4 kB / 1.279 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.837e-05/0.8924, allocations: 15.38 kB / 1.279 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.8924, allocations: 0 / 1.279 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of Templates: time 0.003522/0.8959, allocations: 0.7316 MB / 1.28 GB, free: 13.94 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/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.6629809262231]