Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.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.00141/0.00141, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001568/0.001568, allocations: 210.9 kB / 22.24 MB, free: 4.859 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.508/1.508, allocations: 230.6 MB / 256 MB, free: 8.066 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.305/3.305, allocations: 0.4892 GB / 0.7943 GB, free: 35.52 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.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.002163/0.002163, allocations: 72.38 kB / 1.154 GB, free: 25.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3517, allocations: 176.1 MB / 1.326 GB, free: 1.895 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002801/0.3545, allocations: 1.538 MB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003946/0.3549, allocations: 127.6 kB / 1.327 GB, free: 228 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.088e-05/0.3549, allocations: 0 / 1.327 GB, free: 228 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.046e-05/0.355, allocations: 0 / 1.327 GB, free: 228 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.894e-05/0.355, allocations: 11.94 kB / 1.327 GB, free: 216 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002315/0.3552, allocations: 23.92 kB / 1.327 GB, free: 192 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.753e-05/0.3553, allocations: 23.98 kB / 1.327 GB, free: 168 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3554, allocations: 7.984 kB / 1.327 GB, free: 160 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.753e-05/0.3555, allocations: 15.92 kB / 1.327 GB, free: 144 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.513e-05/0.3555, allocations: 15.98 kB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.3555, allocations: 0 / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.458e-05/0.3556, allocations: 15.98 kB / 1.327 GB, free: 112 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.3556, allocations: 11.88 kB / 1.327 GB, free: 100 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.444e-05/0.3556, allocations: 8 kB / 1.327 GB, free: 92 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.3558, allocations: 43.81 kB / 1.327 GB, free: 48 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3558, allocations: 0 / 1.327 GB, free: 48 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3558, allocations: 0 / 1.327 GB, free: 48 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.3558, allocations: 4 kB / 1.327 GB, free: 44 kB / 1.014 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.0005491/0.3563, allocations: 270.2 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3564, allocations: 8.031 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.3564, allocations: 0.9375 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.3566, allocations: 110.5 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.3566, allocations: 4.359 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.3566, allocations: 4.375 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.3569, allocations: 62.23 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3569, allocations: 192 / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.3569, allocations: 3.938 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3569, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.3571, allocations: 43.89 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004768/0.3576, allocations: 204.6 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003824/0.3579, allocations: 50.53 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.358, allocations: 32.84 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.3581, allocations: 11.92 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.3582, allocations: 34.55 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.3582, allocations: 7.938 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004191/0.3586, allocations: 93.62 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.3586, allocations: 51.41 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.724e-05/0.3587, allocations: 101.8 kB / 1.328 GB, free: 14.83 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.3588, allocations: 29.7 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.527e-05/0.3588, allocations: 88.12 kB / 1.328 GB, free: 14.7 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.086e-05/0.3589, allocations: 7.953 kB / 1.328 GB, free: 14.7 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.3589, allocations: 13.72 kB / 1.328 GB, free: 14.68 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3591, allocations: 314.8 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.631e-05/0.3592, allocations: 19.97 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.117e-05/0.3592, allocations: 23.92 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.3594, allocations: 48.81 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3594, allocations: 4 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002217/0.3596, allocations: 73.59 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3597, allocations: 6.031 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3597, allocations: 0 / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3597, allocations: 3.938 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.049e-05/0.3598, allocations: 11.98 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3598, allocations: 0 / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.405e-05/0.3598, allocations: 19.92 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.3598, allocations: 7.984 kB / 1.329 GB, free: 14.14 MB / 1.029 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 0.0001113/0.3599, allocations: 113.6 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.36, allocations: 11.89 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002893/0.3603, allocations: 81.33 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.3603, allocations: 0 / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3603, allocations: 0 / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3603, allocations: 3.984 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.3605, allocations: 109.3 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3605, allocations: 4 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.86e-05/0.3606, allocations: 15.92 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3606, allocations: 0 / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.168e-06/0.3606, allocations: 0 / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.3606, allocations: 3.984 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3606, allocations: 0 / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.3609, allocations: 168 kB / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.514e-05/0.3609, allocations: 11.94 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.3609, allocations: 4 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.361, allocations: 8.031 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.904e-05/0.361, allocations: 15.97 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.3611, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.801e-05/0.3611, allocations: 79.28 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3611, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002291/0.3613, allocations: 15.94 kB / 1.33 GB, free: 13.44 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.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.000178/0.3615, allocations: 99.23 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002613/0.3618, allocations: 47.89 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3618, allocations: 0 / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.84e-05/0.3619, allocations: 23.98 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.3622, allocations: 7.984 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003859/0.3626, allocations: 113.5 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.696e-05/0.3626, allocations: 67.28 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.97e-05/0.3627, allocations: 12 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.323e-05/0.3627, allocations: 7.438 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.3627, allocations: 0 / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of Templates: time 0.003808/0.3665, allocations: 0.7433 MB / 1.331 GB, free: 12.27 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.020271476358175]