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.001351/0.001351, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 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.001618/0.001618, allocations: 216.7 kB / 23.01 MB, free: 4.566 MB / 14.72 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.773/2.773, allocations: 476.7 MB / 0.7714 GB, free: 4.285 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.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003322/0.003322, allocations: 65.25 kB / 1.119 GB, free: 40.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4366/0.44, allocations: 170 MB / 1.285 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001897/0.4419, allocations: 0.588 MB / 1.285 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00032/0.4422, allocations: 55.73 kB / 1.285 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.717e-05/0.4422, allocations: 0 / 1.285 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.274e-05/0.4422, allocations: 0 / 1.285 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.214e-06/0.4422, allocations: 0 / 1.285 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.4425, allocations: 11.92 kB / 1.285 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.127e-05/0.4425, allocations: 15.98 kB / 1.285 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.14e-05/0.4426, allocations: 0 / 1.285 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.372e-05/0.4426, allocations: 0 / 1.285 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.815e-05/0.4426, allocations: 3.984 kB / 1.285 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.278e-06/0.4426, allocations: 4 kB / 1.285 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.181e-05/0.4427, allocations: 8 kB / 1.285 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.526e-06/0.4427, allocations: 0 / 1.285 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.329e-05/0.4427, allocations: 3.938 kB / 1.285 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.4428, allocations: 19.97 kB / 1.285 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4429, allocations: 0 / 1.285 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.355e-06/0.4429, allocations: 4 kB / 1.285 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.4429, allocations: 0 / 1.285 GB, free: 10.5 MB / 0.9825 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.0003318/0.4432, allocations: 242.4 kB / 1.286 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.4432, allocations: 8.031 kB / 1.286 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.543e-05/0.4433, allocations: 0.9375 kB / 1.286 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.353e-05/0.4434, allocations: 106.5 kB / 1.286 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.4434, allocations: 8.375 kB / 1.286 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.997e-06/0.4434, allocations: 384 / 1.286 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.4435, allocations: 30.27 kB / 1.286 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.4435, allocations: 12.12 kB / 1.286 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.4435, allocations: 7.922 kB / 1.286 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.4435, allocations: 0 / 1.286 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.696e-05/0.4436, allocations: 4 kB / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/0.4437, allocations: 116.8 kB / 1.286 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.005e-05/0.4438, allocations: 22.59 kB / 1.286 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.045e-05/0.4438, allocations: 12.92 kB / 1.286 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001481/0.444, allocations: 8 kB / 1.286 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.444, allocations: 30.69 kB / 1.286 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.444, allocations: 0 / 1.286 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001639/0.4442, allocations: 49.56 kB / 1.286 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.4442, allocations: 55.41 kB / 1.286 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.267e-05/0.4443, allocations: 89.86 kB / 1.286 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.4443, allocations: 29.64 kB / 1.286 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.4443, allocations: 80.14 kB / 1.286 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.983e-05/0.4443, allocations: 8.078 kB / 1.286 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.322e-05/0.4444, allocations: 21.72 kB / 1.286 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.4445, allocations: 314.8 kB / 1.287 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.074e-05/0.4445, allocations: 0 / 1.287 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.038e-05/0.4445, allocations: 4 kB / 1.287 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.508e-05/0.4446, allocations: 16.8 kB / 1.287 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.4446, allocations: 0 / 1.287 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.243e-05/0.4446, allocations: 41.75 kB / 1.287 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.4447, allocations: 8 kB / 1.287 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.4447, allocations: 0 / 1.287 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.4447, allocations: 3.938 kB / 1.287 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.365e-05/0.4447, allocations: 4 kB / 1.287 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.4447, allocations: 0 / 1.287 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.349e-05/0.4448, allocations: 0 / 1.287 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.4448, allocations: 0 / 1.287 GB, free: 9 MB / 0.9825 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 7.733e-05/0.4448, allocations: 109.8 kB / 1.287 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.106e-05/0.4449, allocations: 8.031 kB / 1.287 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.936e-05/0.445, allocations: 48.72 kB / 1.287 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.445, allocations: 4 kB / 1.287 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.445, allocations: 0 / 1.287 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.445, allocations: 0 / 1.287 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.4451, allocations: 116.8 kB / 1.287 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4451, allocations: 0 / 1.287 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.233e-05/0.4451, allocations: 7.938 kB / 1.287 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.4451, allocations: 3.984 kB / 1.287 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.4451, allocations: 3.938 kB / 1.287 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.4451, allocations: 8.031 kB / 1.287 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4451, allocations: 0 / 1.287 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.86e-05/0.4452, allocations: 65.06 kB / 1.287 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.687e-06/0.4452, allocations: 7.953 kB / 1.287 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.4452, allocations: 3.938 kB / 1.287 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.34e-05/0.4452, allocations: 4 kB / 1.287 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.4453, allocations: 7.984 kB / 1.287 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-06/0.4453, allocations: 4.031 kB / 1.287 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.879e-05/0.4453, allocations: 79.22 kB / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.4453, allocations: 0 / 1.287 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002057/0.4455, allocations: 4 kB / 1.287 GB, free: 8.449 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,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.00019/0.4457, allocations: 103.2 kB / 1.287 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 8.07e-05/0.4458, allocations: 7.984 kB / 1.287 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4458, allocations: 0 / 1.287 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.613e-05/0.4458, allocations: 16 kB / 1.287 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.446, allocations: 4 kB / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002362/0.4462, allocations: 106.6 kB / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.4465, allocations: 0.6729 MB / 1.288 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.171e-05/0.4465, allocations: 15.44 kB / 1.288 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.4465, allocations: 0 / 1.288 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of Templates: time 0.002091/0.4486, allocations: 453.5 kB / 1.288 GB, free: 7.016 MB / 0.9825 GB " [Timeout remaining time 299] 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/jenkins1/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: 11.615144746989245]