Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.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.001335/0.001335, allocations: 113.9 kB / 17.61 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.001351/0.001351, allocations: 185.9 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.447/1.447, allocations: 225.6 MB / 249.4 MB, free: 3.176 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.72/2.72, allocations: 476.7 MB / 0.7628 GB, free: 15.14 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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_11_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_11_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 67.89 kB / 1.107 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.018/1.02, allocations: 168.7 MB / 1.272 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001691/1.022, allocations: 0.6069 MB / 1.273 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002888/1.022, allocations: 45.52 kB / 1.273 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.794e-05/1.022, allocations: 0 / 1.273 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.408e-05/1.022, allocations: 0 / 1.273 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.873e-06/1.022, allocations: 4.594 kB / 1.273 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/1.023, allocations: 13.86 kB / 1.273 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.537e-05/1.023, allocations: 3.328 kB / 1.273 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.744e-05/1.023, allocations: 2.594 kB / 1.273 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.268e-05/1.023, allocations: 4.906 kB / 1.273 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.659e-05/1.023, allocations: 9.578 kB / 1.273 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.202e-05/1.023, allocations: 0.6875 kB / 1.273 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.28e-05/1.023, allocations: 6.812 kB / 1.273 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.956e-06/1.023, allocations: 0 / 1.273 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.768e-05/1.023, allocations: 4.906 kB / 1.273 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.159e-05/1.023, allocations: 6.906 kB / 1.273 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/1.023, allocations: 0.75 kB / 1.273 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.613e-06/1.023, allocations: 4 kB / 1.273 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.15e-06/1.023, allocations: 0.75 kB / 1.273 GB, free: 7.484 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002484/1.023, allocations: 322.1 kB / 1.273 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/1.023, allocations: 9.281 kB / 1.273 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.459e-05/1.023, allocations: 5.844 kB / 1.273 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.627e-05/1.023, allocations: 166.8 kB / 1.273 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/1.024, allocations: 384 / 1.273 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/1.024, allocations: 1.438 kB / 1.273 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/1.024, allocations: 35.11 kB / 1.273 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/1.024, allocations: 1.031 kB / 1.273 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/1.024, allocations: 4.734 kB / 1.273 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/1.024, allocations: 0.9688 kB / 1.273 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.282e-05/1.024, allocations: 7.609 kB / 1.273 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001133/1.024, allocations: 145.7 kB / 1.273 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.4e-05/1.024, allocations: 28.55 kB / 1.273 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.957e-05/1.024, allocations: 7.203 kB / 1.273 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/1.024, allocations: 90.02 kB / 1.273 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.287e-05/1.024, allocations: 35.8 kB / 1.274 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/1.024, allocations: 0 / 1.274 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001437/1.024, allocations: 44.66 kB / 1.274 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.186e-05/1.024, allocations: 52.88 kB / 1.274 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.835e-05/1.024, allocations: 89.86 kB / 1.274 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.402e-06/1.024, allocations: 31.11 kB / 1.274 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.097e-06/1.024, allocations: 84.27 kB / 1.274 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/1.024, allocations: 4.859 kB / 1.274 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.732e-05/1.024, allocations: 17.17 kB / 1.274 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.141e-05/1.024, allocations: 312.9 kB / 1.274 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/1.024, allocations: 2.219 kB / 1.274 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.586e-06/1.024, allocations: 2.359 kB / 1.274 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.168e-05/1.024, allocations: 15.38 kB / 1.274 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/1.024, allocations: 4.062 kB / 1.274 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.457e-05/1.024, allocations: 40 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/1.024, allocations: 7.75 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/1.024, allocations: 0.9688 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/1.024, allocations: 4.547 kB / 1.274 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.215e-05/1.025, allocations: 7.625 kB / 1.274 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/1.025, allocations: 5.281 kB / 1.274 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.341e-05/1.025, allocations: 0 / 1.274 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-06/1.025, allocations: 0.8438 kB / 1.274 GB, free: 5.793 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 (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 4.257e-05/1.025, allocations: 116.5 kB / 1.274 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.522e-06/1.025, allocations: 0.8438 kB / 1.274 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.374e-05/1.025, allocations: 47.22 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/1.025, allocations: 1.391 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/1.025, allocations: 0 / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/1.025, allocations: 0.75 kB / 1.274 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.582e-05/1.025, allocations: 146.3 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/1.025, allocations: 0 / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.328e-05/1.025, allocations: 4.188 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/1.025, allocations: 0.625 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/1.025, allocations: 17.58 kB / 1.275 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/1.025, allocations: 0 / 1.275 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/1.025, allocations: 0.8438 kB / 1.275 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.229e-05/1.025, allocations: 61.06 kB / 1.275 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.599e-05/1.025, allocations: 78.88 kB / 1.275 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/1.025, allocations: 3.938 kB / 1.275 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.178e-05/1.025, allocations: 5.375 kB / 1.275 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/1.025, allocations: 6.703 kB / 1.275 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/1.025, allocations: 0.75 kB / 1.275 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.072e-05/1.025, allocations: 75.28 kB / 1.275 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4e-08/1.025, allocations: 4.656 kB / 1.275 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002048/1.025, allocations: 6.656 kB / 1.275 GB, free: 5.176 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,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.0001408/1.025, allocations: 107.6 kB / 1.275 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 8.994e-05/1.025, allocations: 11.95 kB / 1.275 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.025, allocations: 4.062 kB / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.782e-05/1.025, allocations: 8.453 kB / 1.275 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/1.026, allocations: 1.438 kB / 1.275 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001988/1.026, allocations: 106.4 kB / 1.275 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.593e-05/1.026, allocations: 0.6727 MB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.289e-05/1.026, allocations: 1.922 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.391e-05/1.026, allocations: 13.44 kB / 1.276 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of SimCode: time 3.8e-07/1.026, allocations: 0 / 1.276 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of Templates: time 0.002569/1.028, allocations: 320.8 kB / 1.276 GB, free: 4.195 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.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.753395151346922]