Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008189/0.0008189, allocations: 80.48 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008904/0.0008904, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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.8609/0.8609, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.806/1.806, allocations: 389 MB / 0.6338 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 1.001 GB, free: 12.94 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.717e-05/2.901e-05, allocations: 2.281 kB / 1.001 GB, free: 12.94 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001597/0.001626, allocations: 0.5954 MB / 1.002 GB, free: 12.34 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002705/0.001897, allocations: 55.73 kB / 1.002 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.001915, allocations: 0 / 1.002 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 1.628e-05/0.001931, allocations: 0 / 1.002 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.001938, allocations: 0 / 1.002 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.002184, allocations: 8 kB / 1.002 GB, free: 12.28 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 5.122e-05/0.002236, allocations: 3.984 kB / 1.002 GB, free: 12.28 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.96e-05/0.002285, allocations: 7.984 kB / 1.002 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 2.863e-05/0.002314, allocations: 0 / 1.002 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 2.519e-05/0.002339, allocations: 4 kB / 1.002 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.002352, allocations: 7.875 kB / 1.002 GB, free: 12.26 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 9.067e-05/0.002443, allocations: 15.98 kB / 1.002 GB, free: 12.24 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.024e-05/0.002453, allocations: 0 / 1.002 GB, free: 12.24 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.58e-05/0.002469, allocations: 0 / 1.002 GB, free: 12.24 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.002571, allocations: 15.97 kB / 1.002 GB, free: 12.23 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.002574, allocations: 0 / 1.002 GB, free: 12.23 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.042e-06/0.002575, allocations: 0 / 1.002 GB, free: 12.23 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.002579, allocations: 0 / 1.002 GB, free: 12.23 MB / 0.9636 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.0002722/0.002851, allocations: 238.4 kB / 1.002 GB, free: 11.96 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.002893, allocations: 8.75 kB / 1.002 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.002929, allocations: 4.938 kB / 1.002 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.406e-05/0.003003, allocations: 109.8 kB / 1.002 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.003016, allocations: 4.375 kB / 1.002 GB, free: 11.81 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.118e-06/0.003025, allocations: 384 / 1.002 GB, free: 11.81 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.549e-05/0.003121, allocations: 30.27 kB / 1.002 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.00313, allocations: 192 / 1.002 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.003138, allocations: 384 / 1.002 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.003143, allocations: 384 / 1.002 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.902e-05/0.003183, allocations: 11.88 kB / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.003313, allocations: 101.3 kB / 1.002 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.744e-05/0.003371, allocations: 26.61 kB / 1.002 GB, free: 11.6 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.966e-05/0.00339, allocations: 8.859 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001446/0.003535, allocations: 4.062 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.003558, allocations: 38.55 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.003559, allocations: 0 / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0001532/0.003712, allocations: 45.64 kB / 1.002 GB, free: 11.49 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.00375, allocations: 55.34 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.536e-05/0.003785, allocations: 89.86 kB / 1.002 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.003797, allocations: 25.7 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 2.247e-05/0.003819, allocations: 84.27 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.003841, allocations: 3.953 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.003873, allocations: 21.64 kB / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.003984, allocations: 318.8 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.5e-05/0.003999, allocations: 4 kB / 1.003 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.004007, allocations: 0 / 1.003 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.632e-05/0.004044, allocations: 16.86 kB / 1.003 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.004046, allocations: 0 / 1.003 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.807e-05/0.004114, allocations: 41.62 kB / 1.003 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.004128, allocations: 4.094 kB / 1.003 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.004135, allocations: 7.984 kB / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.004149, allocations: 0 / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.916e-05/0.004218, allocations: 4 kB / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.004223, allocations: 0 / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.417e-05/0.004238, allocations: 3.938 kB / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.004244, allocations: 4 kB / 1.003 GB, free: 10.76 MB / 0.9636 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 6.482e-05/0.004309, allocations: 113.8 kB / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-06/0.004315, allocations: 0 / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.452e-05/0.00441, allocations: 36.86 kB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.004414, allocations: 11.95 kB / 1.003 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.004418, allocations: 0 / 1.003 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.004421, allocations: 0 / 1.003 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.339e-05/0.004495, allocations: 105.3 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.004496, allocations: 0 / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.259e-05/0.004518, allocations: 4 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.004521, allocations: 0 / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.443e-06/0.004528, allocations: 0 / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.004529, allocations: 0 / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.00453, allocations: 0 / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.82e-05/0.004609, allocations: 69.06 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 5.159e-06/0.004614, allocations: 4.031 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.719e-06/0.004624, allocations: 0 / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.004632, allocations: 0 / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.002e-05/0.004662, allocations: 11.92 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.004667, allocations: 4 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.664e-05/0.004694, allocations: 75.28 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.004694, allocations: 3.938 kB / 1.003 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000209/0.004903, allocations: 4 kB / 1.003 GB, free: 10.26 MB / 0.9636 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.0001649/0.005067, allocations: 107.1 kB / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 8.665e-05/0.005154, allocations: 15.98 kB / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.005156, allocations: 0 / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.686e-06/0.005165, allocations: 4 kB / 1.003 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.005305, allocations: 4 kB / 1.003 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005517/0.005857, allocations: 106.7 kB / 1.004 GB, free: 9.984 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.012e-05/0.005907, allocations: 59.34 kB / 1.004 GB, free: 9.906 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.158e-05/0.005928, allocations: 8.5 kB / 1.004 GB, free: 9.898 MB / 0.9636 GB Notification: Performance of SimCode: time 5.61e-07/0.005929, allocations: 3.938 kB / 1.004 GB, free: 9.895 MB / 0.9636 GB Notification: Performance of Templates: time 0.001786/0.007715, allocations: 464.7 kB / 1.004 GB, free: 9.441 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.422660116106272]