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/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7164/0.7164, allocations: 140.1 MB / 156 MB, free: 5.152 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001/0.001, allocations: 179.8 kB / 188.5 MB, free: 15.82 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.4 MB / 426.3 MB, free: 8.438 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007567/0.0007564, allocations: 86.36 kB / 0.4945 GB, free: 8.391 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001645/0.001645, allocations: 273.3 kB / 0.5728 GB, free: 66.21 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004743/0.0004744, allocations: 20 kB / 0.662 GB, free: 6.785 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3542, allocations: 79.3 MB / 0.7395 GB, free: 46.34 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.4797, allocations: 106.5 MB / 0.8434 GB, free: 3.738 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.48, allocations: 71.95 kB / 0.8435 GB, free: 3.668 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.001113/0.4812, allocations: 0.5305 MB / 0.844 GB, free: 3.137 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.575e-06/0.4812, allocations: 0 / 0.844 GB, free: 3.137 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.4812, allocations: 0 / 0.844 GB, free: 3.137 MB / 0.5105 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.0002439/0.4814, allocations: 316.7 kB / 0.8443 GB, free: 2.777 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.4815, allocations: 8.031 kB / 0.8443 GB, free: 2.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.274e-05/0.4815, allocations: 0.9375 kB / 0.8443 GB, free: 2.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.335e-05/0.4816, allocations: 168.4 kB / 0.8445 GB, free: 2.566 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.4816, allocations: 4.375 kB / 0.8445 GB, free: 2.562 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.4816, allocations: 384 / 0.8445 GB, free: 2.562 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.904e-05/0.4817, allocations: 30.27 kB / 0.8445 GB, free: 2.527 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.4817, allocations: 192 / 0.8445 GB, free: 2.527 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.4818, allocations: 7.922 kB / 0.8445 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.4818, allocations: 4 kB / 0.8445 GB, free: 2.516 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.321e-05/0.4818, allocations: 7.984 kB / 0.8446 GB, free: 2.508 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/0.4819, allocations: 153.6 kB / 0.8447 GB, free: 2.309 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 3.724e-05/0.482, allocations: 18.61 kB / 0.8447 GB, free: 2.281 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.913e-05/0.482, allocations: 12.92 kB / 0.8447 GB, free: 2.266 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.4821, allocations: 85.09 kB / 0.8448 GB, free: 2.164 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.4822, allocations: 34.56 kB / 0.8448 GB, free: 2.121 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.4822, allocations: 0 / 0.8448 GB, free: 2.121 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2): time 0.0001248/0.4823, allocations: 49.56 kB / 0.8449 GB, free: 2.066 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.4823, allocations: 55.34 kB / 0.8449 GB, free: 2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.86e-05/0.4824, allocations: 89.86 kB / 0.845 GB, free: 1.902 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.4824, allocations: 29.7 kB / 0.8451 GB, free: 1.867 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.202e-05/0.4824, allocations: 80.14 kB / 0.8451 GB, free: 1.785 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.4825, allocations: 3.906 kB / 0.8451 GB, free: 1.781 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.814e-06/0.4825, allocations: 0 / 0.8451 GB, free: 1.781 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.758e-05/0.4826, allocations: 315 kB / 0.8454 GB, free: 1.465 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.558e-06/0.4826, allocations: 4 kB / 0.8454 GB, free: 1.461 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.49e-06/0.4826, allocations: 4 kB / 0.8454 GB, free: 1.457 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.972e-05/0.4826, allocations: 12.84 kB / 0.8455 GB, free: 1.441 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.4826, allocations: 0 / 0.8455 GB, free: 1.441 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.078e-05/0.4827, allocations: 41.64 kB / 0.8455 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.4827, allocations: 8 kB / 0.8455 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.4827, allocations: 96 / 0.8455 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.4827, allocations: 7.938 kB / 0.8455 GB, free: 1.379 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.652e-05/0.4828, allocations: 4 kB / 0.8455 GB, free: 1.375 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.4828, allocations: 0 / 0.8455 GB, free: 1.375 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.429e-05/0.4828, allocations: 7.984 kB / 0.8455 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-06/0.4828, allocations: 0 / 0.8455 GB, free: 1.367 MB / 0.5105 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.576e-05/0.4829, allocations: 105.8 kB / 0.8456 GB, free: 1.254 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.747e-06/0.4829, allocations: 4 kB / 0.8456 GB, free: 1.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.571e-05/0.483, allocations: 48.69 kB / 0.8457 GB, free: 1.199 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.483, allocations: 11.97 kB / 0.8457 GB, free: 1.188 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.483, allocations: 0 / 0.8457 GB, free: 1.188 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.483, allocations: 0 / 0.8457 GB, free: 1.188 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.138e-05/0.4831, allocations: 145.7 kB / 0.8458 GB, free: 0.9961 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4831, allocations: 0 / 0.8458 GB, free: 0.9961 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.221e-05/0.4831, allocations: 7.984 kB / 0.8458 GB, free: 0.9883 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.4831, allocations: 0 / 0.8458 GB, free: 0.9883 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.4831, allocations: 3.938 kB / 0.8458 GB, free: 0.9844 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.4831, allocations: 0 / 0.8458 GB, free: 0.9844 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4832, allocations: 4 kB / 0.8458 GB, free: 0.9805 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.535e-05/0.4832, allocations: 65.12 kB / 0.8459 GB, free: 0.8984 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.85e-05/0.4833, allocations: 77.11 kB / 0.846 GB, free: 0.8047 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.4833, allocations: 3.938 kB / 0.846 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.022e-05/0.4833, allocations: 0 / 0.846 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.4833, allocations: 4 kB / 0.846 GB, free: 0.7969 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.4834, allocations: 0 / 0.846 GB, free: 0.7969 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 2.289e-05/0.4834, allocations: 75.28 kB / 0.8461 GB, free: 0.7227 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4834, allocations: 3.969 kB / 0.8461 GB, free: 0.7188 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001926/0.4836, allocations: 8 kB / 0.8461 GB, free: 0.7109 MB / 0.5105 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 (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.0001554/0.4837, allocations: 111.2 kB / 0.8462 GB, free: 0.5938 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 5.22e-05/0.4838, allocations: 11.94 kB / 0.8462 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4838, allocations: 0 / 0.8462 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.324e-05/0.4838, allocations: 7.938 kB / 0.8462 GB, free: 0.5742 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000114/0.4839, allocations: 0 / 0.8462 GB, free: 0.5742 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001747/0.4841, allocations: 86.88 kB / 0.8463 GB, free: 472 kB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.4844, allocations: 0.673 MB / 0.8469 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.618e-05/0.4844, allocations: 4 kB / 0.8469 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.325e-05/0.4844, allocations: 15.36 kB / 0.847 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of SimCode: time 1.9e-07/0.4844, allocations: 0 / 0.847 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of Templates: time 0.001853/0.4863, allocations: 308 kB / 0.8472 GB, free: 15.45 MB / 0.5261 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)