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.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.00159/0.00159, allocations: 102.1 kB / 19.7 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.001752/0.001752, allocations: 215.7 kB / 23.01 MB, free: 5.125 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.438/1.438, allocations: 230.6 MB / 256.8 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.208/3.208, allocations: 0.505 GB / 0.8108 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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: 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.002214/0.002214, allocations: 71.12 kB / 1.178 GB, free: 16.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3253, allocations: 180.2 MB / 1.354 GB, free: 7.926 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001763/0.327, allocations: 0.5953 MB / 1.355 GB, free: 7.332 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002647/0.3273, allocations: 56.19 kB / 1.355 GB, free: 7.277 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.907e-05/0.3273, allocations: 3.938 kB / 1.355 GB, free: 7.273 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.3273, allocations: 0 / 1.355 GB, free: 7.273 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.3273, allocations: 0 / 1.355 GB, free: 7.273 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002107/0.3275, allocations: 12 kB / 1.355 GB, free: 7.262 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 4.472e-05/0.3276, allocations: 11.97 kB / 1.355 GB, free: 7.25 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.356e-05/0.3276, allocations: 0 / 1.355 GB, free: 7.25 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.38e-05/0.3276, allocations: 4 kB / 1.355 GB, free: 7.246 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 1.883e-05/0.3277, allocations: 0 / 1.355 GB, free: 7.246 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.135e-06/0.3277, allocations: 0 / 1.355 GB, free: 7.246 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.263e-05/0.3277, allocations: 15.98 kB / 1.355 GB, free: 7.23 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.604e-06/0.3278, allocations: 0 / 1.355 GB, free: 7.23 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.995e-05/0.3278, allocations: 4 kB / 1.355 GB, free: 7.227 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 7.642e-05/0.3278, allocations: 7.922 kB / 1.355 GB, free: 7.219 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3279, allocations: 7.938 kB / 1.355 GB, free: 7.211 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.233e-06/0.3279, allocations: 4 kB / 1.355 GB, free: 7.207 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.31e-05/0.3279, allocations: 0 / 1.355 GB, free: 7.207 MB / 1.045 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.0002943/0.3282, allocations: 246.4 kB / 1.355 GB, free: 6.934 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.3282, allocations: 8.031 kB / 1.355 GB, free: 6.926 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.3282, allocations: 4.875 kB / 1.355 GB, free: 6.922 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.135e-05/0.3283, allocations: 106.5 kB / 1.355 GB, free: 6.793 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.3283, allocations: 384 / 1.355 GB, free: 6.793 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-06/0.3283, allocations: 384 / 1.355 GB, free: 6.793 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.3284, allocations: 42.25 kB / 1.355 GB, free: 6.746 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3284, allocations: 192 / 1.355 GB, free: 6.746 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.3285, allocations: 3.938 kB / 1.355 GB, free: 6.742 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.3285, allocations: 0 / 1.355 GB, free: 6.742 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.858e-05/0.3285, allocations: 4 kB / 1.355 GB, free: 6.738 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.3286, allocations: 128.6 kB / 1.355 GB, free: 6.57 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.136e-05/0.3287, allocations: 22.61 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.721e-05/0.3287, allocations: 4.859 kB / 1.355 GB, free: 6.531 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001142/0.3288, allocations: 8.062 kB / 1.355 GB, free: 6.523 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.3289, allocations: 34.55 kB / 1.355 GB, free: 6.48 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.3289, allocations: 4 kB / 1.355 GB, free: 6.477 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.000135/0.329, allocations: 45.58 kB / 1.355 GB, free: 6.426 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.329, allocations: 51.41 kB / 1.355 GB, free: 6.363 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.594e-05/0.3291, allocations: 89.86 kB / 1.356 GB, free: 6.266 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.3291, allocations: 29.7 kB / 1.356 GB, free: 6.23 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.778e-05/0.3291, allocations: 84.27 kB / 1.356 GB, free: 6.145 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.3292, allocations: 0 / 1.356 GB, free: 6.145 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.3293, allocations: 17.7 kB / 1.356 GB, free: 6.121 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3294, allocations: 314.8 kB / 1.356 GB, free: 5.805 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.225e-05/0.3294, allocations: 4 kB / 1.356 GB, free: 5.801 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.147e-06/0.3294, allocations: 4 kB / 1.356 GB, free: 5.797 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.787e-05/0.3295, allocations: 8.859 kB / 1.356 GB, free: 5.785 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3295, allocations: 4 kB / 1.356 GB, free: 5.781 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.475e-05/0.3295, allocations: 49.69 kB / 1.356 GB, free: 5.727 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.3295, allocations: 4 kB / 1.356 GB, free: 5.723 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.3295, allocations: 0 / 1.356 GB, free: 5.723 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.3295, allocations: 3.938 kB / 1.356 GB, free: 5.719 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.833e-05/0.3296, allocations: 4 kB / 1.356 GB, free: 5.715 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.3296, allocations: 0 / 1.356 GB, free: 5.715 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.455e-05/0.3296, allocations: 4 kB / 1.356 GB, free: 5.711 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-06/0.3296, allocations: 0 / 1.356 GB, free: 5.711 MB / 1.045 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 8.891e-05/0.3297, allocations: 121.8 kB / 1.356 GB, free: 5.582 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.702e-06/0.3297, allocations: 0 / 1.356 GB, free: 5.582 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.706e-05/0.3298, allocations: 48.75 kB / 1.356 GB, free: 5.527 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3298, allocations: 0 / 1.356 GB, free: 5.527 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.3298, allocations: 7.922 kB / 1.356 GB, free: 5.52 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3298, allocations: 0 / 1.356 GB, free: 5.52 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.3299, allocations: 120.8 kB / 1.356 GB, free: 5.359 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3299, allocations: 7.922 kB / 1.356 GB, free: 5.352 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.168e-05/0.3299, allocations: 4 kB / 1.356 GB, free: 5.348 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.3299, allocations: 0 / 1.356 GB, free: 5.348 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.3299, allocations: 7.969 kB / 1.356 GB, free: 5.34 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.33, allocations: 3.984 kB / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.33, allocations: 0 / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.552e-05/0.33, allocations: 57.14 kB / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-06/0.33, allocations: 4 kB / 1.356 GB, free: 5.258 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.33, allocations: 7.922 kB / 1.356 GB, free: 5.25 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.07e-05/0.3301, allocations: 0 / 1.356 GB, free: 5.25 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.3301, allocations: 32 / 1.356 GB, free: 5.25 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.3301, allocations: 4 kB / 1.356 GB, free: 5.246 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.771e-05/0.3301, allocations: 79.28 kB / 1.357 GB, free: 5.168 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3301, allocations: 0 / 1.357 GB, free: 5.168 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001992/0.3303, allocations: 11.88 kB / 1.357 GB, free: 5.156 MB / 1.045 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.0001455/0.3305, allocations: 107.2 kB / 1.357 GB, free: 5.039 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 6.593e-05/0.3305, allocations: 4 kB / 1.357 GB, free: 5.035 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.3305, allocations: 0 / 1.357 GB, free: 5.035 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.906e-06/0.3305, allocations: 8.062 kB / 1.357 GB, free: 5.027 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.3307, allocations: 4 kB / 1.357 GB, free: 5.023 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002185/0.3309, allocations: 118.5 kB / 1.357 GB, free: 4.875 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.3312, allocations: 0.669 MB / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.622e-05/0.3312, allocations: 11.44 kB / 1.357 GB, free: 4.172 MB / 1.045 GB Notification: Performance of SimCode: time 3.21e-07/0.3312, allocations: 0 / 1.357 GB, free: 4.172 MB / 1.045 GB Notification: Performance of Templates: time 0.00181/0.333, allocations: 464.2 kB / 1.358 GB, free: 3.719 MB / 1.045 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/jenkins1/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: 10.850904144986998]