Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Utilities.Math.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 IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/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) Running command: translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001422/0.001427, allocations: 186.7 kB / 15.76 MB, free: 5.996 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.7358/0.7358, allocations: 82.93 MB / 99.42 MB, free: 3.281 MB / 74.72 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.255/2.255, allocations: 205.4 MB / 325.4 MB, free: 3.254 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009988/0.0009986, allocations: 90.75 kB / 393.6 MB, free: 15.03 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005914/0.0005917, allocations: 12 kB / 471.5 MB, free: 66.56 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09335, allocations: 67.46 MB / 0.5263 GB, free: 15.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.00191/0.0953, allocations: 1.212 MB / 0.5275 GB, free: 13.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003252/0.09565, allocations: 113.4 kB / 0.5276 GB, free: 13.73 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.997e-05/0.0957, allocations: 0 / 0.5276 GB, free: 13.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.751e-05/0.09573, allocations: 11.86 kB / 0.5277 GB, free: 13.72 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.924e-05/0.09578, allocations: 0 / 0.5277 GB, free: 13.72 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001709/0.09596, allocations: 15.98 kB / 0.5277 GB, free: 13.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.396e-05/0.09603, allocations: 15.98 kB / 0.5277 GB, free: 13.69 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.664e-05/0.09613, allocations: 15.98 kB / 0.5277 GB, free: 13.68 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.712e-05/0.09618, allocations: 7.938 kB / 0.5277 GB, free: 13.67 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.897e-05/0.09624, allocations: 19.91 kB / 0.5277 GB, free: 13.65 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.09627, allocations: 0 / 0.5277 GB, free: 13.65 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.325e-05/0.09633, allocations: 7.984 kB / 0.5277 GB, free: 13.64 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.372e-05/0.09635, allocations: 11.94 kB / 0.5277 GB, free: 13.63 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.188e-05/0.0964, allocations: 25.7 kB / 0.5278 GB, free: 13.6 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.872e-05/0.09648, allocations: 23.97 kB / 0.5278 GB, free: 13.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.373e-06/0.0965, allocations: 0 / 0.5278 GB, free: 13.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.957e-06/0.09651, allocations: 0 / 0.5278 GB, free: 13.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.889e-06/0.09653, allocations: 0 / 0.5278 GB, free: 13.57 MB / 378.7 MB 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.00049/0.09704, allocations: 347.5 kB / 0.5281 GB, free: 13.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.09709, allocations: 16.02 kB / 0.5281 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.812e-05/0.09713, allocations: 0 / 0.5281 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.09728, allocations: 163.1 kB / 0.5283 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.09732, allocations: 8 kB / 0.5283 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.09734, allocations: 0 / 0.5283 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.09758, allocations: 69.61 kB / 0.5284 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.09761, allocations: 3.984 kB / 0.5284 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.09763, allocations: 3.953 kB / 0.5284 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.447e-06/0.09764, allocations: 0 / 0.5284 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002419/0.09789, allocations: 55.95 kB / 0.5284 GB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004216/0.09833, allocations: 264.9 kB / 0.5287 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/0.09873, allocations: 66.47 kB / 0.5287 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001331/0.09888, allocations: 85.17 kB / 0.5288 GB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.09893, allocations: 34.52 kB / 0.5289 GB, free: 12.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.049e-06/0.09894, allocations: 0 / 0.5289 GB, free: 12.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004785/0.09942, allocations: 109.7 kB / 0.529 GB, free: 12.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.09949, allocations: 59.34 kB / 0.529 GB, free: 12.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.708e-05/0.09959, allocations: 101.8 kB / 0.5291 GB, free: 12.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.09963, allocations: 25.7 kB / 0.5291 GB, free: 11.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.09969, allocations: 80.14 kB / 0.5292 GB, free: 11.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.09973, allocations: 11.84 kB / 0.5292 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-06/0.09975, allocations: 4 kB / 0.5292 GB, free: 11.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.09991, allocations: 314.8 kB / 0.5295 GB, free: 11.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.1, allocations: 27.97 kB / 0.5296 GB, free: 11.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.1002, allocations: 19.98 kB / 0.5296 GB, free: 11.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.1003, allocations: 31.97 kB / 0.5296 GB, free: 11.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.169e-06/0.1003, allocations: 0 / 0.5296 GB, free: 11.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000314/0.1006, allocations: 85.56 kB / 0.5297 GB, free: 11.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1007, allocations: 7.953 kB / 0.5297 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.118e-06/0.1007, allocations: 0 / 0.5297 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.1007, allocations: 4 kB / 0.5297 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.1008, allocations: 19.92 kB / 0.5297 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.594e-06/0.1009, allocations: 7.875 kB / 0.5297 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.587e-05/0.1009, allocations: 7.984 kB / 0.5297 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.101, allocations: 4 kB / 0.5297 GB, free: 11.34 MB / 378.7 MB 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 0.0001007/0.1011, allocations: 109.8 kB / 0.5298 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.1011, allocations: 8.516 kB / 0.5299 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003374/0.1015, allocations: 89.09 kB / 0.5299 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.862e-06/0.1015, allocations: 4.031 kB / 0.5299 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.217e-06/0.1015, allocations: 4 kB / 0.5299 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1015, allocations: 0 / 0.5299 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.1018, allocations: 165.7 kB / 0.5301 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.991e-06/0.1018, allocations: 0 / 0.5301 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.1019, allocations: 15.98 kB / 0.5301 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.078e-06/0.1019, allocations: 0 / 0.5301 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.189e-06/0.1019, allocations: 3.938 kB / 0.5301 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.576e-06/0.102, allocations: 3.953 kB / 0.5301 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.591e-06/0.102, allocations: 0 / 0.5301 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003591/0.1023, allocations: 183.5 kB / 0.5303 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.502e-05/0.1024, allocations: 81.02 kB / 0.5304 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.1024, allocations: 0 / 0.5304 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.1026, allocations: 15.98 kB / 0.5304 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.1026, allocations: 11.95 kB / 0.5304 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.242e-06/0.1027, allocations: 4 kB / 0.5304 GB, free: 10.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.785e-05/0.1027, allocations: 79.27 kB / 0.5305 GB, free: 10.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.28e-07/0.1027, allocations: 0 / 0.5305 GB, free: 10.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003078/0.1031, allocations: 8 kB / 0.5305 GB, free: 10.47 MB / 378.7 MB 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.0001622/0.1032, allocations: 103.2 kB / 0.5306 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002861/0.1035, allocations: 59.89 kB / 0.5306 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.652e-06/0.1035, allocations: 0 / 0.5306 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.1037, allocations: 31.97 kB / 0.5307 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.1039, allocations: 0 / 0.5307 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003314/0.1043, allocations: 120.6 kB / 0.5308 GB, free: 10.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.1046, allocations: 0.6848 MB / 0.5315 GB, free: 9.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.521e-05/0.1047, allocations: 7.984 kB / 0.5315 GB, free: 9.402 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.1047, allocations: 7.438 kB / 0.5315 GB, free: 9.395 MB / 378.7 MB Notification: Performance of SimCode: time 1.314e-06/0.1047, allocations: 0 / 0.5315 GB, free: 9.395 MB / 378.7 MB Notification: Performance of Templates: time 0.003049/0.1078, allocations: 0.5993 MB / 0.5321 GB, free: 8.801 MB / 378.7 MB