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.001145/0.001145, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001575/0.00272, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001095/0.001095, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001374/0.002469, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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 0.9905/0.9905, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08799/1.078, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.892/1.892, allocations: 378.2 MB / 0.6076 GB, free: 7.84 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4977/2.389, allocations: 123.3 MB / 0.728 GB, free: 5.824 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 0.7294 GB, free: 4.477 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.795e-05/3.007e-05, allocations: 2.312 kB / 0.7294 GB, free: 4.473 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001396/0.001426, allocations: 0.6527 MB / 0.73 GB, free: 3.84 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0001095/0.001536, allocations: 45.02 kB / 0.7301 GB, free: 3.797 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.351e-05/0.001549, allocations: 1.406 kB / 0.7301 GB, free: 3.797 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 4.288e-06/0.001554, allocations: 0 / 0.7301 GB, free: 3.797 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 1.172e-06/0.001555, allocations: 1.531 kB / 0.7301 GB, free: 3.797 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001121/0.001667, allocations: 11.92 kB / 0.7301 GB, free: 3.785 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 5.35e-05/0.00172, allocations: 8.625 kB / 0.7301 GB, free: 3.777 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 4.546e-05/0.001766, allocations: 4.562 kB / 0.7301 GB, free: 3.773 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 4.136e-05/0.001807, allocations: 8.75 kB / 0.7301 GB, free: 3.766 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 2.391e-05/0.001831, allocations: 1.188 kB / 0.7301 GB, free: 3.766 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.001845, allocations: 0.9375 kB / 0.7301 GB, free: 3.766 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.426e-05/0.001939, allocations: 11.92 kB / 0.7301 GB, free: 3.754 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.00195, allocations: 4.656 kB / 0.7301 GB, free: 3.75 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.206e-05/0.001962, allocations: 1.266 kB / 0.7301 GB, free: 3.75 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 8.502e-05/0.002047, allocations: 13.84 kB / 0.7301 GB, free: 3.738 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.457e-05/0.002062, allocations: 0 / 0.7301 GB, free: 3.738 MB / 0.698 GB Notification: Performance of FrontEnd: time 9.11e-07/0.002063, allocations: 1.438 kB / 0.7301 GB, free: 3.738 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.272e-05/0.002075, allocations: 4 kB / 0.7301 GB, free: 3.734 MB / 0.698 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.0002501/0.002325, allocations: 209.4 kB / 0.7303 GB, free: 3.504 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.002358, allocations: 8.031 kB / 0.7303 GB, free: 3.496 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.447e-05/0.002383, allocations: 5.578 kB / 0.7304 GB, free: 3.492 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.753e-05/0.00244, allocations: 109.8 kB / 0.7305 GB, free: 3.359 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.00245, allocations: 2.047 kB / 0.7305 GB, free: 3.359 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.981e-06/0.002456, allocations: 384 / 0.7305 GB, free: 3.359 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.829e-05/0.002534, allocations: 32.05 kB / 0.7305 GB, free: 3.324 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.002542, allocations: 4.172 kB / 0.7305 GB, free: 3.32 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.002549, allocations: 4.375 kB / 0.7305 GB, free: 3.316 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.002553, allocations: 384 / 0.7305 GB, free: 3.316 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.619e-05/0.002579, allocations: 16.83 kB / 0.7305 GB, free: 3.301 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.157e-05/0.002661, allocations: 57.05 kB / 0.7306 GB, free: 3.23 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.288e-05/0.002704, allocations: 23.8 kB / 0.7306 GB, free: 3.199 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.181e-05/0.002715, allocations: 6.281 kB / 0.7306 GB, free: 3.191 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.002836, allocations: 8.047 kB / 0.7306 GB, free: 3.184 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.002856, allocations: 31.06 kB / 0.7306 GB, free: 3.145 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.002857, allocations: 0.875 kB / 0.7306 GB, free: 3.145 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001094/0.002967, allocations: 42.52 kB / 0.7307 GB, free: 3.098 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.002996, allocations: 51.41 kB / 0.7307 GB, free: 3.035 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.953e-05/0.003025, allocations: 93.86 kB / 0.7308 GB, free: 2.934 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.216e-06/0.003033, allocations: 26.27 kB / 0.7308 GB, free: 2.902 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 1.894e-05/0.003052, allocations: 85.91 kB / 0.7309 GB, free: 2.816 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.00307, allocations: 3.938 kB / 0.7309 GB, free: 2.812 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.155e-05/0.003091, allocations: 17.7 kB / 0.7309 GB, free: 2.789 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.052e-05/0.003162, allocations: 314.8 kB / 0.7312 GB, free: 2.473 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.754e-06/0.00317, allocations: 4 kB / 0.7312 GB, free: 2.469 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.19e-06/0.003175, allocations: 2.109 kB / 0.7312 GB, free: 2.469 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.282e-05/0.003208, allocations: 12.84 kB / 0.7313 GB, free: 2.453 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.00321, allocations: 0.9688 kB / 0.7313 GB, free: 2.453 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.126e-05/0.003251, allocations: 41.64 kB / 0.7313 GB, free: 2.406 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.003264, allocations: 4.969 kB / 0.7313 GB, free: 2.402 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.003269, allocations: 0 / 0.7313 GB, free: 2.402 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.835e-06/0.003277, allocations: 0.5 kB / 0.7313 GB, free: 2.402 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.992e-05/0.003337, allocations: 7.984 kB / 0.7313 GB, free: 2.395 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.00334, allocations: 0.75 kB / 0.7313 GB, free: 2.395 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.046e-05/0.003351, allocations: 0.9844 kB / 0.7313 GB, free: 2.395 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.361e-06/0.003356, allocations: 5.031 kB / 0.7313 GB, free: 2.391 MB / 0.698 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 5.476e-05/0.003411, allocations: 113.8 kB / 0.7314 GB, free: 2.27 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-06/0.003414, allocations: 0.6875 kB / 0.7314 GB, free: 2.27 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.998e-05/0.003484, allocations: 46.56 kB / 0.7315 GB, free: 2.215 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.003486, allocations: 0 / 0.7315 GB, free: 2.215 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.003488, allocations: 0 / 0.7315 GB, free: 2.215 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.00349, allocations: 0 / 0.7315 GB, free: 2.215 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.774e-05/0.003548, allocations: 69.8 kB / 0.7315 GB, free: 2.129 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.00355, allocations: 2.094 kB / 0.7315 GB, free: 2.129 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.726e-05/0.003567, allocations: 4 kB / 0.7315 GB, free: 2.125 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-06/0.003573, allocations: 3.984 kB / 0.7315 GB, free: 2.121 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.003575, allocations: 2.062 kB / 0.7316 GB, free: 2.121 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-06/0.003578, allocations: 0 / 0.7316 GB, free: 2.121 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.003579, allocations: 0 / 0.7316 GB, free: 2.121 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.003581, allocations: 4 kB / 0.7316 GB, free: 2.117 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.229e-05/0.003634, allocations: 68.56 kB / 0.7316 GB, free: 2.035 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.354e-06/0.003641, allocations: 5.562 kB / 0.7316 GB, free: 2.031 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.751e-06/0.003647, allocations: 0 / 0.7316 GB, free: 2.031 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.118e-05/0.003668, allocations: 0.8438 kB / 0.7316 GB, free: 2.031 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-06/0.00367, allocations: 0 / 0.7316 GB, free: 2.031 MB / 0.698 GB Notification: Performance of sorting global known variables: time 7.374e-06/0.003677, allocations: 9.516 kB / 0.7316 GB, free: 2.02 MB / 0.698 GB Notification: Performance of sort global known variables: time 6e-08/0.003677, allocations: 0 / 0.7316 GB, free: 2.02 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001169/0.003794, allocations: 5.844 kB / 0.7316 GB, free: 2.016 MB / 0.698 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.0001447/0.003939, allocations: 85.16 kB / 0.7317 GB, free: 1.922 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 7.649e-05/0.004015, allocations: 12.86 kB / 0.7317 GB, free: 1.906 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.00402, allocations: 5.188 kB / 0.7317 GB, free: 1.902 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.21e-05/0.004032, allocations: 8.859 kB / 0.7317 GB, free: 1.891 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.072e-05/0.004102, allocations: 15.58 kB / 0.7318 GB, free: 1.879 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001974/0.0043, allocations: 81.31 kB / 0.7318 GB, free: 1.773 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.081e-05/0.004331, allocations: 51.36 kB / 0.7319 GB, free: 1.703 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.433e-05/0.004345, allocations: 9.922 kB / 0.7319 GB, free: 1.695 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.194e-05/0.004377, allocations: 47.38 kB / 0.7319 GB, free: 1.648 MB / 0.698 GB Notification: Performance of SimCode: time 8.32e-07/0.004378, allocations: 0 / 0.7319 GB, free: 1.648 MB / 0.698 GB Notification: Performance of Templates: time 0.002216/0.006594, allocations: 381.3 kB / 0.7323 GB, free: 1.289 MB / 0.698 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.825182219967246]