Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001288/0.001288, allocations: 109.9 kB / 16.41 MB, free: 6.027 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.001308/0.001308, allocations: 186.6 kB / 17.34 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002159/0.002159, allocations: 288.3 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9369/0.9369, allocations: 169.2 MB / 0.499 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001752, allocations: 95.84 kB / 0.6821 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4827/0.4844, allocations: 86.98 MB / 0.7671 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002678/0.4872, allocations: 1.506 MB / 0.7685 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003557/0.4875, allocations: 124.5 kB / 0.7686 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.728e-05/0.4876, allocations: 0 / 0.7686 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.979e-05/0.4876, allocations: 3.938 kB / 0.7686 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.925e-05/0.4877, allocations: 3.938 kB / 0.7687 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002263/0.4879, allocations: 27.95 kB / 0.7687 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.447e-05/0.488, allocations: 31.86 kB / 0.7687 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.613e-05/0.4881, allocations: 8 kB / 0.7687 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.303e-05/0.4882, allocations: 15.98 kB / 0.7687 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.78e-05/0.4882, allocations: 23.84 kB / 0.7688 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.472e-05/0.4882, allocations: 4 kB / 0.7688 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.986e-05/0.4883, allocations: 8 kB / 0.7688 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.496e-05/0.4883, allocations: 7.984 kB / 0.7688 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.4884, allocations: 11.94 kB / 0.7688 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.4885, allocations: 39.88 kB / 0.7688 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.4885, allocations: 0 / 0.7688 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4885, allocations: 0 / 0.7688 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.4885, allocations: 0 / 0.7688 GB, free: 2.07 MB / 0.5294 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.0004514/0.489, allocations: 347.1 kB / 0.7692 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.489, allocations: 11.97 kB / 0.7692 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.595e-05/0.4891, allocations: 4.938 kB / 0.7692 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.4892, allocations: 168.3 kB / 0.7693 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.4892, allocations: 384 / 0.7693 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.4892, allocations: 4.375 kB / 0.7693 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.4894, allocations: 62.22 kB / 0.7694 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.4894, allocations: 192 / 0.7694 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.4894, allocations: 11.94 kB / 0.7694 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.4894, allocations: 0 / 0.7694 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.4896, allocations: 39.95 kB / 0.7694 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003587/0.49, allocations: 271.3 kB / 0.7697 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003113/0.4903, allocations: 58.48 kB / 0.7698 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.4904, allocations: 28.89 kB / 0.7698 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.4905, allocations: 77.11 kB / 0.7699 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.4906, allocations: 38.56 kB / 0.7699 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.4906, allocations: 0 / 0.7699 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003729/0.491, allocations: 93.56 kB / 0.77 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.491, allocations: 55.41 kB / 0.77 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.709e-05/0.4911, allocations: 101.8 kB / 0.7701 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.4911, allocations: 25.7 kB / 0.7702 GB, free: 500 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.4911, allocations: 84.14 kB / 0.7702 GB, free: 412 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.4912, allocations: 7.906 kB / 0.7702 GB, free: 404 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.4912, allocations: 13.72 kB / 0.7703 GB, free: 384 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.4913, allocations: 318.8 kB / 0.7706 GB, free: 56 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.781e-05/0.4914, allocations: 19.98 kB / 0.7706 GB, free: 36 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.731e-05/0.4915, allocations: 19.97 kB / 0.7706 GB, free: 16 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.4917, allocations: 44.83 kB / 0.7706 GB, free: 15.97 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4917, allocations: 3.938 kB / 0.7707 GB, free: 15.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002085/0.4919, allocations: 81.95 kB / 0.7707 GB, free: 15.88 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.4919, allocations: 8 kB / 0.7707 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.4919, allocations: 0 / 0.7707 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.4919, allocations: 0 / 0.7707 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.739e-05/0.492, allocations: 15.97 kB / 0.7708 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.492, allocations: 0 / 0.7708 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.662e-05/0.4921, allocations: 15.92 kB / 0.7708 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.4921, allocations: 0 / 0.7708 GB, free: 15.84 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 (rea2Int.y,fac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.207e-05/0.4922, allocations: 117.8 kB / 0.7709 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.4922, allocations: 0 / 0.7709 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002478/0.4925, allocations: 93.08 kB / 0.771 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4925, allocations: 0 / 0.771 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4925, allocations: 0 / 0.771 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.4925, allocations: 0 / 0.771 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.4927, allocations: 169.5 kB / 0.7711 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4927, allocations: 0 / 0.7711 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.237e-05/0.4928, allocations: 11.98 kB / 0.7711 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.4928, allocations: 0 / 0.7711 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.4928, allocations: 4 kB / 0.7711 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4928, allocations: 0 / 0.7711 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4928, allocations: 4 kB / 0.7711 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.493, allocations: 175.4 kB / 0.7713 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.4931, allocations: 85 kB / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.4931, allocations: 0 / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.279e-05/0.4932, allocations: 8 kB / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.4932, allocations: 7.984 kB / 0.7714 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.4932, allocations: 0 / 0.7714 GB, free: 15.08 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.352e-05/0.4933, allocations: 83.28 kB / 0.7715 GB, free: 15 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4933, allocations: 0 / 0.7715 GB, free: 15 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002133/0.4935, allocations: 8 kB / 0.7715 GB, free: 14.99 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001279/0.4937, allocations: 103.2 kB / 0.7716 GB, free: 14.88 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002359/0.4939, allocations: 47.95 kB / 0.7716 GB, free: 14.83 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4939, allocations: 0 / 0.7716 GB, free: 14.83 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.287e-05/0.494, allocations: 27.92 kB / 0.7717 GB, free: 14.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.4943, allocations: 7.922 kB / 0.7717 GB, free: 14.79 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002604/0.4945, allocations: 135.3 kB / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.4948, allocations: 0.6807 MB / 0.7725 GB, free: 13.92 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.717e-05/0.4948, allocations: 11.44 kB / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of SimCode: time 1.914e-06/0.4948, allocations: 0 / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of Templates: time 0.002003/0.4968, allocations: 0.7459 MB / 0.7732 GB, free: 13.17 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)