Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 100.2 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009462/0.0009462, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.741/1.741, allocations: 251.9 MB / 0.51 GB, free: 4.844 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005478/0.0005478, allocations: 19.44 kB / 0.6241 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7029/0.7034, allocations: 106.3 MB / 0.728 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002128/0.7056, allocations: 1.228 MB / 0.7292 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0003711/0.706, allocations: 116.5 kB / 0.7293 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.738e-05/0.7061, allocations: 4 kB / 0.7293 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.684e-05/0.7061, allocations: 0 / 0.7293 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.396e-05/0.7062, allocations: 3.984 kB / 0.7293 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00023/0.7064, allocations: 15.98 kB / 0.7293 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.225e-05/0.7065, allocations: 27.84 kB / 0.7293 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.7066, allocations: 4 kB / 0.7293 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.501e-05/0.7067, allocations: 11.92 kB / 0.7293 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.683e-05/0.7067, allocations: 11.94 kB / 0.7294 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.7067, allocations: 0 / 0.7294 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.425e-05/0.7068, allocations: 19.98 kB / 0.7294 GB, free: 9.996 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.231e-05/0.7068, allocations: 3.984 kB / 0.7294 GB, free: 9.992 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.057e-05/0.7069, allocations: 25.7 kB / 0.7294 GB, free: 9.961 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.175e-05/0.707, allocations: 27.95 kB / 0.7294 GB, free: 9.934 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.707, allocations: 0 / 0.7294 GB, free: 9.934 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.134e-06/0.707, allocations: 0 / 0.7294 GB, free: 9.934 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.707, allocations: 0 / 0.7294 GB, free: 9.934 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005299/0.7076, allocations: 352.4 kB / 0.7298 GB, free: 9.547 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.7076, allocations: 8.031 kB / 0.7298 GB, free: 9.539 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.701e-05/0.7076, allocations: 0 / 0.7298 GB, free: 9.539 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.7078, allocations: 178.8 kB / 0.7299 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.7079, allocations: 0 / 0.7299 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.7079, allocations: 0 / 0.7299 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.7081, allocations: 65.66 kB / 0.73 GB, free: 9.254 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.7081, allocations: 0 / 0.73 GB, free: 9.254 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.7082, allocations: 4 kB / 0.73 GB, free: 9.25 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.7082, allocations: 4 kB / 0.73 GB, free: 9.246 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002526/0.7084, allocations: 47.95 kB / 0.7301 GB, free: 9.199 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004376/0.7089, allocations: 268.9 kB / 0.7303 GB, free: 8.887 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004002/0.7093, allocations: 58.53 kB / 0.7304 GB, free: 8.82 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.7094, allocations: 85.25 kB / 0.7305 GB, free: 8.719 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.7095, allocations: 38.55 kB / 0.7305 GB, free: 8.672 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.7095, allocations: 4 kB / 0.7305 GB, free: 8.668 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.000501/0.71, allocations: 105.6 kB / 0.7306 GB, free: 8.559 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.7101, allocations: 51.41 kB / 0.7306 GB, free: 8.496 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.544e-05/0.7102, allocations: 109.8 kB / 0.7307 GB, free: 8.379 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.7102, allocations: 25.7 kB / 0.7308 GB, free: 8.348 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.617e-05/0.7103, allocations: 92.03 kB / 0.7309 GB, free: 8.254 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.7103, allocations: 7.906 kB / 0.7309 GB, free: 8.246 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/0.7103, allocations: 0 / 0.7309 GB, free: 8.246 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.7105, allocations: 318.8 kB / 0.7312 GB, free: 7.926 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.7106, allocations: 27.98 kB / 0.7312 GB, free: 7.898 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.7107, allocations: 27.97 kB / 0.7312 GB, free: 7.871 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.7108, allocations: 19.98 kB / 0.7312 GB, free: 7.852 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.7109, allocations: 0 / 0.7312 GB, free: 7.852 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003049/0.7112, allocations: 89.59 kB / 0.7313 GB, free: 7.758 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.7112, allocations: 4 kB / 0.7313 GB, free: 7.754 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.7112, allocations: 0 / 0.7313 GB, free: 7.754 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.7112, allocations: 0 / 0.7313 GB, free: 7.754 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.7113, allocations: 19.92 kB / 0.7314 GB, free: 7.734 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.7114, allocations: 4 kB / 0.7314 GB, free: 7.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.873e-05/0.7115, allocations: 15.98 kB / 0.7314 GB, free: 7.715 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.7115, allocations: 0 / 0.7314 GB, free: 7.715 MB / 0.545 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 (fac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.098e-05/0.7116, allocations: 113.8 kB / 0.7315 GB, free: 7.594 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.7116, allocations: 4 kB / 0.7315 GB, free: 7.59 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003494/0.712, allocations: 93.08 kB / 0.7316 GB, free: 7.488 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.712, allocations: 4 kB / 0.7316 GB, free: 7.484 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.712, allocations: 0 / 0.7316 GB, free: 7.484 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.712, allocations: 3.984 kB / 0.7316 GB, free: 7.48 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/0.7122, allocations: 165.6 kB / 0.7317 GB, free: 7.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.7123, allocations: 4 kB / 0.7317 GB, free: 7.266 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.845e-05/0.7124, allocations: 11.98 kB / 0.7318 GB, free: 7.254 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.7124, allocations: 4 kB / 0.7318 GB, free: 7.25 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.7124, allocations: 0 / 0.7318 GB, free: 7.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7124, allocations: 0 / 0.7318 GB, free: 7.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.7124, allocations: 7.984 kB / 0.7318 GB, free: 7.242 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003698/0.7128, allocations: 183.9 kB / 0.7319 GB, free: 7.047 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.7129, allocations: 77.11 kB / 0.732 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.7129, allocations: 0 / 0.732 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.713, allocations: 19.92 kB / 0.732 GB, free: 6.934 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.318e-05/0.7131, allocations: 4.031 kB / 0.732 GB, free: 6.93 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.7131, allocations: 11.92 kB / 0.732 GB, free: 6.918 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.519e-05/0.7132, allocations: 79.28 kB / 0.7321 GB, free: 6.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7132, allocations: 0 / 0.7321 GB, free: 6.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003372/0.7135, allocations: 12 kB / 0.7321 GB, free: 6.828 MB / 0.545 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001946/0.7137, allocations: 107.2 kB / 0.7322 GB, free: 6.711 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003108/0.714, allocations: 51.95 kB / 0.7323 GB, free: 6.66 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.7141, allocations: 4 kB / 0.7323 GB, free: 6.656 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.7142, allocations: 27.98 kB / 0.7323 GB, free: 6.629 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.7145, allocations: 7.953 kB / 0.7323 GB, free: 6.621 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003495/0.7148, allocations: 124.6 kB / 0.7324 GB, free: 6.477 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.7152, allocations: 0.6848 MB / 0.7331 GB, free: 5.766 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.995e-05/0.7152, allocations: 0 / 0.7331 GB, free: 5.766 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.163e-05/0.7153, allocations: 11.44 kB / 0.7331 GB, free: 5.754 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.7153, allocations: 0 / 0.7331 GB, free: 5.754 MB / 0.545 GB Notification: Performance of Templates: time 0.00371/0.719, allocations: 0.5948 MB / 0.7337 GB, free: 5.164 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: