Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001878/0.001878, allocations: 78.25 kB / 19.18 MB, free: 2.512 MB / 14.72 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.002407/0.002407, allocations: 162 kB / 22.46 MB, free: 5.367 MB / 14.72 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.508/1.508, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.9/2.9, allocations: 377.8 MB / 0.6221 GB, free: 12.57 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.9815 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.13e-05/3.273e-05, allocations: 6.219 kB / 0.9815 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001678/0.001711, allocations: 0.598 MB / 0.9821 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002497/0.001961, allocations: 43.81 kB / 0.9821 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.623e-05/0.001977, allocations: 0 / 0.9821 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.513e-05/0.001992, allocations: 0 / 0.9821 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.001998, allocations: 0 / 0.9821 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.002218, allocations: 19.86 kB / 0.9821 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 4.939e-05/0.002267, allocations: 7.984 kB / 0.9821 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.727e-05/0.002315, allocations: 4 kB / 0.9821 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.894e-05/0.002344, allocations: 4 kB / 0.9821 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.07e-05/0.002364, allocations: 0 / 0.9821 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.384e-05/0.002378, allocations: 0 / 0.9821 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.841e-05/0.002457, allocations: 15.92 kB / 0.9821 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.799e-06/0.002466, allocations: 0 / 0.9821 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.564e-05/0.002482, allocations: 4 kB / 0.9822 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.566e-05/0.002578, allocations: 19.91 kB / 0.9822 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.00258, allocations: 0 / 0.9822 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.91e-07/0.00258, allocations: 0 / 0.9822 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.433e-06/0.002588, allocations: 0 / 0.9822 GB, free: 11.18 MB / 0.9356 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.0003141/0.002902, allocations: 238.4 kB / 0.9824 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.002942, allocations: 12.03 kB / 0.9824 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.871e-05/0.002971, allocations: 0.9375 kB / 0.9824 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.241e-05/0.003064, allocations: 109.8 kB / 0.9825 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.003074, allocations: 384 / 0.9825 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.003085, allocations: 8.25 kB / 0.9825 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.528e-05/0.00318, allocations: 30.27 kB / 0.9826 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.003188, allocations: 192 / 0.9826 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.003196, allocations: 384 / 0.9826 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.003201, allocations: 4.375 kB / 0.9826 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.738e-05/0.003238, allocations: 11.92 kB / 0.9826 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.003367, allocations: 101.3 kB / 0.9827 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.816e-05/0.003426, allocations: 18.61 kB / 0.9827 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.557e-05/0.003451, allocations: 12.86 kB / 0.9827 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.003582, allocations: 11.98 kB / 0.9827 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.003607, allocations: 30.56 kB / 0.9827 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.003608, allocations: 0 / 0.9827 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0001296/0.003738, allocations: 33.7 kB / 0.9828 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.003785, allocations: 59.41 kB / 0.9828 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.349e-05/0.003839, allocations: 89.98 kB / 0.9829 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.003857, allocations: 33.69 kB / 0.9829 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.003892, allocations: 80.14 kB / 0.983 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.003908, allocations: 0 / 0.983 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-05/0.003943, allocations: 13.72 kB / 0.983 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.004096, allocations: 318.8 kB / 0.9833 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.805e-05/0.004114, allocations: 7.938 kB / 0.9833 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-06/0.004121, allocations: 0 / 0.9833 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.399e-05/0.004155, allocations: 12.86 kB / 0.9834 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.004158, allocations: 3.984 kB / 0.9834 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.548e-05/0.004244, allocations: 45.75 kB / 0.9834 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.004256, allocations: 8 kB / 0.9834 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.004259, allocations: 0 / 0.9834 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.00427, allocations: 0 / 0.9834 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.26e-05/0.004322, allocations: 4 kB / 0.9834 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.004327, allocations: 0 / 0.9834 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.004345, allocations: 11.83 kB / 0.9834 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.004351, allocations: 3.984 kB / 0.9834 GB, free: 9.719 MB / 0.9356 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 8.256e-05/0.004433, allocations: 117.8 kB / 0.9835 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-06/0.004441, allocations: 0 / 0.9835 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.855e-05/0.004529, allocations: 44.88 kB / 0.9836 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.004531, allocations: 0 / 0.9836 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.004534, allocations: 3.938 kB / 0.9836 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.004536, allocations: 0 / 0.9836 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.254e-05/0.004629, allocations: 109.2 kB / 0.9837 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.00463, allocations: 0 / 0.9837 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.408e-05/0.004654, allocations: 4 kB / 0.9837 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.004655, allocations: 0 / 0.9837 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-06/0.00466, allocations: 0 / 0.9837 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.004661, allocations: 0 / 0.9837 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.004664, allocations: 3.984 kB / 0.9837 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.357e-05/0.004758, allocations: 69.05 kB / 0.9838 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.068e-06/0.004762, allocations: 4 kB / 0.9838 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.004773, allocations: 3.984 kB / 0.9838 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.094e-05/0.004784, allocations: 0 / 0.9838 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.476e-05/0.004809, allocations: 0 / 0.9838 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.004811, allocations: 4 kB / 0.9838 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.5e-05/0.004846, allocations: 75.28 kB / 0.9839 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.004846, allocations: 0 / 0.9839 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001908/0.005037, allocations: 4 kB / 0.9839 GB, free: 9.223 MB / 0.9356 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.0001653/0.005202, allocations: 107.2 kB / 0.984 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 6.987e-05/0.005272, allocations: 11.98 kB / 0.984 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.005274, allocations: 3.938 kB / 0.984 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.668e-05/0.00529, allocations: 4 kB / 0.984 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.005422, allocations: 4 kB / 0.984 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001959/0.005618, allocations: 84.98 kB / 0.9841 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.266e-05/0.005671, allocations: 59.22 kB / 0.9841 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.231e-05/0.005683, allocations: 4 kB / 0.9841 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.937e-05/0.005702, allocations: 8.625 kB / 0.9841 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of SimCode: time 4.21e-07/0.005703, allocations: 8 kB / 0.9841 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of Templates: time 0.002792/0.008494, allocations: 329.1 kB / 0.9845 GB, free: 8.559 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.00148456171155]