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.001122/0.001122, 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.001176/0.001176, allocations: 165 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 1.015/1.015, allocations: 177.1 MB / 204.2 MB, free: 5.426 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.808/1.808, allocations: 359 MB / 0.6052 GB, free: 11 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.643e-06/1.643e-06, allocations: 0.5469 kB / 0.7871 GB, free: 12.45 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.711e-05/1.876e-05, allocations: 4.984 kB / 0.7872 GB, free: 12.45 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001012/0.001031, allocations: 0.6105 MB / 0.7877 GB, free: 11.85 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002022/0.001233, allocations: 39.88 kB / 0.7878 GB, free: 11.81 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.377e-05/0.001247, allocations: 0 / 0.7878 GB, free: 11.81 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 1.594e-05/0.001263, allocations: 0 / 0.7878 GB, free: 11.81 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.001269, allocations: 4.469 kB / 0.7878 GB, free: 11.81 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002056/0.001475, allocations: 7.984 kB / 0.7878 GB, free: 11.8 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 4.334e-05/0.001518, allocations: 12.77 kB / 0.7878 GB, free: 11.79 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.281e-05/0.001551, allocations: 0 / 0.7878 GB, free: 11.79 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 2.205e-05/0.001573, allocations: 0.6875 kB / 0.7878 GB, free: 11.79 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 1.843e-05/0.001592, allocations: 7.938 kB / 0.7878 GB, free: 11.78 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.001603, allocations: 1.156 kB / 0.7878 GB, free: 11.78 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.677e-05/0.00168, allocations: 11.92 kB / 0.7878 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 8.326e-06/0.001688, allocations: 0 / 0.7878 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.397e-05/0.001702, allocations: 5.094 kB / 0.7878 GB, free: 11.77 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 7.889e-05/0.001781, allocations: 11.97 kB / 0.7878 GB, free: 11.75 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.001783, allocations: 0 / 0.7878 GB, free: 11.75 MB / 0.7448 GB Notification: Performance of FrontEnd: time 4.4e-07/0.001783, allocations: 0.625 kB / 0.7878 GB, free: 11.75 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.001787, allocations: 2.719 kB / 0.7878 GB, free: 11.75 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.0002093/0.001996, allocations: 344.4 kB / 0.7882 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.002029, allocations: 8.031 kB / 0.7882 GB, free: 11.37 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.937e-05/0.002058, allocations: 0.9375 kB / 0.7882 GB, free: 11.37 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.878e-05/0.002107, allocations: 112.6 kB / 0.7883 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.002116, allocations: 384 / 0.7883 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.002124, allocations: 384 / 0.7883 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.511e-05/0.002199, allocations: 39.75 kB / 0.7883 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.002205, allocations: 192 / 0.7883 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.002213, allocations: 384 / 0.7883 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.002218, allocations: 384 / 0.7883 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.415e-05/0.002242, allocations: 12.52 kB / 0.7883 GB, free: 11.18 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.894e-05/0.002341, allocations: 108.6 kB / 0.7884 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.957e-05/0.002391, allocations: 31.84 kB / 0.7885 GB, free: 11 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.682e-05/0.002408, allocations: 12.53 kB / 0.7885 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001313/0.002539, allocations: 8.047 kB / 0.7885 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.002566, allocations: 39.2 kB / 0.7885 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.002567, allocations: 3.938 kB / 0.7885 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0001189/0.002686, allocations: 41.69 kB / 0.7886 GB, free: 10.88 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.002714, allocations: 55.34 kB / 0.7886 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.349e-05/0.002757, allocations: 143.8 kB / 0.7888 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.708e-06/0.002767, allocations: 25.7 kB / 0.7888 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 2.635e-05/0.002793, allocations: 126.9 kB / 0.7889 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.002813, allocations: 12.23 kB / 0.7889 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.308e-05/0.002836, allocations: 17.94 kB / 0.7889 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.002947, allocations: 0.4922 MB / 0.7894 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-06/0.002957, allocations: 0 / 0.7894 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.587e-06/0.002965, allocations: 7.984 kB / 0.7894 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.99e-05/0.002995, allocations: 11.69 kB / 0.7894 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.002998, allocations: 4 kB / 0.7894 GB, free: 9.93 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.353e-05/0.003042, allocations: 38.23 kB / 0.7895 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.003053, allocations: 10.38 kB / 0.7895 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.003058, allocations: 0 / 0.7895 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.003069, allocations: 0.5312 kB / 0.7895 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.549e-05/0.003124, allocations: 9.609 kB / 0.7895 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.003129, allocations: 0 / 0.7895 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.08e-05/0.00314, allocations: 3.938 kB / 0.7895 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.003145, allocations: 4 kB / 0.7895 GB, free: 9.863 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.418e-05/0.003199, allocations: 153.2 kB / 0.7897 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.687e-06/0.003203, allocations: 0.6875 kB / 0.7897 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.612e-05/0.003269, allocations: 44.84 kB / 0.7897 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.00327, allocations: 0.6875 kB / 0.7897 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.003273, allocations: 0 / 0.7897 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.003275, allocations: 1.031 kB / 0.7897 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.33e-05/0.003328, allocations: 112.6 kB / 0.7898 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.003329, allocations: 1.375 kB / 0.7898 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.123e-05/0.00334, allocations: 11.92 kB / 0.7898 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.003342, allocations: 0 / 0.7898 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.003348, allocations: 4 kB / 0.7898 GB, free: 9.492 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.003349, allocations: 1.062 kB / 0.7898 GB, free: 9.492 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.003349, allocations: 0 / 0.7898 GB, free: 9.492 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.188e-05/0.003401, allocations: 77 kB / 0.7899 GB, free: 9.395 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.787e-06/0.003405, allocations: 0 / 0.7899 GB, free: 9.395 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.093e-06/0.003412, allocations: 4.906 kB / 0.7899 GB, free: 9.391 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.39e-06/0.003417, allocations: 4 kB / 0.7899 GB, free: 9.387 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.38e-05/0.003441, allocations: 4 kB / 0.7899 GB, free: 9.383 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-06/0.003443, allocations: 0.8438 kB / 0.7899 GB, free: 9.383 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.16e-05/0.003474, allocations: 119.2 kB / 0.79 GB, free: 9.266 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.003474, allocations: 1.594 kB / 0.79 GB, free: 9.266 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001181/0.003592, allocations: 4 kB / 0.79 GB, free: 9.262 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 9.582e-05/0.003688, allocations: 108.1 kB / 0.7901 GB, free: 9.148 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 5.881e-05/0.003747, allocations: 19.62 kB / 0.7902 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.003748, allocations: 2.125 kB / 0.7902 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.324e-05/0.003762, allocations: 15.69 kB / 0.7902 GB, free: 9.105 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.784e-05/0.003849, allocations: 3.984 kB / 0.7902 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001636/0.004013, allocations: 85.97 kB / 0.7903 GB, free: 8.988 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.674e-05/0.00404, allocations: 51.36 kB / 0.7903 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.002e-05/0.00405, allocations: 10.22 kB / 0.7903 GB, free: 8.91 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.68e-05/0.004067, allocations: 12.48 kB / 0.7903 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of SimCode: time 2.41e-07/0.004067, allocations: 0 / 0.7903 GB, free: 8.898 MB / 0.7448 GB Notification: Performance of Templates: time 0.001668/0.005735, allocations: 355.6 kB / 0.7907 GB, free: 8.562 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: 5.010841159150004]