Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.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.001726/0.001726, allocations: 113.5 kB / 17.08 MB, free: 5.988 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.001893/0.001893, allocations: 193.2 kB / 20.03 MB, free: 3.059 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.453/1.453, allocations: 222.9 MB / 245.7 MB, free: 4.223 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.69/2.69, allocations: 437.1 MB / 0.7177 GB, free: 4.512 MB / 0.5606 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 68.03 kB / 1.028 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3193, allocations: 151.6 MB / 1.176 GB, free: 5.895 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002975/0.3224, allocations: 1.503 MB / 1.177 GB, free: 4.367 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0004166/0.3228, allocations: 124.4 kB / 1.177 GB, free: 4.242 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.961e-05/0.3229, allocations: 0 / 1.177 GB, free: 4.242 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.3229, allocations: 7.922 kB / 1.177 GB, free: 4.234 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.069e-05/0.323, allocations: 8 kB / 1.177 GB, free: 4.227 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.3232, allocations: 19.92 kB / 1.177 GB, free: 4.207 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.992e-05/0.3233, allocations: 31.91 kB / 1.177 GB, free: 4.176 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.3234, allocations: 11.98 kB / 1.178 GB, free: 4.164 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.652e-05/0.3235, allocations: 8 kB / 1.178 GB, free: 4.156 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.559e-05/0.3236, allocations: 19.92 kB / 1.178 GB, free: 4.137 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.3236, allocations: 0 / 1.178 GB, free: 4.137 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.852e-05/0.3236, allocations: 15.98 kB / 1.178 GB, free: 4.121 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.735e-05/0.3237, allocations: 11.88 kB / 1.178 GB, free: 4.109 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.439e-05/0.3237, allocations: 23.92 kB / 1.178 GB, free: 4.086 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.3238, allocations: 35.83 kB / 1.178 GB, free: 4.051 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3239, allocations: 0 / 1.178 GB, free: 4.051 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3239, allocations: 0 / 1.178 GB, free: 4.051 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.3239, allocations: 4 kB / 1.178 GB, free: 4.047 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005479/0.3244, allocations: 339.4 kB / 1.178 GB, free: 3.664 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.3245, allocations: 12.03 kB / 1.178 GB, free: 3.652 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.3245, allocations: 4.891 kB / 1.178 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.3247, allocations: 168.4 kB / 1.178 GB, free: 3.445 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.3247, allocations: 8.359 kB / 1.178 GB, free: 3.438 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.3247, allocations: 4.312 kB / 1.178 GB, free: 3.434 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.3249, allocations: 58.23 kB / 1.178 GB, free: 3.371 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.3249, allocations: 192 / 1.178 GB, free: 3.371 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.325, allocations: 3.938 kB / 1.178 GB, free: 3.367 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.325, allocations: 0 / 1.178 GB, free: 3.367 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.3252, allocations: 43.95 kB / 1.178 GB, free: 3.324 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004121/0.3256, allocations: 265 kB / 1.178 GB, free: 3.016 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.3259, allocations: 62.42 kB / 1.179 GB, free: 2.945 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.3261, allocations: 28.89 kB / 1.179 GB, free: 2.914 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.3262, allocations: 81.11 kB / 1.179 GB, free: 2.816 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.3262, allocations: 38.56 kB / 1.179 GB, free: 2.77 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3262, allocations: 0 / 1.179 GB, free: 2.77 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004348/0.3267, allocations: 97.52 kB / 1.179 GB, free: 2.668 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.3267, allocations: 51.41 kB / 1.179 GB, free: 2.605 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.812e-05/0.3268, allocations: 105.8 kB / 1.179 GB, free: 2.492 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.3269, allocations: 25.7 kB / 1.179 GB, free: 2.461 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.807e-05/0.3269, allocations: 88.14 kB / 1.179 GB, free: 2.371 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.3269, allocations: 3.953 kB / 1.179 GB, free: 2.367 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.086e-05/0.327, allocations: 17.7 kB / 1.179 GB, free: 2.344 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3271, allocations: 318.8 kB / 1.179 GB, free: 2.023 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.502e-05/0.3272, allocations: 15.98 kB / 1.179 GB, free: 2.008 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.615e-05/0.3273, allocations: 23.91 kB / 1.179 GB, free: 1.984 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000178/0.3275, allocations: 44.83 kB / 1.179 GB, free: 1.938 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.034e-06/0.3275, allocations: 7.922 kB / 1.179 GB, free: 1.93 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002258/0.3278, allocations: 77.59 kB / 1.18 GB, free: 1.848 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.3278, allocations: 4 kB / 1.18 GB, free: 1.844 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3278, allocations: 0 / 1.18 GB, free: 1.844 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.3278, allocations: 4 kB / 1.18 GB, free: 1.84 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.299e-05/0.3279, allocations: 7.984 kB / 1.18 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3279, allocations: 4 kB / 1.18 GB, free: 1.828 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.618e-05/0.328, allocations: 11.94 kB / 1.18 GB, free: 1.816 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.328, allocations: 7.938 kB / 1.18 GB, free: 1.809 MB / 0.92 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.952e-05/0.3281, allocations: 118.2 kB / 1.18 GB, free: 1.684 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.496e-05/0.3281, allocations: 4 kB / 1.18 GB, free: 1.68 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002771/0.3284, allocations: 81.12 kB / 1.18 GB, free: 1.594 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3284, allocations: 3.938 kB / 1.18 GB, free: 1.59 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3284, allocations: 4 kB / 1.18 GB, free: 1.586 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3285, allocations: 0 / 1.18 GB, free: 1.586 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.3287, allocations: 165.6 kB / 1.18 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3287, allocations: 0 / 1.18 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.876e-05/0.3287, allocations: 11.98 kB / 1.18 GB, free: 1.363 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3288, allocations: 0 / 1.18 GB, free: 1.363 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.3288, allocations: 4 kB / 1.18 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.3288, allocations: 0 / 1.18 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3288, allocations: 4 kB / 1.18 GB, free: 1.355 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/0.3291, allocations: 171.4 kB / 1.18 GB, free: 1.172 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.578e-05/0.3292, allocations: 85.06 kB / 1.18 GB, free: 1.07 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3292, allocations: 0 / 1.18 GB, free: 1.07 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.804e-05/0.3293, allocations: 7.984 kB / 1.18 GB, free: 1.062 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.3293, allocations: 4 kB / 1.18 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.3293, allocations: 8 kB / 1.18 GB, free: 1.051 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.728e-05/0.3294, allocations: 87.2 kB / 1.18 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3294, allocations: 4 kB / 1.18 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000232/0.3296, allocations: 4 kB / 1.18 GB, free: 0.957 MB / 0.92 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001687/0.3298, allocations: 107.2 kB / 1.18 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002485/0.3301, allocations: 43.95 kB / 1.18 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3301, allocations: 0 / 1.18 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.3302, allocations: 27.97 kB / 1.18 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.3305, allocations: 9.062 kB / 1.18 GB, free: 0.7617 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003609/0.3308, allocations: 139.1 kB / 1.181 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.3312, allocations: 0.6768 MB / 1.181 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.3313, allocations: 11.44 kB / 1.181 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.3313, allocations: 0 / 1.181 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of Templates: time 0.002381/0.3337, allocations: 0.735 MB / 1.182 GB, free: 15.15 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.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.136539670056663]