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.000986/0.000986, allocations: 71.75 kB / 20.97 MB, free: 3.57 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.0009629/0.0009629, allocations: 165 kB / 24.27 MB, free: 276 kB / 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.9751/0.9751, allocations: 177.1 MB / 204.6 MB, free: 5.641 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.756/1.756, allocations: 359 MB / 0.6055 GB, free: 11.02 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 2.014e-06/2.014e-06, allocations: 0 / 0.7871 GB, free: 12.76 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.616e-05/2.817e-05, allocations: 7.25 kB / 0.7871 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001667/0.001695, allocations: 0.5972 MB / 0.7877 GB, free: 12.17 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002579/0.001953, allocations: 40.66 kB / 0.7878 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.426e-05/0.001977, allocations: 4 kB / 0.7878 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 1.812e-05/0.001996, allocations: 0.9375 kB / 0.7878 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.516e-06/0.002004, allocations: 0 / 0.7878 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.002282, allocations: 15.86 kB / 0.7878 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 6.254e-05/0.002345, allocations: 8.641 kB / 0.7878 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.373e-05/0.002389, allocations: 4 kB / 0.7878 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 3.123e-05/0.00242, allocations: 0.6562 kB / 0.7878 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 2.655e-05/0.002446, allocations: 4.797 kB / 0.7878 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.561e-05/0.002462, allocations: 0 / 0.7878 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 9.119e-05/0.002553, allocations: 7.938 kB / 0.7878 GB, free: 12.09 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.565e-05/0.002569, allocations: 9.031 kB / 0.7878 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.644e-05/0.002585, allocations: 0 / 0.7878 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.002691, allocations: 12.91 kB / 0.7878 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.002693, allocations: 0 / 0.7878 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.272e-06/0.002695, allocations: 0 / 0.7878 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.002699, allocations: 0.7188 kB / 0.7878 GB, free: 12.07 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.0003213/0.003021, allocations: 344.4 kB / 0.7882 GB, free: 11.7 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.003068, allocations: 9.562 kB / 0.7882 GB, free: 11.69 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.3e-05/0.003111, allocations: 0.9375 kB / 0.7882 GB, free: 11.69 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.365e-05/0.003194, allocations: 108.6 kB / 0.7883 GB, free: 11.55 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.003209, allocations: 4.375 kB / 0.7883 GB, free: 11.55 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.003224, allocations: 5.594 kB / 0.7883 GB, free: 11.55 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.003337, allocations: 42.19 kB / 0.7883 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.003347, allocations: 192 / 0.7883 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.003357, allocations: 0.875 kB / 0.7883 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.003367, allocations: 3.219 kB / 0.7883 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.427e-05/0.003402, allocations: 7.938 kB / 0.7883 GB, free: 11.49 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001364/0.003538, allocations: 104.6 kB / 0.7884 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.006e-05/0.003608, allocations: 39.02 kB / 0.7885 GB, free: 11.3 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.182e-05/0.00363, allocations: 11.75 kB / 0.7885 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001545/0.003784, allocations: 4 kB / 0.7885 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.003815, allocations: 33.39 kB / 0.7885 GB, free: 11.24 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 1.603e-06/0.003816, allocations: 1.375 kB / 0.7885 GB, free: 11.24 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0001657/0.003982, allocations: 45.69 kB / 0.7886 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.00402, allocations: 52 kB / 0.7886 GB, free: 11.13 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.738e-05/0.004078, allocations: 142.2 kB / 0.7888 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.00409, allocations: 26.42 kB / 0.7888 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.695e-05/0.004127, allocations: 126.9 kB / 0.7889 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.802e-05/0.004155, allocations: 12.7 kB / 0.7889 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.692e-05/0.004192, allocations: 25 kB / 0.7889 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.004342, allocations: 0.4883 MB / 0.7894 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.004357, allocations: 4 kB / 0.7894 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.466e-06/0.004365, allocations: 0 / 0.7894 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.534e-05/0.004411, allocations: 12.31 kB / 0.7894 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.004413, allocations: 0.6875 kB / 0.7894 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.076e-05/0.004484, allocations: 42.38 kB / 0.7895 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.004499, allocations: 8 kB / 0.7895 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.004505, allocations: 0.9062 kB / 0.7895 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.004519, allocations: 0 / 0.7895 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.321e-05/0.004582, allocations: 7.938 kB / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.004588, allocations: 1.375 kB / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.69e-05/0.004605, allocations: 3.938 kB / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.004612, allocations: 0 / 0.7895 GB, free: 10.19 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 8.751e-05/0.004699, allocations: 158.4 kB / 0.7896 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.248e-06/0.004708, allocations: 0 / 0.7896 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.004817, allocations: 44.84 kB / 0.7897 GB, free: 9.973 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.00482, allocations: 0 / 0.7897 GB, free: 9.973 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.004825, allocations: 2.25 kB / 0.7897 GB, free: 9.973 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.004828, allocations: 3.938 kB / 0.7897 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.823e-05/0.004917, allocations: 116.6 kB / 0.7898 GB, free: 9.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.004918, allocations: 0 / 0.7898 GB, free: 9.82 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.19e-05/0.00495, allocations: 8 kB / 0.7898 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.004952, allocations: 0 / 0.7898 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.004961, allocations: 6.078 kB / 0.7898 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.004962, allocations: 0 / 0.7898 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.004965, allocations: 7.938 kB / 0.7898 GB, free: 9.801 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.005067, allocations: 76.38 kB / 0.7899 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.721e-06/0.005073, allocations: 0 / 0.7899 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.005086, allocations: 4.5 kB / 0.7899 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.092e-05/0.005097, allocations: 0 / 0.7899 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/0.005129, allocations: 4.531 kB / 0.7899 GB, free: 9.695 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.005133, allocations: 1.906 kB / 0.7899 GB, free: 9.695 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.022e-05/0.005173, allocations: 119.2 kB / 0.79 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.005173, allocations: 0 / 0.79 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002094/0.005383, allocations: 7.984 kB / 0.79 GB, free: 9.57 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.0001525/0.005535, allocations: 105.7 kB / 0.7901 GB, free: 9.461 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.812e-05/0.005633, allocations: 15.62 kB / 0.7901 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.005635, allocations: 0 / 0.7901 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.788e-05/0.005663, allocations: 19.67 kB / 0.7902 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001532/0.005816, allocations: 5.891 kB / 0.7902 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002696/0.006086, allocations: 86.5 kB / 0.7903 GB, free: 9.301 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.382e-05/0.00613, allocations: 56.5 kB / 0.7903 GB, free: 9.227 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.731e-05/0.006147, allocations: 4 kB / 0.7903 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.566e-05/0.006173, allocations: 12.5 kB / 0.7903 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of SimCode: time 7.71e-07/0.006174, allocations: 0.5 kB / 0.7903 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of Templates: time 0.002709/0.008882, allocations: 350.4 kB / 0.7907 GB, free: 8.883 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.976543484954163]