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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 109.8 kB / 19.58 MB, free: 2.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 192.5 kB / 22.85 MB, free: 5.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 251.5 MB, free: 13.06 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002551/0.002551, allocations: 280.7 kB / 307 MB, free: 8.371 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.225/1.225, allocations: 180.8 MB / 0.5304 GB, free: 14.35 MB / 382.1 MB " [Timeout remaining time 179] 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=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.004029/0.004029, allocations: 106 kB / 0.7311 GB, free: 38.7 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1756, allocations: 94.2 MB / 0.8231 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001693/0.1773, allocations: 0.5959 MB / 0.8237 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002666/0.1775, allocations: 44.27 kB / 0.8237 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.496e-05/0.1775, allocations: 0 / 0.8237 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.1776, allocations: 3.938 kB / 0.8237 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.1776, allocations: 0 / 0.8237 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002143/0.1778, allocations: 15.97 kB / 0.8237 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.483e-05/0.1778, allocations: 4 kB / 0.8237 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.665e-05/0.1779, allocations: 0 / 0.8237 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.319e-05/0.1779, allocations: 0 / 0.8237 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.372e-05/0.1779, allocations: 7.984 kB / 0.8238 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.09e-05/0.1779, allocations: 8 kB / 0.8238 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.178, allocations: 11.94 kB / 0.8238 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.026e-05/0.178, allocations: 3.984 kB / 0.8238 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.45e-05/0.178, allocations: 0 / 0.8238 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 7.77e-05/0.1781, allocations: 7.984 kB / 0.8238 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1781, allocations: 0 / 0.8238 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1781, allocations: 0 / 0.8238 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.1781, allocations: 0 / 0.8238 GB, free: 1.285 MB / 0.5606 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.0003124/0.1784, allocations: 250.4 kB / 0.824 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1785, allocations: 8.031 kB / 0.824 GB, free: 1 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.773e-05/0.1785, allocations: 8.875 kB / 0.824 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.798e-05/0.1786, allocations: 102.5 kB / 0.8241 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1786, allocations: 4.375 kB / 0.8241 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.1786, allocations: 384 / 0.8241 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.486e-05/0.1787, allocations: 34.27 kB / 0.8242 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.1787, allocations: 192 / 0.8242 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.1787, allocations: 11.86 kB / 0.8242 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1787, allocations: 3.938 kB / 0.8242 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.226e-05/0.1787, allocations: 4 kB / 0.8242 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/0.1789, allocations: 120.8 kB / 0.8243 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.307e-05/0.179, allocations: 26.53 kB / 0.8243 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.95e-05/0.179, allocations: 8.922 kB / 0.8243 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.1791, allocations: 8 kB / 0.8244 GB, free: 0.5898 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.1791, allocations: 34.56 kB / 0.8244 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1791, allocations: 0 / 0.8244 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001398/0.1793, allocations: 45.62 kB / 0.8244 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.1793, allocations: 55.34 kB / 0.8245 GB, free: 440 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.363e-05/0.1794, allocations: 101.8 kB / 0.8246 GB, free: 328 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.1794, allocations: 25.7 kB / 0.8246 GB, free: 296 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.277e-05/0.1794, allocations: 80.14 kB / 0.8247 GB, free: 212 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.1794, allocations: 0 / 0.8247 GB, free: 212 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.802e-05/0.1795, allocations: 13.72 kB / 0.8247 GB, free: 192 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1796, allocations: 318.8 kB / 0.825 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.066e-05/0.1796, allocations: 4.125 kB / 0.825 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.636e-06/0.1796, allocations: 4 kB / 0.825 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.603e-05/0.1797, allocations: 8.859 kB / 0.825 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1797, allocations: 0 / 0.825 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.971e-05/0.1797, allocations: 41.69 kB / 0.8251 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.1798, allocations: 4 kB / 0.8251 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.1798, allocations: 7.938 kB / 0.8251 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1798, allocations: 3.938 kB / 0.8251 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.672e-05/0.1798, allocations: 4.094 kB / 0.8251 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1798, allocations: 4 kB / 0.8251 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.15e-05/0.1798, allocations: 0 / 0.8251 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-06/0.1799, allocations: 0 / 0.8251 GB, free: 15.78 MB / 0.5762 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.344e-05/0.1799, allocations: 110.2 kB / 0.8252 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.1799, allocations: 0 / 0.8252 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.85e-05/0.18, allocations: 48.78 kB / 0.8252 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.18, allocations: 0 / 0.8252 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.18, allocations: 4 kB / 0.8252 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.18, allocations: 4.031 kB / 0.8252 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001038/0.1801, allocations: 124.8 kB / 0.8254 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1801, allocations: 0 / 0.8254 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.367e-05/0.1802, allocations: 11.88 kB / 0.8254 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.1802, allocations: 0 / 0.8254 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.1802, allocations: 3.938 kB / 0.8254 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1802, allocations: 0 / 0.8254 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1802, allocations: 4 kB / 0.8254 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.135e-05/0.1803, allocations: 73.02 kB / 0.8254 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-06/0.1803, allocations: 0 / 0.8254 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.1803, allocations: 3.938 kB / 0.8254 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.038e-05/0.1803, allocations: 0 / 0.8254 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.152e-05/0.1803, allocations: 7.984 kB / 0.8255 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.1803, allocations: 0 / 0.8255 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.272e-05/0.1804, allocations: 75.28 kB / 0.8255 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.1804, allocations: 0 / 0.8255 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001838/0.1805, allocations: 7.938 kB / 0.8255 GB, free: 15.23 MB / 0.5762 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.0001649/0.1807, allocations: 111.3 kB / 0.8256 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 8.294e-05/0.1808, allocations: 11.92 kB / 0.8256 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1808, allocations: 0 / 0.8256 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.519e-05/0.1808, allocations: 4 kB / 0.8257 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.1809, allocations: 11.77 kB / 0.8257 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002002/0.1811, allocations: 81 kB / 0.8257 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.1815, allocations: 0.6769 MB / 0.8264 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.596e-05/0.1815, allocations: 4 kB / 0.8264 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.653e-05/0.1815, allocations: 7.438 kB / 0.8264 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of SimCode: time 3.2e-07/0.1815, allocations: 0 / 0.8264 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of Templates: time 0.002613/0.1841, allocations: 334.1 kB / 0.8267 GB, free: 13.94 MB / 0.5762 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.892474270891398] Failed to read output from testmodel.py, exit status != 0: 0.19296626187860966 0.20684108699999995 0.025672191 Calling exit ...