Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0009233/0.0009233, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008052/0.0008052, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8606/0.8606, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.608/1.608, allocations: 359 MB / 0.6044 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 0.9518 GB, free: 2.945 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.751e-05/1.889e-05, allocations: 2.281 kB / 0.9518 GB, free: 2.941 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0009531/0.000972, allocations: 0.5917 MB / 0.9524 GB, free: 2.344 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.000191/0.001163, allocations: 51.73 kB / 0.9524 GB, free: 2.293 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.242e-05/0.001175, allocations: 0 / 0.9524 GB, free: 2.293 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.001188, allocations: 0 / 0.9524 GB, free: 2.293 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.391e-06/0.001193, allocations: 0 / 0.9524 GB, free: 2.293 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.001392, allocations: 15.98 kB / 0.9524 GB, free: 2.277 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 4.275e-05/0.001435, allocations: 0 / 0.9524 GB, free: 2.277 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.867e-05/0.001474, allocations: 7.984 kB / 0.9524 GB, free: 2.27 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 3.414e-05/0.001508, allocations: 3.938 kB / 0.9524 GB, free: 2.266 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 2.026e-05/0.001528, allocations: 0 / 0.9524 GB, free: 2.266 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.001541, allocations: 0 / 0.9524 GB, free: 2.266 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 7.256e-05/0.001613, allocations: 15.98 kB / 0.9524 GB, free: 2.25 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.033e-05/0.001624, allocations: 0 / 0.9524 GB, free: 2.25 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.656e-05/0.00164, allocations: 3.984 kB / 0.9524 GB, free: 2.246 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 8.095e-05/0.001721, allocations: 8 kB / 0.9525 GB, free: 2.238 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.001723, allocations: 0 / 0.9525 GB, free: 2.238 MB / 0.9011 GB Notification: Performance of FrontEnd: time 4.61e-07/0.001723, allocations: 4 kB / 0.9525 GB, free: 2.234 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.001727, allocations: 3.938 kB / 0.9525 GB, free: 2.23 MB / 0.9011 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.0002112/0.001938, allocations: 246.3 kB / 0.9527 GB, free: 1.957 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.001969, allocations: 8.031 kB / 0.9527 GB, free: 1.949 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.001996, allocations: 0.9375 kB / 0.9527 GB, free: 1.949 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.307e-05/0.002049, allocations: 109.8 kB / 0.9528 GB, free: 1.816 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.00206, allocations: 384 / 0.9528 GB, free: 1.816 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.002068, allocations: 384 / 0.9528 GB, free: 1.816 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.381e-05/0.002152, allocations: 34.25 kB / 0.9528 GB, free: 1.777 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.002159, allocations: 192 / 0.9528 GB, free: 1.777 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.002169, allocations: 8.375 kB / 0.9529 GB, free: 1.77 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.002173, allocations: 384 / 0.9529 GB, free: 1.77 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.102e-05/0.002204, allocations: 7.938 kB / 0.9529 GB, free: 1.762 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.406e-05/0.002298, allocations: 101.3 kB / 0.953 GB, free: 1.633 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 4.997e-05/0.002348, allocations: 30.5 kB / 0.953 GB, free: 1.594 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.303e-05/0.002361, allocations: 4.859 kB / 0.953 GB, free: 1.586 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001257/0.002486, allocations: 12 kB / 0.953 GB, free: 1.574 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.002504, allocations: 34.56 kB / 0.953 GB, free: 1.531 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.002505, allocations: 0 / 0.953 GB, free: 1.531 MB / 0.9011 GB Notification: Performance of matching and sorting (n=2): time 0.000117/0.002622, allocations: 45.72 kB / 0.9531 GB, free: 1.48 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.002648, allocations: 51.41 kB / 0.9531 GB, free: 1.418 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.747e-05/0.002675, allocations: 93.86 kB / 0.9532 GB, free: 1.316 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 7.995e-06/0.002683, allocations: 25.7 kB / 0.9532 GB, free: 1.285 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 1.609e-05/0.0027, allocations: 80.14 kB / 0.9533 GB, free: 1.203 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.002715, allocations: 4 kB / 0.9533 GB, free: 1.199 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.943e-05/0.002734, allocations: 13.7 kB / 0.9533 GB, free: 1.18 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 7.102e-05/0.002805, allocations: 322.8 kB / 0.9536 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.547e-06/0.002814, allocations: 0 / 0.9536 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.552e-06/0.00282, allocations: 4 kB / 0.9536 GB, free: 0.8516 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.429e-05/0.002845, allocations: 12.95 kB / 0.9537 GB, free: 0.8359 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.002846, allocations: 0 / 0.9537 GB, free: 0.8359 MB / 0.9011 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.618e-05/0.002883, allocations: 45.62 kB / 0.9537 GB, free: 0.7852 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 9.998e-06/0.002893, allocations: 4 kB / 0.9537 GB, free: 0.7812 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.002898, allocations: 3.984 kB / 0.9537 GB, free: 0.7773 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.002907, allocations: 0 / 0.9537 GB, free: 0.7773 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.105e-05/0.002948, allocations: 4 kB / 0.9537 GB, free: 0.7734 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.002953, allocations: 0 / 0.9537 GB, free: 0.7734 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.138e-05/0.002964, allocations: 7.938 kB / 0.9537 GB, free: 0.7656 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-06/0.002967, allocations: 0 / 0.9537 GB, free: 0.7656 MB / 0.9011 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 4.664e-05/0.003014, allocations: 109.9 kB / 0.9538 GB, free: 0.6484 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.519e-06/0.003019, allocations: 7.938 kB / 0.9538 GB, free: 0.6406 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.163e-05/0.00308, allocations: 40.86 kB / 0.9539 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.003082, allocations: 0 / 0.9539 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.003085, allocations: 0 / 0.9539 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.003088, allocations: 7.938 kB / 0.9539 GB, free: 0.5859 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.88e-05/0.003137, allocations: 105.2 kB / 0.954 GB, free: 464 kB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.003137, allocations: 0 / 0.954 GB, free: 464 kB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.009e-05/0.003147, allocations: 7.938 kB / 0.954 GB, free: 456 kB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.003148, allocations: 0 / 0.954 GB, free: 456 kB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.003154, allocations: 4.031 kB / 0.954 GB, free: 452 kB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.003154, allocations: 0 / 0.954 GB, free: 452 kB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.003155, allocations: 0 / 0.954 GB, free: 452 kB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.623e-05/0.003201, allocations: 73 kB / 0.9541 GB, free: 360 kB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 2.906e-06/0.003204, allocations: 0 / 0.9541 GB, free: 360 kB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.497e-06/0.003214, allocations: 4 kB / 0.9541 GB, free: 356 kB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.479e-06/0.003218, allocations: 4 kB / 0.9541 GB, free: 352 kB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.446e-05/0.003242, allocations: 3.984 kB / 0.9541 GB, free: 348 kB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-06/0.003244, allocations: 0 / 0.9541 GB, free: 348 kB / 0.9011 GB Notification: Performance of sorting global known variables: time 2.158e-05/0.003265, allocations: 75.28 kB / 0.9541 GB, free: 272 kB / 0.9011 GB Notification: Performance of sort global known variables: time 5e-08/0.003265, allocations: 0 / 0.9541 GB, free: 272 kB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0001284/0.003394, allocations: 8.031 kB / 0.9542 GB, free: 264 kB / 0.9011 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.0001075/0.003501, allocations: 107.1 kB / 0.9543 GB, free: 144 kB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 5.857e-05/0.00356, allocations: 19.92 kB / 0.9543 GB, free: 124 kB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.003561, allocations: 0 / 0.9543 GB, free: 124 kB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 5.43e-06/0.003567, allocations: 4 kB / 0.9543 GB, free: 120 kB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.947e-05/0.003656, allocations: 2.344 kB / 0.9543 GB, free: 120 kB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001809/0.003837, allocations: 106.6 kB / 0.9544 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.322e-05/0.00387, allocations: 63.47 kB / 0.9544 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.366e-05/0.003884, allocations: 8.5 kB / 0.9545 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of SimCode: time 3.71e-07/0.003884, allocations: 4 kB / 0.9545 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of Templates: time 0.001224/0.005109, allocations: 468.2 kB / 0.9549 GB, free: 15.43 MB / 0.9167 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 6.292771893553436]