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.0008993/0.0008993, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.0008865/0.0008865, allocations: 161 kB / 23.82 MB, free: 0.75 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.9449/0.9449, allocations: 177.2 MB / 204.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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 1.732/1.732, allocations: 359 MB / 0.6052 GB, free: 11.01 MB / 0.573 GB " [Timeout remaining time 178] 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.864e-06/1.864e-06, allocations: 0 / 0.7871 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.78e-05/2.967e-05, allocations: 5.656 kB / 0.7872 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001215/0.001245, allocations: 0.6053 MB / 0.7877 GB, free: 11.84 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002246/0.001469, allocations: 43.86 kB / 0.7878 GB, free: 11.8 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.553e-05/0.001485, allocations: 1.062 kB / 0.7878 GB, free: 11.8 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 1.728e-05/0.001502, allocations: 0 / 0.7878 GB, free: 11.8 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.935e-06/0.00151, allocations: 3.938 kB / 0.7878 GB, free: 11.79 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.001746, allocations: 16.62 kB / 0.7878 GB, free: 11.78 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 4.99e-05/0.001796, allocations: 4.594 kB / 0.7878 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.778e-05/0.001834, allocations: 0 / 0.7878 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 2.735e-05/0.001861, allocations: 1.469 kB / 0.7878 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 2.039e-05/0.001881, allocations: 4 kB / 0.7878 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.001894, allocations: 0 / 0.7878 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.472e-05/0.001979, allocations: 15.92 kB / 0.7878 GB, free: 11.75 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 9.517e-06/0.001989, allocations: 5.469 kB / 0.7878 GB, free: 11.75 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.592e-05/0.002005, allocations: 3.984 kB / 0.7878 GB, free: 11.75 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 9.277e-05/0.002097, allocations: 11.98 kB / 0.7879 GB, free: 11.73 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.0021, allocations: 0 / 0.7879 GB, free: 11.73 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.42e-07/0.002101, allocations: 1.594 kB / 0.7879 GB, free: 11.73 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.002106, allocations: 4 kB / 0.7879 GB, free: 11.73 MB / 0.7448 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.0002416/0.002347, allocations: 332.4 kB / 0.7882 GB, free: 11.37 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.002384, allocations: 8.031 kB / 0.7882 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.002422, allocations: 8.312 kB / 0.7882 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.328e-05/0.002476, allocations: 112.5 kB / 0.7883 GB, free: 11.22 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.002486, allocations: 4.375 kB / 0.7883 GB, free: 11.21 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.002494, allocations: 384 / 0.7883 GB, free: 11.21 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.367e-05/0.002578, allocations: 30.27 kB / 0.7883 GB, free: 11.18 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.331e-06/0.002584, allocations: 192 / 0.7883 GB, free: 11.18 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.002592, allocations: 384 / 0.7883 GB, free: 11.18 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.002599, allocations: 384 / 0.7883 GB, free: 11.18 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.755e-05/0.002626, allocations: 15.91 kB / 0.7883 GB, free: 11.16 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001094/0.002736, allocations: 113.5 kB / 0.7885 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.45e-05/0.00279, allocations: 35.56 kB / 0.7885 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.002809, allocations: 7.688 kB / 0.7885 GB, free: 10.96 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.002944, allocations: 8.766 kB / 0.7885 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.002965, allocations: 37.39 kB / 0.7885 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.002966, allocations: 1.375 kB / 0.7885 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0001223/0.003088, allocations: 37.7 kB / 0.7886 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.003117, allocations: 55.97 kB / 0.7886 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.793e-05/0.003155, allocations: 146.2 kB / 0.7888 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 8.666e-06/0.003163, allocations: 30.7 kB / 0.7888 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 2.77e-05/0.003191, allocations: 130.9 kB / 0.7889 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.00321, allocations: 8.234 kB / 0.7889 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.49e-05/0.003235, allocations: 20.12 kB / 0.789 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.654e-05/0.003331, allocations: 0.4883 MB / 0.7894 GB, free: 9.938 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.165e-05/0.003343, allocations: 0.7188 kB / 0.7894 GB, free: 9.938 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.217e-06/0.003352, allocations: 5.281 kB / 0.7894 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.312e-05/0.003385, allocations: 19.67 kB / 0.7895 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.003387, allocations: 0 / 0.7895 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.504e-05/0.003432, allocations: 34.23 kB / 0.7895 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.003444, allocations: 5.406 kB / 0.7895 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.003448, allocations: 3.938 kB / 0.7895 GB, free: 9.863 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.003459, allocations: 0 / 0.7895 GB, free: 9.863 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.611e-05/0.003515, allocations: 4 kB / 0.7895 GB, free: 9.859 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.003522, allocations: 6.203 kB / 0.7895 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.069e-05/0.003533, allocations: 3.938 kB / 0.7895 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.003539, allocations: 4 kB / 0.7895 GB, free: 9.848 MB / 0.7448 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 5.833e-05/0.003597, allocations: 156.6 kB / 0.7897 GB, free: 9.684 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-06/0.003602, allocations: 0 / 0.7897 GB, free: 9.684 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.476e-05/0.003686, allocations: 43.56 kB / 0.7897 GB, free: 9.637 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.003689, allocations: 0 / 0.7897 GB, free: 9.637 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.003692, allocations: 0 / 0.7897 GB, free: 9.637 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.003695, allocations: 4 kB / 0.7897 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.135e-05/0.003757, allocations: 112.6 kB / 0.7898 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.003758, allocations: 0 / 0.7898 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.576e-05/0.003774, allocations: 4 kB / 0.7898 GB, free: 9.484 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.003776, allocations: 5.5 kB / 0.7898 GB, free: 9.48 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.003782, allocations: 3.984 kB / 0.7898 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.003784, allocations: 0 / 0.7898 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.003785, allocations: 0 / 0.7898 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.554e-05/0.003841, allocations: 76.89 kB / 0.7899 GB, free: 9.379 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-06/0.003846, allocations: 4.516 kB / 0.7899 GB, free: 9.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.376e-06/0.003854, allocations: 1.406 kB / 0.7899 GB, free: 9.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.893e-06/0.003861, allocations: 8 kB / 0.7899 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.00389, allocations: 0 / 0.7899 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.003892, allocations: 0 / 0.7899 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.7e-05/0.003919, allocations: 123.8 kB / 0.79 GB, free: 9.246 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.003919, allocations: 0 / 0.79 GB, free: 9.246 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001199/0.004039, allocations: 5.969 kB / 0.79 GB, free: 9.242 MB / 0.7448 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.0001237/0.004163, allocations: 107.2 kB / 0.7901 GB, free: 9.129 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 7.62e-05/0.004239, allocations: 24.12 kB / 0.7902 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.004241, allocations: 0 / 0.7902 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.443e-05/0.004255, allocations: 12.72 kB / 0.7902 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.659e-05/0.004352, allocations: 1.891 kB / 0.7902 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001944/0.004546, allocations: 94.86 kB / 0.7903 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.365e-05/0.00458, allocations: 55.36 kB / 0.7903 GB, free: 8.891 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.068e-05/0.00459, allocations: 0.8438 kB / 0.7903 GB, free: 8.891 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.694e-05/0.004607, allocations: 8.5 kB / 0.7903 GB, free: 8.883 MB / 0.7448 GB Notification: Performance of SimCode: time 7.11e-07/0.004608, allocations: 0.9062 kB / 0.7903 GB, free: 8.883 MB / 0.7448 GB Notification: Performance of Templates: time 0.002092/0.0067, allocations: 371.4 kB / 0.7907 GB, free: 8.531 MB / 0.7448 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.756619131192565]