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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 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.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/BuildingSystems 2.0.0-master/package.mo): time 0.8162/0.8162, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000915/0.0009149, allocations: 185.3 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 221.3 MB / 441.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009312/0.0009313, allocations: 97.89 kB / 0.5124 GB, free: 24.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001818/0.001818, allocations: 274.1 kB / 0.5939 GB, free: 7.953 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.498e-05/4.513e-05, allocations: 7.984 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4182/0.4183, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.537, allocations: 108.9 MB / 0.8706 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.5373, allocations: 75.83 kB / 0.8706 GB, free: 15.62 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.002938/0.5403, allocations: 0.9441 MB / 0.8716 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.412e-06/0.5403, allocations: 0 / 0.8716 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.5403, allocations: 4 kB / 0.8716 GB, free: 14.68 MB / 0.5417 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.0003358/0.5406, allocations: 339.5 kB / 0.8719 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.5407, allocations: 12.03 kB / 0.8719 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.624e-05/0.5407, allocations: 0 / 0.8719 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.5409, allocations: 175 kB / 0.8721 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.5409, allocations: 3.953 kB / 0.8721 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.5409, allocations: 4 kB / 0.8721 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.53e-05/0.541, allocations: 41.69 kB / 0.8721 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.541, allocations: 4 kB / 0.8721 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.541, allocations: 0 / 0.8721 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.541, allocations: 0 / 0.8721 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.115e-05/0.5411, allocations: 19.94 kB / 0.8721 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004269/0.5415, allocations: 284.9 kB / 0.8724 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002175/0.5418, allocations: 42.56 kB / 0.8724 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.016e-05/0.5418, allocations: 12.92 kB / 0.8725 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.5419, allocations: 93.11 kB / 0.8726 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.542, allocations: 42.48 kB / 0.8726 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.542, allocations: 4 kB / 0.8726 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.000144/0.5421, allocations: 45.69 kB / 0.8726 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.5422, allocations: 51.41 kB / 0.8727 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.315e-05/0.5422, allocations: 93 kB / 0.8728 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.851e-05/0.5422, allocations: 25.7 kB / 0.8728 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.5423, allocations: 88.05 kB / 0.8729 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.386e-05/0.5423, allocations: 7.984 kB / 0.8729 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-06/0.5423, allocations: 0 / 0.8729 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5424, allocations: 322.7 kB / 0.8732 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.211e-05/0.5425, allocations: 8 kB / 0.8732 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.021e-05/0.5425, allocations: 12 kB / 0.8732 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.413e-05/0.5425, allocations: 7.938 kB / 0.8732 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.5425, allocations: 0 / 0.8732 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.996e-05/0.5426, allocations: 53.59 kB / 0.8733 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.5426, allocations: 5.25 kB / 0.8733 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.5426, allocations: 4 kB / 0.8733 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.5427, allocations: 3.984 kB / 0.8733 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.784e-05/0.5428, allocations: 12 kB / 0.8733 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.5428, allocations: 0 / 0.8733 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.54e-05/0.5428, allocations: 11.98 kB / 0.8733 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.932e-06/0.5429, allocations: 0 / 0.8733 GB, free: 12.66 MB / 0.5417 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,fac.u) * Number of discrete 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 5.677e-05/0.5429, allocations: 108.9 kB / 0.8734 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.5429, allocations: 0 / 0.8734 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.5431, allocations: 65.11 kB / 0.8735 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.5431, allocations: 0 / 0.8735 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.5431, allocations: 0 / 0.8735 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.5431, allocations: 4 kB / 0.8735 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.5433, allocations: 165.6 kB / 0.8736 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.5433, allocations: 0 / 0.8736 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.47e-05/0.5434, allocations: 15.98 kB / 0.8737 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.5434, allocations: 0 / 0.8737 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.5434, allocations: 0 / 0.8737 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5434, allocations: 0 / 0.8737 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5434, allocations: 8 kB / 0.8737 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.5436, allocations: 151.8 kB / 0.8738 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.257e-05/0.5436, allocations: 85.05 kB / 0.8739 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.5436, allocations: 4 kB / 0.8739 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.169e-05/0.5437, allocations: 4 kB / 0.8739 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.5438, allocations: 11.92 kB / 0.8739 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.5438, allocations: 4.047 kB / 0.8739 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.744e-05/0.5438, allocations: 91.2 kB / 0.874 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5438, allocations: 0 / 0.874 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002219/0.5441, allocations: 19.92 kB / 0.874 GB, free: 11.84 MB / 0.5417 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,fac.u) * Number of discrete 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.0001487/0.5442, allocations: 103.2 kB / 0.8741 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.233e-05/0.5443, allocations: 23.98 kB / 0.8741 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.5443, allocations: 0 / 0.8741 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.371e-05/0.5444, allocations: 15.94 kB / 0.8742 GB, free: 11.69 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001565/0.5445, allocations: 8 kB / 0.8742 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002094/0.5447, allocations: 65.17 kB / 0.8742 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.545, allocations: 0.677 MB / 0.8749 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.461e-05/0.5451, allocations: 4 kB / 0.8749 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.998e-05/0.5451, allocations: 15.42 kB / 0.8749 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of SimCode: time 5.21e-07/0.5451, allocations: 0 / 0.8749 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of Templates: time 0.002523/0.5476, allocations: 0.6037 MB / 0.8755 GB, free: 10.28 MB / 0.5417 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)