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.001043/0.001043, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.0009966/0.0009966, allocations: 166.2 kB / 24.87 MB, free: 8.891 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.9478/0.9478, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.727/1.727, allocations: 359 MB / 0.6063 GB, free: 10.9 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 9.82e-07/9.82e-07, allocations: 0 / 0.7884 GB, free: 11.07 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.461e-05/1.559e-05, allocations: 2.312 kB / 0.7884 GB, free: 11.07 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00101/0.001026, allocations: 0.6098 MB / 0.789 GB, free: 10.48 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0001574/0.001183, allocations: 40.84 kB / 0.789 GB, free: 10.44 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.212e-05/0.001195, allocations: 0 / 0.789 GB, free: 10.44 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.032e-05/0.001205, allocations: 5.938 kB / 0.789 GB, free: 10.43 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.479e-06/0.00121, allocations: 0 / 0.789 GB, free: 10.43 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001544/0.001364, allocations: 19.91 kB / 0.789 GB, free: 10.41 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 2.95e-05/0.001394, allocations: 4 kB / 0.789 GB, free: 10.41 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 2.743e-05/0.001421, allocations: 0 / 0.789 GB, free: 10.41 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 1.948e-05/0.001441, allocations: 4 kB / 0.789 GB, free: 10.41 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 1.393e-05/0.001455, allocations: 4.578 kB / 0.789 GB, free: 10.4 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 8.606e-06/0.001463, allocations: 0.9062 kB / 0.789 GB, free: 10.4 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.729e-05/0.001521, allocations: 11.94 kB / 0.789 GB, free: 10.39 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 7.894e-06/0.001528, allocations: 0 / 0.789 GB, free: 10.39 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.024e-05/0.001539, allocations: 9.109 kB / 0.789 GB, free: 10.38 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 5.705e-05/0.001596, allocations: 11.98 kB / 0.7891 GB, free: 10.37 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.001597, allocations: 0 / 0.7891 GB, free: 10.37 MB / 0.698 GB Notification: Performance of FrontEnd: time 4.11e-07/0.001598, allocations: 1.406 kB / 0.7891 GB, free: 10.37 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.645e-06/0.0016, allocations: 3.938 kB / 0.7891 GB, free: 10.37 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.0001744/0.001775, allocations: 336.4 kB / 0.7894 GB, free: 10 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.624e-05/0.001801, allocations: 13.09 kB / 0.7894 GB, free: 9.988 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.783e-05/0.001819, allocations: 0.9375 kB / 0.7894 GB, free: 9.988 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.581e-05/0.001865, allocations: 104.6 kB / 0.7895 GB, free: 9.859 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.136e-06/0.001873, allocations: 5.938 kB / 0.7895 GB, free: 9.855 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.41e-06/0.001878, allocations: 8.312 kB / 0.7895 GB, free: 9.848 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.7e-05/0.001925, allocations: 34.23 kB / 0.7895 GB, free: 9.809 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.478e-06/0.00193, allocations: 192 / 0.7895 GB, free: 9.809 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-06/0.001934, allocations: 1 kB / 0.7895 GB, free: 9.809 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.885e-06/0.001937, allocations: 4.375 kB / 0.7895 GB, free: 9.805 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.426e-05/0.001951, allocations: 5.594 kB / 0.7896 GB, free: 9.801 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.787e-05/0.002029, allocations: 93.27 kB / 0.7896 GB, free: 9.684 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.303e-05/0.002072, allocations: 39.02 kB / 0.7897 GB, free: 9.633 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/0.002085, allocations: 12.39 kB / 0.7897 GB, free: 9.617 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.889e-05/0.002164, allocations: 4.062 kB / 0.7897 GB, free: 9.613 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.002181, allocations: 38.2 kB / 0.7897 GB, free: 9.566 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.002182, allocations: 0 / 0.7897 GB, free: 9.566 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 8.188e-05/0.002264, allocations: 43.16 kB / 0.7898 GB, free: 9.52 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.00229, allocations: 51.41 kB / 0.7898 GB, free: 9.457 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.269e-05/0.002333, allocations: 142.2 kB / 0.79 GB, free: 9.305 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.835e-06/0.002341, allocations: 31.55 kB / 0.79 GB, free: 9.27 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.633e-05/0.002367, allocations: 126.9 kB / 0.7901 GB, free: 9.141 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.002383, allocations: 7.938 kB / 0.7901 GB, free: 9.133 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.029e-05/0.002403, allocations: 15.38 kB / 0.7901 GB, free: 9.109 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.002514, allocations: 0.4883 MB / 0.7906 GB, free: 8.609 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.472e-06/0.00252, allocations: 6.391 kB / 0.7906 GB, free: 8.605 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.149e-06/0.002525, allocations: 0 / 0.7906 GB, free: 8.605 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.803e-05/0.002553, allocations: 15.69 kB / 0.7906 GB, free: 8.586 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.002555, allocations: 0 / 0.7906 GB, free: 8.586 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.998e-05/0.002605, allocations: 41.59 kB / 0.7907 GB, free: 8.539 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.002616, allocations: 8.719 kB / 0.7907 GB, free: 8.531 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-06/0.002619, allocations: 0 / 0.7907 GB, free: 8.531 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.825e-06/0.002627, allocations: 4.516 kB / 0.7907 GB, free: 8.527 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.966e-05/0.002657, allocations: 5.656 kB / 0.7907 GB, free: 8.523 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-06/0.002658, allocations: 0 / 0.7907 GB, free: 8.523 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.166e-06/0.002667, allocations: 4 kB / 0.7907 GB, free: 8.52 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-06/0.002669, allocations: 0 / 0.7907 GB, free: 8.52 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 6.773e-05/0.002737, allocations: 165.1 kB / 0.7908 GB, free: 8.348 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.548e-06/0.002741, allocations: 0 / 0.7908 GB, free: 8.348 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.618e-05/0.002797, allocations: 46.16 kB / 0.7909 GB, free: 8.297 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.002799, allocations: 0 / 0.7909 GB, free: 8.297 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.0028, allocations: 3.938 kB / 0.7909 GB, free: 8.293 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.002802, allocations: 5.094 kB / 0.7909 GB, free: 8.289 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.142e-05/0.002853, allocations: 97.2 kB / 0.791 GB, free: 8.168 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.002854, allocations: 0 / 0.791 GB, free: 8.168 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.758e-06/0.002864, allocations: 5.359 kB / 0.791 GB, free: 8.164 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.002865, allocations: 4 kB / 0.791 GB, free: 8.16 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-06/0.002868, allocations: 0 / 0.791 GB, free: 8.16 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.002868, allocations: 0 / 0.791 GB, free: 8.16 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.002869, allocations: 1.75 kB / 0.791 GB, free: 8.16 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.136e-05/0.002921, allocations: 76.38 kB / 0.7911 GB, free: 8.062 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-06/0.002925, allocations: 4 kB / 0.7911 GB, free: 8.059 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.199e-06/0.00293, allocations: 0 / 0.7911 GB, free: 8.059 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.399e-06/0.002935, allocations: 0.8438 kB / 0.7911 GB, free: 8.059 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.636e-05/0.002951, allocations: 0 / 0.7911 GB, free: 8.059 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-06/0.002952, allocations: 1.594 kB / 0.7911 GB, free: 8.059 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.508e-05/0.002977, allocations: 123.2 kB / 0.7912 GB, free: 7.938 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.1e-08/0.002977, allocations: 0 / 0.7912 GB, free: 7.938 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001181/0.003096, allocations: 7.938 kB / 0.7912 GB, free: 7.93 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 8.531e-05/0.003181, allocations: 100.2 kB / 0.7913 GB, free: 7.824 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 4.972e-05/0.003231, allocations: 19.09 kB / 0.7913 GB, free: 7.805 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.82e-07/0.003231, allocations: 0 / 0.7913 GB, free: 7.805 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.207e-05/0.003243, allocations: 15.69 kB / 0.7913 GB, free: 7.785 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.667e-05/0.00333, allocations: 6.172 kB / 0.7913 GB, free: 7.781 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001177/0.003448, allocations: 89.95 kB / 0.7914 GB, free: 7.664 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.554e-05/0.003473, allocations: 55.36 kB / 0.7915 GB, free: 7.59 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.396e-06/0.003482, allocations: 0 / 0.7915 GB, free: 7.59 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.923e-05/0.003511, allocations: 78.62 kB / 0.7916 GB, free: 7.512 MB / 0.698 GB Notification: Performance of SimCode: time 4.51e-07/0.003511, allocations: 0 / 0.7916 GB, free: 7.512 MB / 0.698 GB Notification: Performance of Templates: time 0.001626/0.005138, allocations: 381.7 kB / 0.7919 GB, free: 7.152 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=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.7461113831959665]