Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001876/0.001876, allocations: 103 kB / 16.45 MB, free: 6.449 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.001509/0.001509, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.454/1.454, allocations: 230.5 MB / 252.8 MB, free: 9.148 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.172/3.172, allocations: 0.49 GB / 0.7916 GB, free: 33.16 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002104/0.002104, allocations: 70.97 kB / 1.149 GB, free: 26.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.3636, allocations: 176.1 MB / 1.321 GB, free: 2.793 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001839/0.3655, allocations: 0.5942 MB / 1.322 GB, free: 2.199 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003025/0.3658, allocations: 47.8 kB / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.383e-05/0.3658, allocations: 0 / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.3658, allocations: 0 / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.243e-06/0.3658, allocations: 0 / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.3661, allocations: 15.98 kB / 1.322 GB, free: 2.137 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 4.457e-05/0.3661, allocations: 0 / 1.322 GB, free: 2.137 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.466e-05/0.3662, allocations: 4 kB / 1.322 GB, free: 2.133 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.443e-05/0.3662, allocations: 3.984 kB / 1.322 GB, free: 2.129 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 1.941e-05/0.3662, allocations: 0 / 1.322 GB, free: 2.129 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.636e-06/0.3662, allocations: 0 / 1.322 GB, free: 2.129 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.283e-05/0.3663, allocations: 19.98 kB / 1.322 GB, free: 2.109 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.886e-06/0.3663, allocations: 3.938 kB / 1.322 GB, free: 2.105 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.3663, allocations: 3.938 kB / 1.322 GB, free: 2.102 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 7.992e-05/0.3664, allocations: 11.98 kB / 1.322 GB, free: 2.09 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3664, allocations: 0 / 1.322 GB, free: 2.09 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3664, allocations: 0 / 1.322 GB, free: 2.09 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.3664, allocations: 0 / 1.322 GB, free: 2.09 MB / 1.014 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.0003329/0.3667, allocations: 315.5 kB / 1.322 GB, free: 1.73 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.3668, allocations: 15.98 kB / 1.322 GB, free: 1.715 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.904e-05/0.3668, allocations: 0.9375 kB / 1.322 GB, free: 1.715 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.3669, allocations: 168.4 kB / 1.322 GB, free: 1.512 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.3669, allocations: 4.375 kB / 1.322 GB, free: 1.508 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.3669, allocations: 4.312 kB / 1.322 GB, free: 1.504 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.367, allocations: 30.27 kB / 1.322 GB, free: 1.469 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3671, allocations: 192 / 1.322 GB, free: 1.469 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.3671, allocations: 3.938 kB / 1.322 GB, free: 1.465 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3671, allocations: 0 / 1.322 GB, free: 1.465 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.595e-05/0.3671, allocations: 7.938 kB / 1.323 GB, free: 1.457 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001665/0.3673, allocations: 153.7 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.832e-05/0.3673, allocations: 22.61 kB / 1.323 GB, free: 1.227 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.923e-05/0.3673, allocations: 8.859 kB / 1.323 GB, free: 1.215 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001659/0.3675, allocations: 85.16 kB / 1.323 GB, free: 1.113 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.3675, allocations: 30.56 kB / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.3675, allocations: 0 / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.000142/0.3677, allocations: 49.52 kB / 1.323 GB, free: 1.02 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.3677, allocations: 63.52 kB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.97e-05/0.3678, allocations: 93.81 kB / 1.323 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.3678, allocations: 25.7 kB / 1.323 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.113e-05/0.3678, allocations: 80.14 kB / 1.323 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.3678, allocations: 0 / 1.323 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.3679, allocations: 14.12 kB / 1.323 GB, free: 0.7109 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.368, allocations: 314.8 kB / 1.323 GB, free: 404 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.383e-05/0.368, allocations: 4 kB / 1.323 GB, free: 400 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.314e-06/0.368, allocations: 4 kB / 1.323 GB, free: 396 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.04e-05/0.3681, allocations: 16.84 kB / 1.323 GB, free: 376 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3681, allocations: 0 / 1.323 GB, free: 376 kB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.063e-05/0.3681, allocations: 41.64 kB / 1.323 GB, free: 328 kB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.3682, allocations: 8 kB / 1.323 GB, free: 320 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3682, allocations: 0 / 1.323 GB, free: 320 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3682, allocations: 3.938 kB / 1.323 GB, free: 316 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.937e-05/0.3682, allocations: 7.984 kB / 1.323 GB, free: 308 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3682, allocations: 0 / 1.323 GB, free: 308 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.349e-05/0.3682, allocations: 4.094 kB / 1.323 GB, free: 304 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-06/0.3683, allocations: 0 / 1.323 GB, free: 304 kB / 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 8.18e-05/0.3683, allocations: 116.7 kB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.033e-06/0.3683, allocations: 0 / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.3684, allocations: 52.67 kB / 1.324 GB, free: 120 kB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3684, allocations: 0 / 1.324 GB, free: 120 kB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3685, allocations: 0 / 1.324 GB, free: 120 kB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.3685, allocations: 0 / 1.324 GB, free: 120 kB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.3686, allocations: 149.7 kB / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3686, allocations: 7.984 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.081e-05/0.3686, allocations: 0 / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.3686, allocations: 0 / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.3686, allocations: 11.88 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.3686, allocations: 0 / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3686, allocations: 0 / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.312e-05/0.3687, allocations: 65.08 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.154e-05/0.3687, allocations: 81.14 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.3688, allocations: 3.938 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.265e-05/0.3688, allocations: 7.938 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.3688, allocations: 0 / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.3688, allocations: 0 / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.723e-05/0.3688, allocations: 83.22 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3688, allocations: 0 / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000201/0.369, allocations: 11.94 kB / 1.324 GB, free: 15.62 MB / 1.029 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.0001639/0.3692, allocations: 111.2 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 8.13e-05/0.3693, allocations: 4 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.3693, allocations: 0 / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.613e-05/0.3693, allocations: 4 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.3695, allocations: 7.984 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002135/0.3697, allocations: 84.92 kB / 1.324 GB, free: 15.37 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.37, allocations: 0.6766 MB / 1.325 GB, free: 14.67 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.549e-05/0.37, allocations: 4 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.798e-05/0.37, allocations: 19.55 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.37, allocations: 0 / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of Templates: time 0.00265/0.3727, allocations: 312.6 kB / 1.325 GB, free: 14.34 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.628533020149916]