Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 108.8 kB / 16.41 MB, free: 6.449 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.001787/0.001787, allocations: 189.2 kB / 17.34 MB, free: 5.703 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002554/0.002554, allocations: 281.3 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9998/0.9998, allocations: 169.2 MB / 0.499 GB, free: 4.402 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002787/0.002787, allocations: 107.8 kB / 0.6822 GB, free: 6.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.4038, allocations: 86.97 MB / 0.7671 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001608/0.4054, allocations: 0.5785 MB / 0.7677 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000265/0.4056, allocations: 43.86 kB / 0.7677 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.698e-05/0.4057, allocations: 0 / 0.7677 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.25e-05/0.4057, allocations: 0 / 0.7677 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.142e-06/0.4057, allocations: 0 / 0.7677 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002199/0.4059, allocations: 31.91 kB / 0.7677 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.15e-05/0.4059, allocations: 0 / 0.7677 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.117e-05/0.406, allocations: 0 / 0.7677 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.551e-05/0.406, allocations: 4 kB / 0.7677 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 1.812e-05/0.406, allocations: 0 / 0.7677 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.406, allocations: 0 / 0.7677 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.917e-05/0.4061, allocations: 15.92 kB / 0.7677 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.256e-06/0.4061, allocations: 0 / 0.7677 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.041e-05/0.4061, allocations: 8 kB / 0.7678 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.118e-05/0.4062, allocations: 11.97 kB / 0.7678 GB, free: 3.207 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4062, allocations: 0 / 0.7678 GB, free: 3.207 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4062, allocations: 4 kB / 0.7678 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.4062, allocations: 0 / 0.7678 GB, free: 3.203 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003421/0.4065, allocations: 315.4 kB / 0.7681 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.4066, allocations: 8.031 kB / 0.7681 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.4066, allocations: 4.875 kB / 0.7681 GB, free: 2.836 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.4067, allocations: 168.4 kB / 0.7682 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.4067, allocations: 384 / 0.7682 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.754e-06/0.4068, allocations: 384 / 0.7682 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.936e-05/0.4068, allocations: 34.2 kB / 0.7683 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.4068, allocations: 4.188 kB / 0.7683 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.4069, allocations: 3.938 kB / 0.7683 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.4069, allocations: 3.938 kB / 0.7683 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.401e-05/0.4069, allocations: 7.984 kB / 0.7683 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001652/0.4071, allocations: 145.7 kB / 0.7684 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 4.865e-05/0.4071, allocations: 18.61 kB / 0.7685 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.337e-05/0.4071, allocations: 16.91 kB / 0.7685 GB, free: 2.336 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001483/0.4073, allocations: 85.11 kB / 0.7686 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.4073, allocations: 34.5 kB / 0.7686 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 9.81e-07/0.4073, allocations: 0 / 0.7686 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001303/0.4074, allocations: 45.62 kB / 0.7686 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.4075, allocations: 51.41 kB / 0.7687 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.156e-05/0.4075, allocations: 93.81 kB / 0.7688 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.4076, allocations: 29.7 kB / 0.7688 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.406e-05/0.4076, allocations: 80.14 kB / 0.7689 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.4076, allocations: 4.125 kB / 0.7689 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.4076, allocations: 17.72 kB / 0.7689 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4078, allocations: 310.8 kB / 0.7692 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.33e-05/0.4078, allocations: 3.984 kB / 0.7692 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.004e-05/0.4078, allocations: 7.938 kB / 0.7692 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.412e-05/0.4078, allocations: 12.86 kB / 0.7692 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.4079, allocations: 0 / 0.7692 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.097e-05/0.4079, allocations: 37.77 kB / 0.7692 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.4079, allocations: 4 kB / 0.7693 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.4079, allocations: 3.984 kB / 0.7693 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.4079, allocations: 7.938 kB / 0.7693 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.507e-05/0.408, allocations: 0 / 0.7693 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.408, allocations: 3.984 kB / 0.7693 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.185e-05/0.408, allocations: 4 kB / 0.7693 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.076e-06/0.408, allocations: 0 / 0.7693 GB, free: 1.426 MB / 0.5294 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.272e-05/0.4081, allocations: 112.2 kB / 0.7694 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.4081, allocations: 7.969 kB / 0.7694 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.471e-05/0.4082, allocations: 48.75 kB / 0.7694 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.4082, allocations: 0 / 0.7694 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4082, allocations: 0 / 0.7694 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.4082, allocations: 4 kB / 0.7694 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.4083, allocations: 145.7 kB / 0.7696 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.4083, allocations: 3.938 kB / 0.7696 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.367e-05/0.4083, allocations: 11.94 kB / 0.7696 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.4083, allocations: 0 / 0.7696 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.4083, allocations: 3.938 kB / 0.7696 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4083, allocations: 4.031 kB / 0.7696 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.4083, allocations: 0 / 0.7696 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.524e-05/0.4084, allocations: 77 kB / 0.7697 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.4085, allocations: 77.11 kB / 0.7697 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.4085, allocations: 3.938 kB / 0.7697 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.979e-06/0.4085, allocations: 0 / 0.7697 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.749e-05/0.4085, allocations: 11.98 kB / 0.7698 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.4085, allocations: 4.031 kB / 0.7698 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.254e-05/0.4086, allocations: 75.28 kB / 0.7698 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.4086, allocations: 0 / 0.7698 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0001841/0.4087, allocations: 6.25 kB / 0.7698 GB, free: 0.7461 MB / 0.5294 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001456/0.4089, allocations: 99.25 kB / 0.7699 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 7.168e-05/0.409, allocations: 8 kB / 0.7699 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.409, allocations: 0 / 0.7699 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 2.219e-05/0.409, allocations: 19.98 kB / 0.77 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.4091, allocations: 2.234 kB / 0.77 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001942/0.4093, allocations: 81.06 kB / 0.77 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.4096, allocations: 0.6768 MB / 0.7707 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.123e-05/0.4097, allocations: 0 / 0.7707 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.585e-05/0.4097, allocations: 11.44 kB / 0.7707 GB, free: 15.79 MB / 0.545 GB Notification: Performance of SimCode: time 3e-07/0.4097, allocations: 0 / 0.7707 GB, free: 15.79 MB / 0.545 GB Notification: Performance of Templates: time 0.002489/0.4122, allocations: 326.3 kB / 0.771 GB, free: 15.47 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)