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.002458/0.002458, allocations: 89.48 kB / 19.44 MB, free: 328 kB / 13.93 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.002931/0.002931, allocations: 169.2 kB / 22.76 MB, free: 1.656 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 1.603/1.603, allocations: 177.1 MB / 203.1 MB, free: 5.176 MB / 186.7 MB " [Timeout remaining time 178] 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 3.324/3.324, allocations: 429.5 MB / 0.6729 GB, free: 4.023 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.673e-06/1.673e-06, allocations: 0 / 0.8775 GB, free: 6.602 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.748e-05/2.916e-05, allocations: 5.125 kB / 0.8775 GB, free: 6.598 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001635/0.001665, allocations: 0.6039 MB / 0.8781 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002522/0.001917, allocations: 48.41 kB / 0.8781 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.58e-05/0.001933, allocations: 0 / 0.8781 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.135e-05/0.001944, allocations: 0 / 0.8781 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.34e-06/0.001949, allocations: 1.094 kB / 0.8781 GB, free: 5.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.002171, allocations: 8.75 kB / 0.8781 GB, free: 5.961 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 4.042e-05/0.002211, allocations: 4 kB / 0.8781 GB, free: 5.957 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.792e-05/0.002249, allocations: 4.656 kB / 0.8781 GB, free: 5.953 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 2.736e-05/0.002276, allocations: 0.5469 kB / 0.8781 GB, free: 5.953 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 2.145e-05/0.002298, allocations: 6.891 kB / 0.8782 GB, free: 5.949 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.002313, allocations: 4 kB / 0.8782 GB, free: 5.945 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.685e-05/0.00239, allocations: 11.98 kB / 0.8782 GB, free: 5.934 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.225e-06/0.002398, allocations: 3.938 kB / 0.8782 GB, free: 5.93 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.191e-05/0.00241, allocations: 1.094 kB / 0.8782 GB, free: 5.93 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 8.116e-05/0.002491, allocations: 11.92 kB / 0.8782 GB, free: 5.918 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.002493, allocations: 3.281 kB / 0.8782 GB, free: 5.918 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.31e-07/0.002494, allocations: 0 / 0.8782 GB, free: 5.918 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.166e-06/0.002497, allocations: 0.5469 kB / 0.8782 GB, free: 5.918 MB / 0.8386 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.0003826/0.002879, allocations: 340.4 kB / 0.8785 GB, free: 5.547 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.00292, allocations: 12.02 kB / 0.8785 GB, free: 5.535 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.002956, allocations: 1.703 kB / 0.8785 GB, free: 5.535 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.413e-05/0.00305, allocations: 108.6 kB / 0.8786 GB, free: 5.402 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.003062, allocations: 384 / 0.8786 GB, free: 5.402 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.133e-06/0.003069, allocations: 1.312 kB / 0.8786 GB, free: 5.402 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.445e-05/0.003164, allocations: 34.27 kB / 0.8787 GB, free: 5.363 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.003174, allocations: 5.203 kB / 0.8787 GB, free: 5.359 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.003182, allocations: 384 / 0.8787 GB, free: 5.359 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.003186, allocations: 1.688 kB / 0.8787 GB, free: 5.359 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.152e-05/0.003227, allocations: 16.98 kB / 0.8787 GB, free: 5.344 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001554/0.003382, allocations: 112.6 kB / 0.8788 GB, free: 5.199 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.821e-05/0.003451, allocations: 31.09 kB / 0.8788 GB, free: 5.156 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.342e-05/0.003474, allocations: 12.84 kB / 0.8788 GB, free: 5.141 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001352/0.003609, allocations: 7.984 kB / 0.8788 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.003642, allocations: 34.33 kB / 0.8789 GB, free: 5.09 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.003643, allocations: 0 / 0.8789 GB, free: 5.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.000153/0.003796, allocations: 42.17 kB / 0.8789 GB, free: 5.043 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.003842, allocations: 60.17 kB / 0.879 GB, free: 4.973 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.378e-05/0.003936, allocations: 146.2 kB / 0.8791 GB, free: 4.816 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.003955, allocations: 29.14 kB / 0.8791 GB, free: 4.785 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.33e-05/0.004018, allocations: 127.1 kB / 0.8793 GB, free: 4.656 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.004039, allocations: 4 kB / 0.8793 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.972e-05/0.004079, allocations: 23.31 kB / 0.8793 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002565/0.004336, allocations: 496.1 kB / 0.8798 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.632e-05/0.004352, allocations: 4 kB / 0.8798 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.504e-06/0.004359, allocations: 0 / 0.8798 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.154e-05/0.004401, allocations: 19.67 kB / 0.8798 GB, free: 4.098 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.004403, allocations: 4.594 kB / 0.8798 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.47e-05/0.004488, allocations: 42.8 kB / 0.8798 GB, free: 4.047 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.004501, allocations: 4 kB / 0.8798 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.004506, allocations: 0 / 0.8798 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.004519, allocations: 0 / 0.8798 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.895e-05/0.004578, allocations: 8.484 kB / 0.8798 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.004582, allocations: 1.031 kB / 0.8798 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.635e-05/0.004599, allocations: 7.938 kB / 0.8799 GB, free: 4.027 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-06/0.004603, allocations: 0 / 0.8799 GB, free: 4.027 MB / 0.8386 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 0.0001114/0.004714, allocations: 157.6 kB / 0.88 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-06/0.004722, allocations: 0 / 0.88 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.733e-05/0.004819, allocations: 50.31 kB / 0.88 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.004821, allocations: 0 / 0.88 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.004824, allocations: 0 / 0.88 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.004831, allocations: 4 kB / 0.8801 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.004936, allocations: 113.6 kB / 0.8802 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.004936, allocations: 0 / 0.8802 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.532e-05/0.004962, allocations: 4 kB / 0.8802 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.004966, allocations: 4.609 kB / 0.8802 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.004971, allocations: 256 / 0.8802 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.004972, allocations: 4 kB / 0.8802 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.004973, allocations: 0 / 0.8802 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.005078, allocations: 80.34 kB / 0.8803 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-06/0.005085, allocations: 3.984 kB / 0.8803 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.005098, allocations: 8 kB / 0.8803 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.005108, allocations: 3.938 kB / 0.8803 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.758e-05/0.005136, allocations: 0 / 0.8803 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.005138, allocations: 0 / 0.8803 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.114e-05/0.005199, allocations: 119.9 kB / 0.8804 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.005199, allocations: 0 / 0.8804 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001941/0.005394, allocations: 11.97 kB / 0.8804 GB, free: 3.402 MB / 0.8386 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.0001579/0.005551, allocations: 107.2 kB / 0.8805 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.12e-05/0.005633, allocations: 19.69 kB / 0.8805 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.005634, allocations: 0 / 0.8805 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.721e-05/0.005661, allocations: 11.69 kB / 0.8805 GB, free: 3.25 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.005782, allocations: 0.5156 kB / 0.8805 GB, free: 3.25 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002149/0.005997, allocations: 97.28 kB / 0.8806 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.395e-05/0.006051, allocations: 55.48 kB / 0.8807 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.294e-05/0.006064, allocations: 8 kB / 0.8807 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.184e-05/0.006085, allocations: 12.48 kB / 0.8807 GB, free: 3.031 MB / 0.8386 GB Notification: Performance of SimCode: time 4.01e-07/0.006086, allocations: 0 / 0.8807 GB, free: 3.031 MB / 0.8386 GB Notification: Performance of Templates: time 0.002854/0.00894, allocations: 356.3 kB / 0.881 GB, free: 2.688 MB / 0.8386 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] 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: 8.27405481704045]