Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001347/0.001347, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001369/0.001369, allocations: 214.4 kB / 22.25 MB, free: 5.262 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.6 MB / 256 MB, free: 7.785 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.362/3.362, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_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.002047/0.002047, allocations: 64 kB / 1.186 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3775/0.3796, allocations: 181.9 MB / 1.364 GB, free: 13.54 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002813/0.3824, allocations: 1.554 MB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003645/0.3827, allocations: 111.7 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.214e-05/0.3828, allocations: 0 / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.679e-05/0.3828, allocations: 3.938 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.576e-05/0.3829, allocations: 3.938 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.3831, allocations: 27.91 kB / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.535e-05/0.3832, allocations: 27.92 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.3833, allocations: 11.98 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.689e-05/0.3833, allocations: 12 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.3834, allocations: 19.91 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.3834, allocations: 4 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.988e-05/0.3835, allocations: 11.98 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.782e-05/0.3835, allocations: 4 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.615e-05/0.3835, allocations: 11.94 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.3836, allocations: 39.81 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3836, allocations: 0 / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3836, allocations: 0 / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.3836, allocations: 0 / 1.366 GB, free: 11.69 MB / 1.061 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.0004756/0.3841, allocations: 270.3 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.3841, allocations: 12.03 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.529e-05/0.3842, allocations: 8.828 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.3843, allocations: 114.5 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.129e-05/0.3843, allocations: 384 / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.3843, allocations: 8.312 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.3845, allocations: 54.23 kB / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3845, allocations: 192 / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.3845, allocations: 7.938 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3845, allocations: 0 / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.3847, allocations: 43.94 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003626/0.3851, allocations: 208.5 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.3854, allocations: 58.53 kB / 1.366 GB, free: 10.82 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.3855, allocations: 32.83 kB / 1.366 GB, free: 10.78 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 7.927e-05/0.3856, allocations: 4 kB / 1.366 GB, free: 10.78 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.3856, allocations: 30.56 kB / 1.366 GB, free: 10.74 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3856, allocations: 4 kB / 1.366 GB, free: 10.73 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003912/0.386, allocations: 97.56 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.386, allocations: 55.41 kB / 1.367 GB, free: 10.57 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.747e-05/0.3861, allocations: 93.86 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.3861, allocations: 29.7 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.102e-05/0.3862, allocations: 84.12 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.3862, allocations: 7.953 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.49e-05/0.3862, allocations: 17.72 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3864, allocations: 318.8 kB / 1.367 GB, free: 9.992 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.088e-05/0.3864, allocations: 19.98 kB / 1.367 GB, free: 9.973 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.901e-05/0.3865, allocations: 19.98 kB / 1.367 GB, free: 9.953 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.3867, allocations: 48.75 kB / 1.367 GB, free: 9.902 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3867, allocations: 0 / 1.367 GB, free: 9.902 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002169/0.3869, allocations: 81.55 kB / 1.367 GB, free: 9.816 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.3869, allocations: 8 kB / 1.367 GB, free: 9.809 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3869, allocations: 3.984 kB / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.3869, allocations: 0 / 1.367 GB, free: 9.805 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.501e-05/0.387, allocations: 8 kB / 1.367 GB, free: 9.797 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.387, allocations: 3.984 kB / 1.367 GB, free: 9.793 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.435e-05/0.3871, allocations: 7.938 kB / 1.367 GB, free: 9.785 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.3871, allocations: 0 / 1.367 GB, free: 9.785 MB / 1.061 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.682e-05/0.3872, allocations: 114.9 kB / 1.367 GB, free: 9.664 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.3872, allocations: 7.922 kB / 1.367 GB, free: 9.656 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002595/0.3875, allocations: 93.2 kB / 1.368 GB, free: 9.551 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3875, allocations: 0 / 1.368 GB, free: 9.551 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3875, allocations: 0.5625 kB / 1.368 GB, free: 9.551 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.3875, allocations: 0 / 1.368 GB, free: 9.551 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.3876, allocations: 105.3 kB / 1.368 GB, free: 9.418 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3876, allocations: 7.922 kB / 1.368 GB, free: 9.41 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.358e-05/0.3877, allocations: 11.94 kB / 1.368 GB, free: 9.398 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3877, allocations: 0 / 1.368 GB, free: 9.398 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.3877, allocations: 7.984 kB / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3877, allocations: 0 / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3877, allocations: 0 / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.388, allocations: 175.4 kB / 1.368 GB, free: 9.203 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.532e-05/0.388, allocations: 15.89 kB / 1.368 GB, free: 9.188 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.388, allocations: 3.984 kB / 1.368 GB, free: 9.184 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-05/0.3881, allocations: 4 kB / 1.368 GB, free: 9.18 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.947e-05/0.3881, allocations: 7.984 kB / 1.368 GB, free: 9.172 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-06/0.3881, allocations: 4 kB / 1.368 GB, free: 9.168 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.287e-05/0.3882, allocations: 83.28 kB / 1.368 GB, free: 9.086 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3882, allocations: 0 / 1.368 GB, free: 9.086 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002231/0.3884, allocations: 4 kB / 1.368 GB, free: 9.082 MB / 1.061 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.000161/0.3886, allocations: 99.23 kB / 1.368 GB, free: 8.973 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002344/0.3888, allocations: 47.95 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3888, allocations: 0 / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.903e-05/0.3889, allocations: 27.91 kB / 1.368 GB, free: 8.898 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.3892, allocations: 11.94 kB / 1.368 GB, free: 8.887 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003279/0.3895, allocations: 117.5 kB / 1.368 GB, free: 8.746 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.986e-05/0.3896, allocations: 59.34 kB / 1.368 GB, free: 8.668 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.366e-05/0.3896, allocations: 8 kB / 1.368 GB, free: 8.66 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.249e-05/0.3896, allocations: 11.44 kB / 1.368 GB, free: 8.648 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.3896, allocations: 0 / 1.368 GB, free: 8.648 MB / 1.061 GB Notification: Performance of Templates: time 0.003388/0.393, allocations: 0.7546 MB / 1.369 GB, free: 7.906 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.876953775063157]