Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.001593/0.001593, allocations: 106.1 kB / 16.45 MB, free: 6.5 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.001818/0.001818, allocations: 190.9 kB / 19.4 MB, free: 3.68 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.442/1.442, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.617/2.617, allocations: 443.4 MB / 0.7286 GB, free: 13.27 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003095/0.003095, allocations: 67.89 kB / 1.056 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8786/0.8817, allocations: 160.7 MB / 1.213 GB, free: 4.145 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001829/0.8836, allocations: 0.5942 MB / 1.214 GB, free: 3.707 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003322/0.8839, allocations: 49.56 kB / 1.214 GB, free: 3.672 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.621e-05/0.8839, allocations: 1.094 kB / 1.214 GB, free: 3.672 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.26e-05/0.8839, allocations: 0 / 1.214 GB, free: 3.672 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.8839, allocations: 0 / 1.214 GB, free: 3.672 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.8842, allocations: 12.09 kB / 1.214 GB, free: 3.664 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.1e-05/0.8842, allocations: 14.25 kB / 1.214 GB, free: 3.652 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.206e-05/0.8843, allocations: 1.062 kB / 1.214 GB, free: 3.652 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 1.407e-05/0.8843, allocations: 9 kB / 1.214 GB, free: 3.645 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 1.969e-05/0.8843, allocations: 1.031 kB / 1.214 GB, free: 3.645 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 9.007e-06/0.8843, allocations: 0.75 kB / 1.214 GB, free: 3.645 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.234e-05/0.8844, allocations: 8.969 kB / 1.214 GB, free: 3.641 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.215e-05/0.8844, allocations: 3.984 kB / 1.214 GB, free: 3.637 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.8844, allocations: 1.125 kB / 1.214 GB, free: 3.637 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 8.254e-05/0.8845, allocations: 12.33 kB / 1.214 GB, free: 3.629 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.8845, allocations: 0 / 1.214 GB, free: 3.629 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.353e-06/0.8845, allocations: 4 kB / 1.214 GB, free: 3.625 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.398e-06/0.8845, allocations: 1.094 kB / 1.214 GB, free: 3.625 MB / 0.92 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.0003192/0.8848, allocations: 319.7 kB / 1.214 GB, free: 3.27 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.8849, allocations: 9.656 kB / 1.214 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.625e-05/0.8849, allocations: 4.891 kB / 1.214 GB, free: 3.266 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.885, allocations: 161.5 kB / 1.215 GB, free: 3.07 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.885, allocations: 4.375 kB / 1.215 GB, free: 3.066 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.885, allocations: 1.625 kB / 1.215 GB, free: 3.066 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.672e-05/0.8851, allocations: 33.59 kB / 1.215 GB, free: 3.031 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.8851, allocations: 4.188 kB / 1.215 GB, free: 3.027 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-06/0.8851, allocations: 5 kB / 1.215 GB, free: 3.023 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.8852, allocations: 0 / 1.215 GB, free: 3.023 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.191e-05/0.8852, allocations: 7.219 kB / 1.215 GB, free: 3.02 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.8853, allocations: 156 kB / 1.215 GB, free: 2.82 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 5.287e-05/0.8854, allocations: 18.52 kB / 1.215 GB, free: 2.797 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.065e-05/0.8854, allocations: 11.39 kB / 1.215 GB, free: 2.785 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001644/0.8856, allocations: 87.53 kB / 1.215 GB, free: 2.684 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.8856, allocations: 35.66 kB / 1.215 GB, free: 2.641 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.8856, allocations: 0 / 1.215 GB, free: 2.641 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0001439/0.8858, allocations: 46.33 kB / 1.215 GB, free: 2.598 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.8858, allocations: 52.53 kB / 1.215 GB, free: 2.535 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.976e-05/0.8858, allocations: 89.86 kB / 1.215 GB, free: 2.438 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.8859, allocations: 26.67 kB / 1.215 GB, free: 2.406 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.57e-05/0.8859, allocations: 84.25 kB / 1.215 GB, free: 2.32 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.8859, allocations: 5.094 kB / 1.215 GB, free: 2.316 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.111e-05/0.8859, allocations: 12.81 kB / 1.215 GB, free: 2.301 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.8861, allocations: 314.8 kB / 1.216 GB, free: 1.984 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.27e-05/0.8861, allocations: 2.031 kB / 1.216 GB, free: 1.984 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.356e-06/0.8861, allocations: 2.188 kB / 1.216 GB, free: 1.984 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.318e-05/0.8862, allocations: 10.27 kB / 1.216 GB, free: 1.977 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.8862, allocations: 0 / 1.216 GB, free: 1.977 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.788e-05/0.8862, allocations: 53.92 kB / 1.216 GB, free: 1.926 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.8862, allocations: 5.375 kB / 1.216 GB, free: 1.926 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.8862, allocations: 0 / 1.216 GB, free: 1.926 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.8863, allocations: 5.062 kB / 1.216 GB, free: 1.922 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.899e-05/0.8863, allocations: 2.188 kB / 1.216 GB, free: 1.922 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.8863, allocations: 5.094 kB / 1.216 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.275e-05/0.8863, allocations: 0 / 1.216 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.8863, allocations: 5.109 kB / 1.216 GB, free: 1.914 MB / 0.92 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 7.094e-05/0.8864, allocations: 111 kB / 1.216 GB, free: 1.797 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.355e-05/0.8864, allocations: 9.047 kB / 1.216 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.962e-05/0.8865, allocations: 47.59 kB / 1.216 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.8865, allocations: 0.75 kB / 1.216 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.8865, allocations: 1 kB / 1.216 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.8865, allocations: 0 / 1.216 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.8866, allocations: 147.9 kB / 1.216 GB, free: 1.547 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.8866, allocations: 0 / 1.216 GB, free: 1.547 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.549e-05/0.8866, allocations: 6.891 kB / 1.216 GB, free: 1.543 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.8866, allocations: 0.7812 kB / 1.216 GB, free: 1.543 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.8867, allocations: 4.688 kB / 1.216 GB, free: 1.539 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.8867, allocations: 4.031 kB / 1.216 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.8867, allocations: 0.75 kB / 1.216 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.71e-05/0.8867, allocations: 57.8 kB / 1.216 GB, free: 1.469 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.276e-05/0.8868, allocations: 82.28 kB / 1.216 GB, free: 1.371 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.8868, allocations: 5.094 kB / 1.216 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.8868, allocations: 3.938 kB / 1.216 GB, free: 1.363 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.737e-05/0.8868, allocations: 4.844 kB / 1.216 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.8868, allocations: 9.781 kB / 1.216 GB, free: 1.352 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.697e-05/0.8869, allocations: 75.28 kB / 1.216 GB, free: 1.277 MB / 0.92 GB Notification: Performance of sort global known variables: time 7e-08/0.8869, allocations: 0 / 1.216 GB, free: 1.277 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001934/0.8871, allocations: 10.73 kB / 1.216 GB, free: 1.273 MB / 0.92 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.0001633/0.8872, allocations: 105.3 kB / 1.216 GB, free: 1.18 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 8.349e-05/0.8873, allocations: 5.719 kB / 1.216 GB, free: 1.18 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.8873, allocations: 1.125 kB / 1.216 GB, free: 1.18 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.514e-05/0.8873, allocations: 7.344 kB / 1.216 GB, free: 1.176 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.8875, allocations: 4.109 kB / 1.216 GB, free: 1.176 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002216/0.8877, allocations: 95.38 kB / 1.216 GB, free: 1.066 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.8881, allocations: 0.6709 MB / 1.217 GB, free: 380 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 1.238e-05/0.8881, allocations: 2.375 kB / 1.217 GB, free: 380 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.943e-05/0.8881, allocations: 12.34 kB / 1.217 GB, free: 368 kB / 0.92 GB Notification: Performance of SimCode: time 3.11e-07/0.8881, allocations: 0 / 1.217 GB, free: 368 kB / 0.92 GB Notification: Performance of Templates: time 0.00274/0.8908, allocations: 324.9 kB / 1.217 GB, free: 192 kB / 0.92 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.494640661403537]