Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001627/0.001627, allocations: 113 kB / 17.6 MB, free: 4.684 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.001727/0.001727, allocations: 186.8 kB / 20.78 MB, free: 1.52 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.585/1.585, allocations: 225.6 MB / 249.4 MB, free: 3.117 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.825/2.825, allocations: 476.7 MB / 0.7629 GB, free: 15.09 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 63.91 kB / 1.107 GB, free: 4.547 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.088/1.09, allocations: 168.7 MB / 1.272 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002518/1.092, allocations: 1.541 MB / 1.273 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0003436/1.093, allocations: 129.3 kB / 1.274 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.182e-05/1.093, allocations: 0.9062 kB / 1.274 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.608e-05/1.093, allocations: 12.44 kB / 1.274 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.942e-05/1.093, allocations: 0.875 kB / 1.274 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/1.093, allocations: 22.91 kB / 1.274 GB, free: 6.727 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.244e-05/1.093, allocations: 29.34 kB / 1.274 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/1.093, allocations: 11.69 kB / 1.274 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.379e-05/1.093, allocations: 11.19 kB / 1.274 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.132e-05/1.093, allocations: 16.81 kB / 1.274 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/1.093, allocations: 2.781 kB / 1.274 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.949e-05/1.093, allocations: 13.5 kB / 1.274 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/1.093, allocations: 10.25 kB / 1.274 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.474e-05/1.093, allocations: 19.95 kB / 1.274 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/1.094, allocations: 34.45 kB / 1.274 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/1.094, allocations: 0.75 kB / 1.274 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.913e-06/1.094, allocations: 0 / 1.274 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.001e-06/1.094, allocations: 0.9688 kB / 1.274 GB, free: 6.656 MB / 0.9981 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.0004053/1.094, allocations: 339.1 kB / 1.274 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/1.094, allocations: 11 kB / 1.274 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/1.094, allocations: 6.797 kB / 1.274 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.794e-05/1.094, allocations: 162.2 kB / 1.274 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/1.094, allocations: 5.25 kB / 1.274 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/1.094, allocations: 2.156 kB / 1.274 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001901/1.094, allocations: 66.09 kB / 1.274 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/1.094, allocations: 192 / 1.274 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/1.094, allocations: 3.938 kB / 1.274 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/1.094, allocations: 1.156 kB / 1.274 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/1.095, allocations: 39.67 kB / 1.274 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002897/1.095, allocations: 264.6 kB / 1.275 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/1.095, allocations: 63.39 kB / 1.275 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.501e-05/1.095, allocations: 25.67 kB / 1.275 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.862e-05/1.095, allocations: 87.47 kB / 1.275 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.194e-05/1.095, allocations: 35.44 kB / 1.275 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/1.095, allocations: 1.281 kB / 1.275 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0003697/1.096, allocations: 87.7 kB / 1.275 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.012e-05/1.096, allocations: 56.03 kB / 1.275 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.208e-05/1.096, allocations: 106.3 kB / 1.275 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.233e-06/1.096, allocations: 25.7 kB / 1.275 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.425e-05/1.096, allocations: 89.05 kB / 1.275 GB, free: 5.238 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.483e-05/1.096, allocations: 10.86 kB / 1.275 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/1.096, allocations: 17.64 kB / 1.275 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.119e-05/1.096, allocations: 315.8 kB / 1.276 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.031e-05/1.096, allocations: 18.33 kB / 1.276 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.997e-05/1.096, allocations: 22.3 kB / 1.276 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/1.096, allocations: 50.98 kB / 1.276 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/1.096, allocations: 4.875 kB / 1.276 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002043/1.096, allocations: 82.23 kB / 1.276 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/1.096, allocations: 4.938 kB / 1.276 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/1.096, allocations: 0.9062 kB / 1.276 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/1.097, allocations: 0 / 1.276 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.322e-05/1.097, allocations: 16.61 kB / 1.276 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/1.097, allocations: 0 / 1.276 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.556e-05/1.097, allocations: 9.719 kB / 1.276 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/1.097, allocations: 0.9688 kB / 1.276 GB, free: 4.809 MB / 0.9981 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 5.182e-05/1.097, allocations: 115.8 kB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.432e-05/1.097, allocations: 5.328 kB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002577/1.097, allocations: 76.77 kB / 1.276 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/1.097, allocations: 1.062 kB / 1.276 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/1.097, allocations: 4 kB / 1.276 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/1.097, allocations: 3.938 kB / 1.276 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/1.097, allocations: 164.2 kB / 1.276 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/1.097, allocations: 0 / 1.276 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.866e-05/1.097, allocations: 14.83 kB / 1.276 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/1.097, allocations: 1.125 kB / 1.276 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/1.097, allocations: 1.266 kB / 1.276 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/1.097, allocations: 1.031 kB / 1.276 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/1.097, allocations: 0 / 1.276 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/1.097, allocations: 178.2 kB / 1.276 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.658e-05/1.097, allocations: 78.33 kB / 1.276 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/1.097, allocations: 0 / 1.276 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-05/1.098, allocations: 7.094 kB / 1.276 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/1.098, allocations: 8.297 kB / 1.276 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/1.098, allocations: 1.938 kB / 1.276 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.287e-05/1.098, allocations: 88.81 kB / 1.276 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.098, allocations: 0 / 1.276 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002229/1.098, allocations: 10.47 kB / 1.276 GB, free: 4.102 MB / 0.9981 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.0001495/1.098, allocations: 114.8 kB / 1.277 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002397/1.098, allocations: 39.83 kB / 1.277 GB, free: 4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/1.098, allocations: 0 / 1.277 GB, free: 4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.953e-05/1.098, allocations: 29.47 kB / 1.277 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/1.099, allocations: 8.125 kB / 1.277 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002739/1.099, allocations: 128.4 kB / 1.277 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.722e-05/1.099, allocations: 0.6779 MB / 1.277 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.016e-05/1.099, allocations: 2.344 kB / 1.277 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/1.099, allocations: 16.58 kB / 1.277 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of SimCode: time 3.71e-07/1.099, allocations: 4.75 kB / 1.277 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of Templates: time 0.003219/1.102, allocations: 0.7078 MB / 1.278 GB, free: 3.086 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.130468402989209]