Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001803/0.001803, allocations: 90.58 kB / 20.23 MB, free: 4.176 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.002234/0.002234, allocations: 169.6 kB / 23.55 MB, free: 0.8555 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.451/1.451, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.738/2.738, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 5.141 kB / 0.7864 GB, free: 11.62 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.667e-05/2.863e-05, allocations: 5.125 kB / 0.7864 GB, free: 11.62 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001827/0.001855, allocations: 0.5915 MB / 0.787 GB, free: 11.05 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0002702/0.002125, allocations: 51.73 kB / 0.787 GB, free: 11 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.682e-05/0.002142, allocations: 4.75 kB / 0.7871 GB, free: 10.99 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.486e-05/0.002157, allocations: 3.938 kB / 0.7871 GB, free: 10.99 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 6.612e-06/0.002164, allocations: 0.75 kB / 0.7871 GB, free: 10.99 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.002417, allocations: 8 kB / 0.7871 GB, free: 10.98 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 4.731e-05/0.002464, allocations: 4.547 kB / 0.7871 GB, free: 10.98 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 4.218e-05/0.002506, allocations: 5.625 kB / 0.7871 GB, free: 10.97 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 2.691e-05/0.002533, allocations: 0 / 0.7871 GB, free: 10.97 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 2.831e-05/0.002562, allocations: 3.984 kB / 0.7871 GB, free: 10.97 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.337e-05/0.002575, allocations: 0 / 0.7871 GB, free: 10.97 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.411e-05/0.002659, allocations: 11.98 kB / 0.7871 GB, free: 10.96 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.142e-05/0.00267, allocations: 5.219 kB / 0.7871 GB, free: 10.95 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.943e-05/0.00269, allocations: 0 / 0.7871 GB, free: 10.95 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 9.989e-05/0.00279, allocations: 11.98 kB / 0.7871 GB, free: 10.94 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.002792, allocations: 0.625 kB / 0.7871 GB, free: 10.94 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.71e-07/0.002792, allocations: 0 / 0.7871 GB, free: 10.94 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.002797, allocations: 0.875 kB / 0.7871 GB, free: 10.94 MB / 0.698 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.0003313/0.003128, allocations: 246.2 kB / 0.7873 GB, free: 10.67 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.003167, allocations: 13.06 kB / 0.7874 GB, free: 10.66 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.003211, allocations: 0.9375 kB / 0.7874 GB, free: 10.66 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.918e-05/0.00331, allocations: 105.8 kB / 0.7875 GB, free: 10.53 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.003326, allocations: 9.469 kB / 0.7875 GB, free: 10.52 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-06/0.003333, allocations: 384 / 0.7875 GB, free: 10.52 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.182e-05/0.003425, allocations: 30.27 kB / 0.7875 GB, free: 10.48 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.003434, allocations: 0.75 kB / 0.7875 GB, free: 10.48 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.003441, allocations: 1.062 kB / 0.7875 GB, free: 10.48 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.003446, allocations: 384 / 0.7875 GB, free: 10.48 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.96e-05/0.003485, allocations: 8.844 kB / 0.7875 GB, free: 10.48 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002717/0.003757, allocations: 105.3 kB / 0.7876 GB, free: 10.34 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.659e-05/0.003824, allocations: 27.2 kB / 0.7876 GB, free: 10.31 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.947e-05/0.003843, allocations: 5.891 kB / 0.7876 GB, free: 10.3 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001266/0.00397, allocations: 8.062 kB / 0.7876 GB, free: 10.29 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.004005, allocations: 34.55 kB / 0.7877 GB, free: 10.25 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.004006, allocations: 5.594 kB / 0.7877 GB, free: 10.25 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.000156/0.004162, allocations: 37.64 kB / 0.7877 GB, free: 10.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.004211, allocations: 55.41 kB / 0.7878 GB, free: 10.14 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.994e-05/0.00427, allocations: 93.39 kB / 0.7879 GB, free: 10.04 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.004288, allocations: 25.7 kB / 0.7879 GB, free: 10.01 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/0.004331, allocations: 80.14 kB / 0.788 GB, free: 9.926 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.004351, allocations: 4 kB / 0.788 GB, free: 9.922 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.278e-05/0.004383, allocations: 13.7 kB / 0.788 GB, free: 9.902 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001722/0.004556, allocations: 322.8 kB / 0.7883 GB, free: 9.578 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.004566, allocations: 0 / 0.7883 GB, free: 9.578 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.002e-05/0.004576, allocations: 4 kB / 0.7883 GB, free: 9.574 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.488e-05/0.004631, allocations: 8.859 kB / 0.7883 GB, free: 9.562 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.004633, allocations: 0.7188 kB / 0.7883 GB, free: 9.562 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.94e-05/0.004712, allocations: 47.28 kB / 0.7883 GB, free: 9.512 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.004726, allocations: 4 kB / 0.7883 GB, free: 9.508 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.004733, allocations: 4 kB / 0.7884 GB, free: 9.504 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.004749, allocations: 0 / 0.7884 GB, free: 9.504 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.302e-05/0.004802, allocations: 0.9062 kB / 0.7884 GB, free: 9.504 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.004809, allocations: 7.938 kB / 0.7884 GB, free: 9.496 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.063e-05/0.00483, allocations: 7.891 kB / 0.7884 GB, free: 9.488 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-06/0.004834, allocations: 0.9062 kB / 0.7884 GB, free: 9.488 MB / 0.698 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.671e-05/0.00492, allocations: 114.9 kB / 0.7885 GB, free: 9.367 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.309e-05/0.004933, allocations: 4 kB / 0.7885 GB, free: 9.363 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.519e-05/0.005029, allocations: 40.86 kB / 0.7885 GB, free: 9.316 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.005033, allocations: 5.328 kB / 0.7885 GB, free: 9.312 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.005041, allocations: 4 kB / 0.7885 GB, free: 9.309 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.005045, allocations: 3.984 kB / 0.7885 GB, free: 9.305 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.542e-05/0.005141, allocations: 98.02 kB / 0.7886 GB, free: 9.18 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.005144, allocations: 7.938 kB / 0.7886 GB, free: 9.172 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.263e-05/0.005167, allocations: 1.188 kB / 0.7886 GB, free: 9.172 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.005169, allocations: 0 / 0.7886 GB, free: 9.172 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.026e-06/0.005177, allocations: 4 kB / 0.7886 GB, free: 9.168 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.005182, allocations: 4.859 kB / 0.7886 GB, free: 9.164 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.005183, allocations: 0 / 0.7886 GB, free: 9.164 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.005283, allocations: 66.78 kB / 0.7887 GB, free: 9.082 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.905e-06/0.005291, allocations: 4 kB / 0.7887 GB, free: 9.078 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.287e-06/0.0053, allocations: 0 / 0.7887 GB, free: 9.078 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.104e-05/0.005311, allocations: 0 / 0.7887 GB, free: 9.078 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.005342, allocations: 3.984 kB / 0.7887 GB, free: 9.074 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.005347, allocations: 4.625 kB / 0.7887 GB, free: 9.07 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.037e-05/0.005388, allocations: 75.97 kB / 0.7888 GB, free: 8.996 MB / 0.698 GB Notification: Performance of sort global known variables: time 6e-08/0.005388, allocations: 0 / 0.7888 GB, free: 8.996 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002168/0.005605, allocations: 4.594 kB / 0.7888 GB, free: 8.992 MB / 0.698 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.0002057/0.00581, allocations: 112.2 kB / 0.7889 GB, free: 8.875 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 7.607e-05/0.005886, allocations: 11.98 kB / 0.7889 GB, free: 8.863 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.005888, allocations: 0.5312 kB / 0.7889 GB, free: 8.863 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.863e-05/0.005906, allocations: 5.281 kB / 0.7889 GB, free: 8.859 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001359/0.006042, allocations: 6.25 kB / 0.7889 GB, free: 8.855 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002339/0.006276, allocations: 88.78 kB / 0.789 GB, free: 8.742 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.632e-05/0.006332, allocations: 55.36 kB / 0.7891 GB, free: 8.668 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.233e-05/0.006345, allocations: 0 / 0.7891 GB, free: 8.668 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.006369, allocations: 13.25 kB / 0.7891 GB, free: 8.652 MB / 0.698 GB Notification: Performance of SimCode: time 3.5e-07/0.006369, allocations: 0 / 0.7891 GB, free: 8.652 MB / 0.698 GB Notification: Performance of Templates: time 0.002811/0.00918, allocations: 351.3 kB / 0.7894 GB, free: 8.32 MB / 0.698 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.368993474985473]