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.0008439/0.0008439, allocations: 80.53 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.0008295/0.0008295, allocations: 173.9 kB / 23.21 MB, free: 1.355 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.8903/0.8903, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.773/1.773, allocations: 377.9 MB / 0.6228 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 178] 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.984e-06/1.984e-06, allocations: 0 / 0.9822 GB, free: 0.9023 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.884e-05/3.083e-05, allocations: 2.281 kB / 0.9822 GB, free: 0.8984 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001831/0.001861, allocations: 0.5956 MB / 0.9828 GB, free: 312 kB / 0.8855 GB Notification: Performance of NFInst.instExpressions: time 0.000281/0.002142, allocations: 43.81 kB / 0.9829 GB, free: 268 kB / 0.8855 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.713e-05/0.00216, allocations: 3.938 kB / 0.9829 GB, free: 264 kB / 0.8855 GB Notification: Performance of NFTyping.typeComponents: time 1.692e-05/0.002176, allocations: 0 / 0.9829 GB, free: 264 kB / 0.8855 GB Notification: Performance of NFTyping.typeBindings: time 8.386e-06/0.002185, allocations: 3.938 kB / 0.9829 GB, free: 260 kB / 0.8855 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.002436, allocations: 15.97 kB / 0.9829 GB, free: 244 kB / 0.8855 GB Notification: Performance of NFFlatten.flatten: time 4.945e-05/0.002486, allocations: 0 / 0.9829 GB, free: 244 kB / 0.8855 GB Notification: Performance of NFFlatten.resolveConnections: time 5.248e-05/0.002538, allocations: 8 kB / 0.9829 GB, free: 236 kB / 0.8855 GB Notification: Performance of NFEvalConstants.evaluate: time 2.993e-05/0.002568, allocations: 0 / 0.9829 GB, free: 236 kB / 0.8855 GB Notification: Performance of NFSimplifyModel.simplify: time 2.313e-05/0.002591, allocations: 0 / 0.9829 GB, free: 236 kB / 0.8855 GB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.002605, allocations: 0 / 0.9829 GB, free: 236 kB / 0.8855 GB Notification: Performance of NFFlatten.collectFunctions: time 9.166e-05/0.002696, allocations: 15.98 kB / 0.9829 GB, free: 220 kB / 0.8855 GB Notification: Performance of NFScalarize.scalarize: time 1.127e-05/0.002707, allocations: 0 / 0.9829 GB, free: 220 kB / 0.8855 GB Notification: Performance of NFVerifyModel.verify: time 1.744e-05/0.002725, allocations: 0 / 0.9829 GB, free: 220 kB / 0.8855 GB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.002831, allocations: 19.91 kB / 0.9829 GB, free: 200 kB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.002834, allocations: 0 / 0.9829 GB, free: 200 kB / 0.8855 GB Notification: Performance of FrontEnd: time 9.31e-07/0.002834, allocations: 0 / 0.9829 GB, free: 200 kB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.002839, allocations: 0 / 0.9829 GB, free: 200 kB / 0.8855 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.0002941/0.003133, allocations: 242.5 kB / 0.9832 GB, free: 15.93 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.003174, allocations: 12.03 kB / 0.9832 GB, free: 15.91 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.003214, allocations: 12.86 kB / 0.9832 GB, free: 15.9 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.689e-05/0.003281, allocations: 105.7 kB / 0.9833 GB, free: 15.77 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.003295, allocations: 4.375 kB / 0.9833 GB, free: 15.77 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.395e-06/0.003303, allocations: 384 / 0.9833 GB, free: 15.77 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.844e-05/0.003401, allocations: 30.27 kB / 0.9833 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.003415, allocations: 192 / 0.9833 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.003424, allocations: 384 / 0.9833 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.003428, allocations: 384 / 0.9833 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.48e-05/0.003473, allocations: 19.86 kB / 0.9833 GB, free: 15.71 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/0.003596, allocations: 101.3 kB / 0.9834 GB, free: 15.59 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 6.27e-05/0.003659, allocations: 26.55 kB / 0.9835 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.903e-05/0.003678, allocations: 8.859 kB / 0.9835 GB, free: 15.54 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001481/0.003826, allocations: 8.047 kB / 0.9835 GB, free: 15.53 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.003852, allocations: 30.56 kB / 0.9835 GB, free: 15.49 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=2): time 1.673e-06/0.003854, allocations: 4 kB / 0.9835 GB, free: 15.49 MB / 0.9011 GB Notification: Performance of matching and sorting (n=2): time 0.0001642/0.004018, allocations: 37.7 kB / 0.9835 GB, free: 15.45 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.004056, allocations: 51.41 kB / 0.9836 GB, free: 15.38 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.932e-05/0.004095, allocations: 93.84 kB / 0.9837 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.004108, allocations: 29.83 kB / 0.9837 GB, free: 15.25 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 2.426e-05/0.004132, allocations: 80.14 kB / 0.9838 GB, free: 15.16 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.004152, allocations: 4 kB / 0.9838 GB, free: 15.16 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.004191, allocations: 13.72 kB / 0.9838 GB, free: 15.14 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.004303, allocations: 322.7 kB / 0.9841 GB, free: 14.82 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.01e-05/0.004323, allocations: 0 / 0.9841 GB, free: 14.82 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.288e-06/0.004332, allocations: 0 / 0.9841 GB, free: 14.82 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.06e-05/0.004373, allocations: 20.84 kB / 0.9841 GB, free: 14.79 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.004375, allocations: 0 / 0.9841 GB, free: 14.79 MB / 0.9011 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.603e-05/0.004441, allocations: 33.77 kB / 0.9842 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.004454, allocations: 8.031 kB / 0.9842 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.004458, allocations: 0 / 0.9842 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.004472, allocations: 0 / 0.9842 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.325e-05/0.004535, allocations: 7.984 kB / 0.9842 GB, free: 14.74 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.004542, allocations: 3.938 kB / 0.9842 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.417e-05/0.004556, allocations: 3.938 kB / 0.9842 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.004561, allocations: 4 kB / 0.9842 GB, free: 14.73 MB / 0.9011 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.627e-05/0.004627, allocations: 109.8 kB / 0.9843 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-06/0.004636, allocations: 7.891 kB / 0.9843 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.004738, allocations: 48.84 kB / 0.9843 GB, free: 14.55 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.00474, allocations: 0 / 0.9843 GB, free: 14.55 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.004744, allocations: 0 / 0.9843 GB, free: 14.55 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.004748, allocations: 7.984 kB / 0.9844 GB, free: 14.54 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.812e-05/0.004816, allocations: 101.2 kB / 0.9845 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.004818, allocations: 0 / 0.9845 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.639e-05/0.004844, allocations: 4 kB / 0.9845 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.004847, allocations: 0 / 0.9845 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.004856, allocations: 7.984 kB / 0.9845 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.004857, allocations: 0 / 0.9845 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.004858, allocations: 0 / 0.9845 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.02e-05/0.004938, allocations: 73.05 kB / 0.9845 GB, free: 14.31 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 5.74e-06/0.004944, allocations: 3.984 kB / 0.9845 GB, free: 14.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.019e-05/0.004954, allocations: 3.938 kB / 0.9845 GB, free: 14.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.197e-05/0.004966, allocations: 4 kB / 0.9845 GB, free: 14.3 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.608e-05/0.004992, allocations: 0 / 0.9845 GB, free: 14.3 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.004995, allocations: 0 / 0.9845 GB, free: 14.3 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 2.487e-05/0.00502, allocations: 75.28 kB / 0.9846 GB, free: 14.22 MB / 0.9011 GB Notification: Performance of sort global known variables: time 9e-08/0.00502, allocations: 0 / 0.9846 GB, free: 14.22 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0002138/0.005234, allocations: 4 kB / 0.9846 GB, free: 14.22 MB / 0.9011 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.0001462/0.00538, allocations: 115.2 kB / 0.9847 GB, free: 14.09 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 8.579e-05/0.005466, allocations: 11.94 kB / 0.9847 GB, free: 14.08 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.005467, allocations: 0 / 0.9847 GB, free: 14.08 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 1.068e-05/0.005478, allocations: 4 kB / 0.9847 GB, free: 14.08 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000145/0.005623, allocations: 3.938 kB / 0.9848 GB, free: 14.07 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002331/0.005856, allocations: 114.5 kB / 0.9849 GB, free: 13.93 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.442e-05/0.005901, allocations: 55.36 kB / 0.9849 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.15e-05/0.005922, allocations: 8.5 kB / 0.9849 GB, free: 13.85 MB / 0.9011 GB Notification: Performance of SimCode: time 5.91e-07/0.005923, allocations: 0 / 0.9849 GB, free: 13.85 MB / 0.9011 GB Notification: Performance of Templates: time 0.001833/0.007756, allocations: 463.9 kB / 0.9854 GB, free: 13.39 MB / 0.9011 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: 6.319159731268883]