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.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.001562/0.001562, allocations: 111.7 kB / 17.08 MB, free: 6.012 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.001605/0.001605, allocations: 191.7 kB / 20.03 MB, free: 3.082 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.408/1.408, allocations: 222.9 MB / 245.7 MB, free: 4.234 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.951/2.951, allocations: 489.3 MB / 0.7687 GB, free: 3.812 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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 0.001923/0.001924, allocations: 63.91 kB / 1.103 GB, free: 0.7305 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8614/0.8633, allocations: 163.8 MB / 1.263 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00166/0.865, allocations: 0.5941 MB / 1.263 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002389/0.8653, allocations: 46.62 kB / 1.263 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.645e-05/0.8653, allocations: 0 / 1.263 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.8653, allocations: 4.812 kB / 1.263 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.611e-06/0.8654, allocations: 0 / 1.263 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.8656, allocations: 10.73 kB / 1.263 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.45e-05/0.8656, allocations: 7.672 kB / 1.263 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.599e-05/0.8657, allocations: 3.906 kB / 1.263 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.416e-05/0.8657, allocations: 1.406 kB / 1.263 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.017e-05/0.8657, allocations: 1.391 kB / 1.263 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.215e-06/0.8657, allocations: 0.9062 kB / 1.263 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.753e-05/0.8658, allocations: 10.47 kB / 1.263 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.8658, allocations: 0.875 kB / 1.263 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.8658, allocations: 8 kB / 1.263 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 7.896e-05/0.8659, allocations: 14.78 kB / 1.263 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.8659, allocations: 0 / 1.263 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.873e-06/0.8659, allocations: 0.5625 kB / 1.263 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.8659, allocations: 0 / 1.263 GB, free: 7.578 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.0002293/0.8662, allocations: 318.6 kB / 1.264 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.8662, allocations: 9.406 kB / 1.264 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.575e-05/0.8663, allocations: 4.875 kB / 1.264 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.834e-05/0.8663, allocations: 162.3 kB / 1.264 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.666e-06/0.8663, allocations: 1.156 kB / 1.264 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.8663, allocations: 5.062 kB / 1.264 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.164e-05/0.8664, allocations: 35.67 kB / 1.264 GB, free: 6.988 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.8665, allocations: 4.781 kB / 1.264 GB, free: 6.984 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.8665, allocations: 4.656 kB / 1.264 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.8665, allocations: 3.938 kB / 1.264 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.083e-05/0.8665, allocations: 4.906 kB / 1.264 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001021/0.8666, allocations: 149.9 kB / 1.264 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.169e-05/0.8667, allocations: 32.09 kB / 1.264 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.567e-05/0.8667, allocations: 7.297 kB / 1.264 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.8668, allocations: 82.45 kB / 1.264 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.294e-05/0.8668, allocations: 31.94 kB / 1.264 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.8668, allocations: 0 / 1.264 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001262/0.867, allocations: 45.02 kB / 1.264 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.082e-05/0.867, allocations: 56.75 kB / 1.264 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.91e-05/0.867, allocations: 93.98 kB / 1.264 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.724e-06/0.867, allocations: 31.08 kB / 1.264 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 1.005e-05/0.8671, allocations: 80.14 kB / 1.264 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.8671, allocations: 4.703 kB / 1.264 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.8671, allocations: 14.02 kB / 1.264 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.25e-05/0.8672, allocations: 312.2 kB / 1.265 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.204e-05/0.8672, allocations: 2.328 kB / 1.265 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.738e-06/0.8672, allocations: 6.844 kB / 1.265 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.907e-05/0.8672, allocations: 14.41 kB / 1.265 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.8672, allocations: 0.75 kB / 1.265 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.894e-05/0.8673, allocations: 39.05 kB / 1.265 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.8673, allocations: 6.328 kB / 1.265 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.8673, allocations: 4.875 kB / 1.265 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.8673, allocations: 3.938 kB / 1.265 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.766e-05/0.8674, allocations: 4.109 kB / 1.265 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.8674, allocations: 0 / 1.265 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.432e-05/0.8674, allocations: 1.359 kB / 1.265 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-06/0.8674, allocations: 4.75 kB / 1.265 GB, free: 5.891 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.089e-05/0.8675, allocations: 115.6 kB / 1.265 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-06/0.8675, allocations: 0.875 kB / 1.265 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.679e-05/0.8675, allocations: 47.17 kB / 1.265 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.8676, allocations: 1.219 kB / 1.265 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.8676, allocations: 0 / 1.265 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.8676, allocations: 0.5156 kB / 1.265 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.995e-05/0.8676, allocations: 150.1 kB / 1.265 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.8676, allocations: 0.6562 kB / 1.265 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.268e-05/0.8677, allocations: 19.77 kB / 1.265 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.8677, allocations: 0 / 1.265 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.8677, allocations: 5.453 kB / 1.265 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.8677, allocations: 1.156 kB / 1.265 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.8677, allocations: 3.938 kB / 1.265 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.852e-05/0.8677, allocations: 61.56 kB / 1.265 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.809e-05/0.8678, allocations: 78.36 kB / 1.265 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.8678, allocations: 9.25 kB / 1.265 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.8678, allocations: 4 kB / 1.265 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.04e-05/0.8678, allocations: 3.016 kB / 1.265 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.8678, allocations: 0.7188 kB / 1.265 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.174e-05/0.8679, allocations: 76.09 kB / 1.265 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.8679, allocations: 0 / 1.265 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001831/0.8681, allocations: 3.969 kB / 1.265 GB, free: 5.277 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.0001321/0.8682, allocations: 102.4 kB / 1.265 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 8.499e-05/0.8683, allocations: 19.8 kB / 1.265 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.8683, allocations: 0 / 1.265 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.36e-05/0.8683, allocations: 5.219 kB / 1.265 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.8684, allocations: 3.609 kB / 1.266 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001648/0.8686, allocations: 107.9 kB / 1.266 GB, free: 5.047 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.877e-05/0.8687, allocations: 0.6722 MB / 1.266 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.343e-05/0.8687, allocations: 9.734 kB / 1.266 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of SimCode: time 2.1e-07/0.8687, allocations: 0.8438 kB / 1.266 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of Templates: time 0.001982/0.8707, allocations: 452.9 kB / 1.267 GB, free: 4.32 MB / 0.9981 GB " [Timeout remaining time 299] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.601962899090722]