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.002034/0.002034, allocations: 80.41 kB / 20.23 MB, free: 4.195 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.00275/0.00275, allocations: 161.7 kB / 23.55 MB, free: 0.8867 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 1.461/1.461, allocations: 177.1 MB / 203.9 MB, free: 5.332 MB / 186.7 MB " [Timeout remaining time 178] 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 2.811/2.811, allocations: 377.8 MB / 0.6232 GB, free: 8.523 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.823e-06/1.823e-06, allocations: 0 / 0.8109 GB, free: 2.031 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.77e-05/2.953e-05, allocations: 3.406 kB / 0.8109 GB, free: 2.027 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002359/0.002388, allocations: 0.5995 MB / 0.8114 GB, free: 1.453 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002999/0.002688, allocations: 44.47 kB / 0.8115 GB, free: 1.41 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.884e-05/0.002707, allocations: 0 / 0.8115 GB, free: 1.41 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 1.232e-05/0.002719, allocations: 0 / 0.8115 GB, free: 1.41 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.002726, allocations: 0.8438 kB / 0.8115 GB, free: 1.41 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.003001, allocations: 12.58 kB / 0.8115 GB, free: 1.398 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 4.843e-05/0.003049, allocations: 8.969 kB / 0.8115 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 4.192e-05/0.003091, allocations: 0 / 0.8115 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 3.732e-05/0.003129, allocations: 10.25 kB / 0.8115 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 2.014e-05/0.003149, allocations: 0 / 0.8115 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.003161, allocations: 0 / 0.8115 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 9.655e-05/0.003258, allocations: 11.98 kB / 0.8115 GB, free: 1.371 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 9.928e-06/0.003268, allocations: 0.5469 kB / 0.8115 GB, free: 1.371 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 2.636e-05/0.003294, allocations: 5.938 kB / 0.8115 GB, free: 1.367 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.003402, allocations: 19.84 kB / 0.8116 GB, free: 1.348 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.003404, allocations: 0 / 0.8116 GB, free: 1.348 MB / 0.7605 GB Notification: Performance of FrontEnd: time 6.22e-07/0.003405, allocations: 0 / 0.8116 GB, free: 1.348 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.003409, allocations: 1.375 kB / 0.8116 GB, free: 1.348 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.0004724/0.003882, allocations: 238.5 kB / 0.8118 GB, free: 1.082 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.003927, allocations: 12.03 kB / 0.8118 GB, free: 1.07 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.115e-05/0.003979, allocations: 0.9375 kB / 0.8118 GB, free: 1.07 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.004111, allocations: 103.5 kB / 0.8119 GB, free: 0.9453 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.004126, allocations: 384 / 0.8119 GB, free: 0.9453 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.004142, allocations: 8.312 kB / 0.8119 GB, free: 0.9375 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.004255, allocations: 30.27 kB / 0.8119 GB, free: 0.9023 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.004269, allocations: 5.516 kB / 0.8119 GB, free: 0.8984 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.004277, allocations: 4.375 kB / 0.8119 GB, free: 0.8945 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.004282, allocations: 384 / 0.8119 GB, free: 0.8945 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.769e-05/0.00433, allocations: 3.938 kB / 0.8119 GB, free: 0.8906 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.004517, allocations: 99.23 kB / 0.812 GB, free: 0.7656 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 8.315e-05/0.004601, allocations: 22.61 kB / 0.8121 GB, free: 0.7344 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.208e-05/0.004643, allocations: 16.84 kB / 0.8121 GB, free: 0.7148 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001652/0.004808, allocations: 4 kB / 0.8121 GB, free: 0.7109 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.901e-05/0.004857, allocations: 36.92 kB / 0.8121 GB, free: 0.668 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.004858, allocations: 0 / 0.8121 GB, free: 0.668 MB / 0.7605 GB Notification: Performance of matching and sorting (n=2): time 0.0002045/0.005063, allocations: 45.69 kB / 0.8122 GB, free: 0.6172 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.005123, allocations: 51.41 kB / 0.8122 GB, free: 0.5547 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.931e-05/0.005202, allocations: 89.86 kB / 0.8123 GB, free: 468 kB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.005229, allocations: 25.7 kB / 0.8123 GB, free: 436 kB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 6.202e-05/0.005291, allocations: 84.86 kB / 0.8124 GB, free: 348 kB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.005313, allocations: 4.484 kB / 0.8124 GB, free: 344 kB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.005364, allocations: 13.72 kB / 0.8124 GB, free: 324 kB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002287/0.005593, allocations: 316.4 kB / 0.8127 GB, free: 0 / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.196e-05/0.005635, allocations: 4.109 kB / 0.8127 GB, free: 15.99 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.812e-05/0.005653, allocations: 11.92 kB / 0.8127 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.713e-05/0.00571, allocations: 17.34 kB / 0.8128 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.005712, allocations: 0 / 0.8128 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001046/0.005817, allocations: 38.95 kB / 0.8128 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.005834, allocations: 4 kB / 0.8128 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.005839, allocations: 0 / 0.8128 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.005864, allocations: 5.141 kB / 0.8128 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.219e-05/0.005927, allocations: 4 kB / 0.8128 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.005932, allocations: 0 / 0.8128 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.443e-05/0.005956, allocations: 5.094 kB / 0.8128 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.005965, allocations: 4 kB / 0.8128 GB, free: 15.9 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 0.0001106/0.006075, allocations: 110.3 kB / 0.8129 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.006088, allocations: 0 / 0.8129 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/0.00621, allocations: 45.66 kB / 0.813 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.006212, allocations: 0.8438 kB / 0.813 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.006216, allocations: 0 / 0.813 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.006219, allocations: 4 kB / 0.813 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.006354, allocations: 107 kB / 0.8131 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.006358, allocations: 4 kB / 0.8131 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.956e-05/0.006398, allocations: 7.984 kB / 0.8131 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.006401, allocations: 0 / 0.8131 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.583e-06/0.006407, allocations: 0.8125 kB / 0.8131 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.006409, allocations: 0 / 0.8131 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.00641, allocations: 0 / 0.8131 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.006549, allocations: 75.28 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-06/0.006555, allocations: 0 / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.00657, allocations: 4 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.74e-05/0.006587, allocations: 0 / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.66e-05/0.006624, allocations: 0 / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.006627, allocations: 2.062 kB / 0.8132 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001724/0.006799, allocations: 75.28 kB / 0.8132 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.1e-07/0.006799, allocations: 0 / 0.8132 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003421/0.007141, allocations: 4 kB / 0.8132 GB, free: 15.42 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.0002072/0.007349, allocations: 111.6 kB / 0.8133 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 9.933e-05/0.007448, allocations: 16.47 kB / 0.8134 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.007449, allocations: 1.344 kB / 0.8134 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.295e-05/0.007472, allocations: 4 kB / 0.8134 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.007686, allocations: 0 / 0.8134 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002993/0.007985, allocations: 88.38 kB / 0.8134 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.442e-05/0.008059, allocations: 55.36 kB / 0.8135 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.825e-05/0.008078, allocations: 4.656 kB / 0.8135 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.008112, allocations: 12.98 kB / 0.8135 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of SimCode: time 4.31e-07/0.008112, allocations: 0 / 0.8135 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of Templates: time 0.003548/0.01166, allocations: 346.2 kB / 0.8138 GB, free: 14.75 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.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: 7.606401843950152]