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.000964/0.000964, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009156/0.0009158, allocations: 168.7 kB / 15.95 MB, free: 204 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.763/1.763, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.542/1.542, allocations: 252 MB / 0.5102 GB, free: 4.812 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.0006502/0.0006504, allocations: 12 kB / 0.6243 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5725/0.5731, allocations: 106.3 MB / 0.7281 GB, free: 11.44 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.0016/0.5748, allocations: 1.232 MB / 0.7293 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.000243/0.575, allocations: 116.5 kB / 0.7294 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.508e-05/0.5751, allocations: 4 kB / 0.7294 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.198e-05/0.5751, allocations: 3.938 kB / 0.7294 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.082e-05/0.5751, allocations: 0 / 0.7294 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 9.845e-05/0.5752, allocations: 11.98 kB / 0.7295 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 4.142e-05/0.5753, allocations: 27.92 kB / 0.7295 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.758e-05/0.5753, allocations: 11.98 kB / 0.7295 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.039e-05/0.5754, allocations: 15.92 kB / 0.7295 GB, free: 10 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.916e-05/0.5754, allocations: 11.98 kB / 0.7295 GB, free: 9.992 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.5754, allocations: 0 / 0.7295 GB, free: 9.992 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 3.452e-05/0.5755, allocations: 4 kB / 0.7295 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.272e-05/0.5755, allocations: 19.86 kB / 0.7295 GB, free: 9.969 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.791e-05/0.5755, allocations: 25.7 kB / 0.7296 GB, free: 9.938 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 4.766e-05/0.5756, allocations: 23.95 kB / 0.7296 GB, free: 9.914 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.5756, allocations: 4 kB / 0.7296 GB, free: 9.91 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.002e-06/0.5756, allocations: 0 / 0.7296 GB, free: 9.91 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.615e-06/0.5756, allocations: 4 kB / 0.7296 GB, free: 9.906 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.0004266/0.576, allocations: 344.5 kB / 0.7299 GB, free: 9.527 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.576, allocations: 12.03 kB / 0.7299 GB, free: 9.516 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.41e-05/0.5761, allocations: 0 / 0.7299 GB, free: 9.516 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.5762, allocations: 174.9 kB / 0.7301 GB, free: 9.305 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.5763, allocations: 4 kB / 0.7301 GB, free: 9.301 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-06/0.5763, allocations: 4 kB / 0.7301 GB, free: 9.297 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.5765, allocations: 65.61 kB / 0.7302 GB, free: 9.227 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.5765, allocations: 0 / 0.7302 GB, free: 9.227 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.5765, allocations: 3.984 kB / 0.7302 GB, free: 9.223 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.5765, allocations: 0 / 0.7302 GB, free: 9.223 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.5767, allocations: 51.95 kB / 0.7302 GB, free: 9.172 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003832/0.5771, allocations: 268.9 kB / 0.7305 GB, free: 8.859 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.5774, allocations: 66.47 kB / 0.7305 GB, free: 8.785 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.557e-05/0.5775, allocations: 28.91 kB / 0.7306 GB, free: 8.754 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001692/0.5776, allocations: 81.11 kB / 0.7306 GB, free: 8.656 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.5777, allocations: 38.55 kB / 0.7307 GB, free: 8.609 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.5777, allocations: 0 / 0.7307 GB, free: 8.609 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.000322/0.578, allocations: 101.6 kB / 0.7308 GB, free: 8.504 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.5781, allocations: 59.34 kB / 0.7308 GB, free: 8.434 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.066e-05/0.5781, allocations: 105.8 kB / 0.7309 GB, free: 8.32 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.5781, allocations: 29.7 kB / 0.731 GB, free: 8.285 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.107e-05/0.5782, allocations: 84.05 kB / 0.731 GB, free: 8.199 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.5782, allocations: 11.91 kB / 0.7311 GB, free: 8.188 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.71e-06/0.5782, allocations: 0 / 0.7311 GB, free: 8.188 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.5784, allocations: 322.7 kB / 0.7314 GB, free: 7.863 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.73e-05/0.5784, allocations: 23.98 kB / 0.7314 GB, free: 7.84 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.655e-05/0.5785, allocations: 31.98 kB / 0.7314 GB, free: 7.809 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.872e-05/0.5786, allocations: 23.97 kB / 0.7314 GB, free: 7.785 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.5786, allocations: 0 / 0.7314 GB, free: 7.785 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002047/0.5788, allocations: 85.66 kB / 0.7315 GB, free: 7.695 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.5789, allocations: 5.875 kB / 0.7315 GB, free: 7.691 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-06/0.5789, allocations: 0 / 0.7315 GB, free: 7.691 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.777e-06/0.5789, allocations: 0 / 0.7315 GB, free: 7.691 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.558e-05/0.579, allocations: 19.92 kB / 0.7316 GB, free: 7.672 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/0.579, allocations: 0 / 0.7316 GB, free: 7.672 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.262e-05/0.579, allocations: 11.98 kB / 0.7316 GB, free: 7.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-06/0.579, allocations: 7.953 kB / 0.7316 GB, free: 7.652 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 7.458e-05/0.5791, allocations: 109.8 kB / 0.7317 GB, free: 7.535 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.388e-05/0.5792, allocations: 4 kB / 0.7317 GB, free: 7.531 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002259/0.5794, allocations: 93.14 kB / 0.7318 GB, free: 7.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.5794, allocations: 0.5625 kB / 0.7318 GB, free: 7.43 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.5794, allocations: 4 kB / 0.7318 GB, free: 7.426 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-06/0.5794, allocations: 0 / 0.7318 GB, free: 7.426 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.5796, allocations: 169.5 kB / 0.7319 GB, free: 7.211 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.5796, allocations: 0 / 0.7319 GB, free: 7.211 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.155e-05/0.5797, allocations: 15.98 kB / 0.7319 GB, free: 7.195 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5797, allocations: 3.938 kB / 0.732 GB, free: 7.191 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.5797, allocations: 3.984 kB / 0.732 GB, free: 7.188 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.5797, allocations: 4 kB / 0.732 GB, free: 7.184 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5797, allocations: 0 / 0.732 GB, free: 7.184 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002644/0.58, allocations: 187.4 kB / 0.7321 GB, free: 6.984 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.58, allocations: 81.11 kB / 0.7322 GB, free: 6.887 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.58, allocations: 0 / 0.7322 GB, free: 6.887 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.067e-05/0.5801, allocations: 15.98 kB / 0.7322 GB, free: 6.871 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.848e-05/0.5802, allocations: 3.984 kB / 0.7322 GB, free: 6.867 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.5802, allocations: 4 kB / 0.7322 GB, free: 6.863 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.411e-05/0.5803, allocations: 75.28 kB / 0.7323 GB, free: 6.789 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5803, allocations: 0 / 0.7323 GB, free: 6.789 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002145/0.5805, allocations: 12 kB / 0.7323 GB, free: 6.777 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.0001371/0.5807, allocations: 111.2 kB / 0.7324 GB, free: 6.656 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002188/0.5809, allocations: 55.89 kB / 0.7325 GB, free: 6.602 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.5809, allocations: 0 / 0.7325 GB, free: 6.602 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.549e-05/0.581, allocations: 31.98 kB / 0.7325 GB, free: 6.57 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.5812, allocations: 10.77 kB / 0.7325 GB, free: 6.562 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002267/0.5815, allocations: 124.6 kB / 0.7326 GB, free: 6.418 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.5817, allocations: 0.6731 MB / 0.7333 GB, free: 5.719 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.32e-05/0.5818, allocations: 11.98 kB / 0.7333 GB, free: 5.707 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.5818, allocations: 7.438 kB / 0.7333 GB, free: 5.699 MB / 0.545 GB Notification: Performance of SimCode: time 4.01e-07/0.5818, allocations: 0 / 0.7333 GB, free: 5.699 MB / 0.545 GB Notification: Performance of Templates: time 0.002346/0.5842, allocations: 0.5932 MB / 0.7339 GB, free: 5.105 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: