Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.00134/0.00134, allocations: 118.5 kB / 17.13 MB, free: 5.758 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.00133/0.00133, allocations: 194.1 kB / 20.08 MB, free: 2.848 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.508/1.508, allocations: 225.6 MB / 248.5 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.716/2.716, allocations: 443.5 MB / 0.7293 GB, free: 14.45 MB / 0.5763 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 67.89 kB / 1.057 GB, free: 1.824 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.326, allocations: 160.7 MB / 1.214 GB, free: 0.793 MB / 0.9513 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001829/0.3278, allocations: 0.5766 MB / 1.215 GB, free: 216 kB / 0.9513 GB Notification: Performance of NFInst.instExpressions: time 0.0002984/0.3281, allocations: 55.8 kB / 1.215 GB, free: 160 kB / 0.9513 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.036e-05/0.3281, allocations: 4 kB / 1.215 GB, free: 156 kB / 0.9513 GB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.3282, allocations: 0 / 1.215 GB, free: 156 kB / 0.9513 GB Notification: Performance of NFTyping.typeBindings: time 6.863e-06/0.3282, allocations: 4 kB / 1.215 GB, free: 152 kB / 0.9513 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.3284, allocations: 19.91 kB / 1.215 GB, free: 132 kB / 0.9513 GB Notification: Performance of NFFlatten.flatten: time 4.585e-05/0.3285, allocations: 0 / 1.215 GB, free: 132 kB / 0.9513 GB Notification: Performance of NFFlatten.resolveConnections: time 4.724e-05/0.3285, allocations: 0 / 1.215 GB, free: 132 kB / 0.9513 GB Notification: Performance of NFEvalConstants.evaluate: time 1.289e-05/0.3285, allocations: 4 kB / 1.215 GB, free: 128 kB / 0.9513 GB Notification: Performance of NFSimplifyModel.simplify: time 2.327e-05/0.3285, allocations: 4 kB / 1.215 GB, free: 124 kB / 0.9513 GB Notification: Performance of NFPackage.collectConstants: time 1.007e-05/0.3286, allocations: 0 / 1.215 GB, free: 124 kB / 0.9513 GB Notification: Performance of NFFlatten.collectFunctions: time 7.477e-05/0.3286, allocations: 11.92 kB / 1.215 GB, free: 112 kB / 0.9513 GB Notification: Performance of NFScalarize.scalarize: time 8.567e-06/0.3286, allocations: 0 / 1.215 GB, free: 112 kB / 0.9513 GB Notification: Performance of NFVerifyModel.verify: time 2.736e-05/0.3287, allocations: 15.98 kB / 1.215 GB, free: 96 kB / 0.9513 GB Notification: Performance of NFConvertDAE.convert: time 9.022e-05/0.3288, allocations: 7.984 kB / 1.215 GB, free: 88 kB / 0.9513 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3288, allocations: 0 / 1.215 GB, free: 88 kB / 0.9513 GB Notification: Performance of FrontEnd: time 2.415e-06/0.3288, allocations: 0 / 1.215 GB, free: 88 kB / 0.9513 GB Notification: Performance of Transformations before backend: time 9.678e-06/0.3288, allocations: 0 / 1.215 GB, free: 88 kB / 0.9513 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.0004048/0.3292, allocations: 317.9 kB / 1.215 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.3292, allocations: 8.031 kB / 1.215 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.3292, allocations: 4.891 kB / 1.215 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.3294, allocations: 168.4 kB / 1.215 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.3294, allocations: 4.375 kB / 1.215 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.3294, allocations: 384 / 1.215 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.3295, allocations: 34.2 kB / 1.215 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.3295, allocations: 192 / 1.215 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.3295, allocations: 3.938 kB / 1.215 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3295, allocations: 3.938 kB / 1.215 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.14e-05/0.3296, allocations: 7.984 kB / 1.215 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001592/0.3297, allocations: 145.7 kB / 1.215 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.952e-05/0.3298, allocations: 30.67 kB / 1.215 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.919e-05/0.3298, allocations: 8.797 kB / 1.215 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001688/0.33, allocations: 85.09 kB / 1.216 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.33, allocations: 30.56 kB / 1.216 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.33, allocations: 3.938 kB / 1.216 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001513/0.3302, allocations: 45.62 kB / 1.216 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.3302, allocations: 51.41 kB / 1.216 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.932e-05/0.3303, allocations: 97.98 kB / 1.216 GB, free: 14.85 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.3303, allocations: 25.7 kB / 1.216 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.175e-05/0.3303, allocations: 80.14 kB / 1.216 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.3304, allocations: 0 / 1.216 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.3304, allocations: 17.72 kB / 1.216 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.3306, allocations: 310.8 kB / 1.216 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.254e-05/0.3306, allocations: 0 / 1.216 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.219e-05/0.3306, allocations: 11.98 kB / 1.216 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.829e-05/0.3306, allocations: 20.86 kB / 1.216 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3306, allocations: 0 / 1.216 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.383e-05/0.3307, allocations: 33.7 kB / 1.216 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3307, allocations: 4 kB / 1.216 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3307, allocations: 4 kB / 1.216 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3308, allocations: 3.938 kB / 1.216 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.691e-05/0.3308, allocations: 3.984 kB / 1.216 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.3308, allocations: 4 kB / 1.216 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.3308, allocations: 3.953 kB / 1.216 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.3309, allocations: 4.031 kB / 1.216 GB, free: 14.3 MB / 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 (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.0001154/0.331, allocations: 109.8 kB / 1.216 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.331, allocations: 0 / 1.216 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.3311, allocations: 52.69 kB / 1.216 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.3311, allocations: 3.984 kB / 1.216 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.3311, allocations: 4 kB / 1.216 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3311, allocations: 0 / 1.216 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.3313, allocations: 145.7 kB / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.3313, allocations: 4.031 kB / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.373e-05/0.3313, allocations: 7.938 kB / 1.217 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3313, allocations: 0 / 1.217 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.3313, allocations: 3.938 kB / 1.217 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3313, allocations: 0 / 1.217 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3313, allocations: 0 / 1.217 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001036/0.3314, allocations: 69.06 kB / 1.217 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.243e-05/0.3315, allocations: 77.11 kB / 1.217 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.3315, allocations: 7.969 kB / 1.217 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.399e-05/0.3315, allocations: 4 kB / 1.217 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.261e-05/0.3315, allocations: 4 kB / 1.217 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.3315, allocations: 3.938 kB / 1.217 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.673e-05/0.3316, allocations: 79.27 kB / 1.217 GB, free: 13.63 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6e-08/0.3316, allocations: 0 / 1.217 GB, free: 13.63 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002191/0.3318, allocations: 4 kB / 1.217 GB, free: 13.62 MB / 0.9669 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.0002548/0.3321, allocations: 103.2 kB / 1.217 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001076/0.3322, allocations: 12 kB / 1.217 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3322, allocations: 0 / 1.217 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.918e-05/0.3322, allocations: 15.92 kB / 1.217 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.3323, allocations: 0 / 1.217 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002698/0.3326, allocations: 110.6 kB / 1.217 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.333, allocations: 0.6729 MB / 1.218 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.333, allocations: 15.42 kB / 1.218 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of SimCode: time 3.71e-07/0.333, allocations: 0 / 1.218 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of Templates: time 0.002337/0.3354, allocations: 460.5 kB / 1.218 GB, free: 12.18 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 10.62270851409994]