Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.001451/0.001451, allocations: 110 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.001453/0.001453, allocations: 187.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.283/1.283, allocations: 225.6 MB / 251 MB, free: 12.99 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.787/2.787, allocations: 495.7 MB / 0.7831 GB, free: 33.63 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 67.89 kB / 1.137 GB, free: 33.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3071, allocations: 173.6 MB / 1.307 GB, free: 1.906 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001717/0.3088, allocations: 0.593 MB / 1.308 GB, free: 1.316 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002454/0.309, allocations: 48.27 kB / 1.308 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.449e-05/0.309, allocations: 0 / 1.308 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.096e-05/0.309, allocations: 0 / 1.308 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.049e-06/0.3091, allocations: 0 / 1.308 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002026/0.3093, allocations: 11.92 kB / 1.308 GB, free: 1.258 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.329e-05/0.3093, allocations: 11.98 kB / 1.308 GB, free: 1.246 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.594e-05/0.3093, allocations: 0 / 1.308 GB, free: 1.246 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.087e-05/0.3094, allocations: 3.938 kB / 1.308 GB, free: 1.242 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.053e-05/0.3094, allocations: 7.938 kB / 1.308 GB, free: 1.234 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.005e-06/0.3094, allocations: 0 / 1.308 GB, free: 1.234 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.076e-05/0.3095, allocations: 15.98 kB / 1.308 GB, free: 1.219 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.135e-06/0.3095, allocations: 4 kB / 1.308 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.865e-05/0.3095, allocations: 0 / 1.308 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.523e-05/0.3096, allocations: 15.97 kB / 1.308 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.3096, allocations: 0 / 1.308 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3096, allocations: 0 / 1.308 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.3096, allocations: 4 kB / 1.308 GB, free: 1.195 MB / 0.9981 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.0002756/0.3099, allocations: 238.4 kB / 1.308 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.3099, allocations: 8.031 kB / 1.308 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.842e-05/0.3099, allocations: 0.9375 kB / 1.308 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.114e-05/0.31, allocations: 118.5 kB / 1.308 GB, free: 0.7812 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-06/0.31, allocations: 4.375 kB / 1.308 GB, free: 0.7773 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.31, allocations: 4.312 kB / 1.308 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.726e-05/0.3101, allocations: 30.27 kB / 1.308 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.3101, allocations: 192 / 1.308 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-06/0.3101, allocations: 3.938 kB / 1.308 GB, free: 0.7344 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.3101, allocations: 0 / 1.308 GB, free: 0.7344 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.865e-05/0.3101, allocations: 7.984 kB / 1.308 GB, free: 0.7266 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.3103, allocations: 124.8 kB / 1.308 GB, free: 0.5625 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.393e-05/0.3103, allocations: 22.58 kB / 1.308 GB, free: 0.5312 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.3104, allocations: 12.8 kB / 1.308 GB, free: 0.5156 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001138/0.3105, allocations: 8.047 kB / 1.308 GB, free: 0.5078 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.3105, allocations: 30.56 kB / 1.308 GB, free: 480 kB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.3105, allocations: 0 / 1.308 GB, free: 480 kB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001302/0.3106, allocations: 45.64 kB / 1.308 GB, free: 428 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.3107, allocations: 51.53 kB / 1.308 GB, free: 364 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.555e-05/0.3107, allocations: 97.84 kB / 1.308 GB, free: 256 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.3107, allocations: 25.7 kB / 1.308 GB, free: 224 kB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.047e-05/0.3108, allocations: 80.14 kB / 1.309 GB, free: 140 kB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.3108, allocations: 0 / 1.309 GB, free: 140 kB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.949e-05/0.3108, allocations: 17.72 kB / 1.309 GB, free: 116 kB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.311, allocations: 310.8 kB / 1.309 GB, free: 15.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.329e-05/0.311, allocations: 7.938 kB / 1.309 GB, free: 15.79 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.156e-06/0.311, allocations: 4 kB / 1.309 GB, free: 15.79 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.906e-05/0.311, allocations: 20.91 kB / 1.309 GB, free: 15.77 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.311, allocations: 0 / 1.309 GB, free: 15.77 MB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.899e-05/0.3111, allocations: 37.66 kB / 1.309 GB, free: 15.72 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.3111, allocations: 9.719 kB / 1.309 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.3111, allocations: 0 / 1.309 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.3111, allocations: 7.875 kB / 1.309 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.931e-05/0.3112, allocations: 7.984 kB / 1.309 GB, free: 15.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.828e-06/0.3112, allocations: 0 / 1.309 GB, free: 15.7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.226e-05/0.3112, allocations: 32 / 1.309 GB, free: 15.7 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-06/0.3112, allocations: 4 kB / 1.309 GB, free: 15.7 MB / 1.014 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.315e-05/0.3112, allocations: 122.5 kB / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-06/0.3113, allocations: 0 / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.222e-05/0.3113, allocations: 52.72 kB / 1.309 GB, free: 15.51 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3113, allocations: 0 / 1.309 GB, free: 15.51 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3114, allocations: 0 / 1.309 GB, free: 15.51 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-06/0.3114, allocations: 0 / 1.309 GB, free: 15.51 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.509e-05/0.3114, allocations: 116.8 kB / 1.309 GB, free: 15.35 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3114, allocations: 4.031 kB / 1.309 GB, free: 15.35 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.166e-05/0.3115, allocations: 3.984 kB / 1.309 GB, free: 15.34 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.3115, allocations: 4 kB / 1.309 GB, free: 15.34 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.3115, allocations: 3.938 kB / 1.309 GB, free: 15.34 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.3115, allocations: 0 / 1.309 GB, free: 15.34 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3115, allocations: 0 / 1.309 GB, free: 15.34 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.402e-05/0.3116, allocations: 65.06 kB / 1.309 GB, free: 15.25 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 3.376e-06/0.3116, allocations: 0 / 1.309 GB, free: 15.25 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.3116, allocations: 11.97 kB / 1.309 GB, free: 15.24 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.217e-05/0.3116, allocations: 4 kB / 1.309 GB, free: 15.24 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.083e-05/0.3116, allocations: 0 / 1.309 GB, free: 15.24 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.3116, allocations: 0 / 1.309 GB, free: 15.24 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.144e-05/0.3116, allocations: 75.28 kB / 1.309 GB, free: 15.16 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.3116, allocations: 0 / 1.309 GB, free: 15.16 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001902/0.3118, allocations: 7.938 kB / 1.309 GB, free: 15.16 MB / 1.014 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.0001347/0.312, allocations: 103.2 kB / 1.31 GB, free: 15.04 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 6.533e-05/0.312, allocations: 11.94 kB / 1.31 GB, free: 15.03 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.312, allocations: 4 kB / 1.31 GB, free: 15.03 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 1.401e-05/0.3121, allocations: 4 kB / 1.31 GB, free: 15.02 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.3122, allocations: 4 kB / 1.31 GB, free: 15.02 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001731/0.3124, allocations: 88.84 kB / 1.31 GB, free: 14.91 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.3127, allocations: 0.669 MB / 1.31 GB, free: 14.21 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 1.465e-05/0.3127, allocations: 8 kB / 1.31 GB, free: 14.2 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.652e-05/0.3127, allocations: 11.55 kB / 1.31 GB, free: 14.19 MB / 1.014 GB Notification: Performance of SimCode: time 2.91e-07/0.3127, allocations: 4 kB / 1.31 GB, free: 14.19 MB / 1.014 GB Notification: Performance of Templates: time 0.002285/0.315, allocations: 324.6 kB / 1.311 GB, free: 13.87 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.702706807292998]