Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.031/5.031, allocations: 0.5623 GB / 0.5776 GB, free: 3.375 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002526/0.002526, allocations: 350.7 kB / 0.6446 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.224/4.224, allocations: 410.7 MB / 1.113 GB, free: 5.973 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001832/0.001832, allocations: 183.6 kB / 1.226 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0006914/0.0006916, allocations: 16 kB / 1.349 GB, free: 8.312 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7679/0.7686, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007425/0.7694, allocations: 318.6 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0002236/0.7696, allocations: 50.64 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.493e-05/0.7697, allocations: 2.688 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.055e-05/0.7697, allocations: 0 / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.074e-06/0.7697, allocations: 0 / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.7699, allocations: 11.94 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 4.084e-05/0.77, allocations: 4 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.77, allocations: 0 / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 1.508e-05/0.7701, allocations: 3.984 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 2.573e-05/0.7701, allocations: 4.766 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 9.137e-06/0.7701, allocations: 3.938 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.384e-05/0.7702, allocations: 4.625 kB / 1.462 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 8.606e-06/0.7702, allocations: 8 kB / 1.462 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.353e-05/0.7702, allocations: 26.64 kB / 1.462 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 5.754e-05/0.7703, allocations: 7.922 kB / 1.462 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.7703, allocations: 1.812 kB / 1.462 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7703, allocations: 4 kB / 1.462 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.207e-06/0.7703, allocations: 0 / 1.462 GB, free: 283.9 MB / 0.8542 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.0002436/0.7706, allocations: 303.4 kB / 1.462 GB, free: 283.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.7706, allocations: 16.19 kB / 1.462 GB, free: 283.5 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.69e-05/0.7707, allocations: 4 kB / 1.462 GB, free: 283.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.551e-05/0.7708, allocations: 167 kB / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.7708, allocations: 3.938 kB / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.7708, allocations: 0 / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.908e-05/0.7709, allocations: 33.7 kB / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.7709, allocations: 0 / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.188e-06/0.7709, allocations: 0 / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.7709, allocations: 0.8438 kB / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.133e-05/0.771, allocations: 4.562 kB / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001264/0.7711, allocations: 158.8 kB / 1.462 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 4.865e-05/0.7712, allocations: 23.58 kB / 1.462 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.25e-05/0.7712, allocations: 4.859 kB / 1.462 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001723/0.7714, allocations: 89.66 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.7714, allocations: 32.06 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=2): time 2.384e-06/0.7715, allocations: 1.359 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2): time 0.0001442/0.7716, allocations: 38.36 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.054e-05/0.7716, allocations: 55.39 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.534e-05/0.7717, allocations: 94.45 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.7717, allocations: 26.2 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 1.568e-05/0.7717, allocations: 82.27 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.7718, allocations: 3.906 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-06/0.7718, allocations: 0 / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.854e-05/0.7718, allocations: 310.8 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.324e-05/0.7719, allocations: 7.938 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.116e-05/0.7719, allocations: 1.062 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.55e-05/0.7719, allocations: 9.5 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.7719, allocations: 0 / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.766e-05/0.772, allocations: 45.58 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.772, allocations: 4 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.772, allocations: 0.5938 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.7721, allocations: 5.625 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.023e-05/0.7721, allocations: 0 / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.7722, allocations: 3.938 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.008e-05/0.7722, allocations: 6.109 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.7722, allocations: 0.6875 kB / 1.463 GB, free: 282.2 MB / 0.8542 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,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.839e-05/0.7723, allocations: 114.7 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.928e-06/0.7723, allocations: 3.953 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.674e-05/0.7724, allocations: 45.83 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.7724, allocations: 0 / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.7724, allocations: 5.297 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.262e-05/0.7725, allocations: 81.11 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.7725, allocations: 4 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.523e-05/0.7725, allocations: 0.6562 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.129e-05/0.7725, allocations: 0 / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.031e-05/0.7726, allocations: 126.8 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001062/0.7728, allocations: 212.3 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.676e-05/0.7728, allocations: 6.375 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 1.726e-05/0.7728, allocations: 75.28 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of Backend: time 7.52e-07/0.7728, allocations: 0 / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004303/0.7733, allocations: 89.36 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of SimCode: time 0.0002737/0.7736, allocations: 0.5366 MB / 1.465 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.002881/0.7765, allocations: 334.8 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB