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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 110 kB / 18.93 MB, free: 2.945 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.001441/0.001441, allocations: 191.7 kB / 22.23 MB, free: 5.16 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.33/1.33, allocations: 225.6 MB / 251 MB, free: 13.01 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.00243/0.00243, allocations: 289.4 kB / 306.6 MB, free: 8.316 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.152/1.152, allocations: 180.9 MB / 0.53 GB, free: 14.45 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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002748/0.002748, allocations: 106.3 kB / 0.7308 GB, free: 38.71 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.174, allocations: 94.2 MB / 0.8228 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002956/0.1769, allocations: 1.531 MB / 0.8243 GB, free: 280 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003899/0.1773, allocations: 120.5 kB / 0.8244 GB, free: 156 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.42e-05/0.1774, allocations: 7.938 kB / 0.8245 GB, free: 148 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.102e-05/0.1774, allocations: 3.938 kB / 0.8245 GB, free: 144 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.111e-05/0.1774, allocations: 3.938 kB / 0.8245 GB, free: 140 kB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002377/0.1777, allocations: 19.97 kB / 0.8245 GB, free: 120 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.521e-05/0.1777, allocations: 31.92 kB / 0.8245 GB, free: 88 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.1778, allocations: 11.98 kB / 0.8245 GB, free: 76 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.594e-05/0.1779, allocations: 8 kB / 0.8245 GB, free: 68 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.623e-05/0.178, allocations: 23.91 kB / 0.8246 GB, free: 44 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.178, allocations: 0 / 0.8246 GB, free: 44 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.621e-05/0.178, allocations: 19.98 kB / 0.8246 GB, free: 24 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.178, allocations: 7.938 kB / 0.8246 GB, free: 16 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.094e-05/0.1781, allocations: 15.92 kB / 0.8246 GB, free: 0 / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.1782, allocations: 35.83 kB / 0.8246 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1782, allocations: 0 / 0.8246 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1782, allocations: 0 / 0.8246 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.1782, allocations: 4 kB / 0.8246 GB, free: 15.96 MB / 0.5762 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.0005188/0.1788, allocations: 274.2 kB / 0.8249 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.1788, allocations: 8.031 kB / 0.8249 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.1788, allocations: 4.891 kB / 0.8249 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.179, allocations: 110.5 kB / 0.825 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.179, allocations: 4.375 kB / 0.825 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.179, allocations: 8.375 kB / 0.825 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.1792, allocations: 54.23 kB / 0.8251 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1792, allocations: 4.172 kB / 0.8251 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.1792, allocations: 7.938 kB / 0.8251 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1792, allocations: 0 / 0.8251 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.1794, allocations: 39.95 kB / 0.8251 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004015/0.1798, allocations: 236 kB / 0.8254 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003477/0.1802, allocations: 58.48 kB / 0.8254 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.1803, allocations: 32.83 kB / 0.8254 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.428e-05/0.1804, allocations: 4 kB / 0.8254 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1804, allocations: 30.56 kB / 0.8255 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1804, allocations: 0 / 0.8255 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004157/0.1808, allocations: 105.5 kB / 0.8256 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.1809, allocations: 51.41 kB / 0.8256 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.938e-05/0.181, allocations: 105.8 kB / 0.8257 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.181, allocations: 25.7 kB / 0.8257 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.181, allocations: 80.14 kB / 0.8258 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.181, allocations: 3.953 kB / 0.8258 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.1811, allocations: 17.72 kB / 0.8258 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1812, allocations: 322.8 kB / 0.8262 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.412e-05/0.1813, allocations: 15.98 kB / 0.8262 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.784e-05/0.1814, allocations: 23.97 kB / 0.8262 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001704/0.1816, allocations: 44.7 kB / 0.8262 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1816, allocations: 3.938 kB / 0.8262 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002258/0.1818, allocations: 81.64 kB / 0.8263 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.1818, allocations: 4 kB / 0.8263 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.1818, allocations: 0 / 0.8263 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1818, allocations: 4 kB / 0.8263 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.148e-05/0.1819, allocations: 11.98 kB / 0.8263 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1819, allocations: 0 / 0.8263 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.601e-05/0.182, allocations: 4 kB / 0.8263 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.182, allocations: 3.984 kB / 0.8263 GB, free: 14.02 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 (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 9.675e-05/0.1821, allocations: 122.4 kB / 0.8265 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.1821, allocations: 7.953 kB / 0.8265 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.1824, allocations: 81.78 kB / 0.8265 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1824, allocations: 0 / 0.8265 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1824, allocations: 0 / 0.8265 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1824, allocations: 8.031 kB / 0.8266 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.1826, allocations: 136.7 kB / 0.8267 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1826, allocations: 0 / 0.8267 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.139e-05/0.1826, allocations: 15.98 kB / 0.8267 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1826, allocations: 0 / 0.8267 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.1827, allocations: 4 kB / 0.8267 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1827, allocations: 0 / 0.8267 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.1827, allocations: 4 kB / 0.8267 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.1829, allocations: 171.4 kB / 0.8269 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.038e-05/0.1829, allocations: 11.98 kB / 0.8269 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.183, allocations: 0 / 0.8269 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.309e-05/0.183, allocations: 8 kB / 0.8269 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.1831, allocations: 7.984 kB / 0.8269 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1831, allocations: 3.938 kB / 0.8269 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.747e-05/0.1831, allocations: 87.27 kB / 0.827 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1831, allocations: 0 / 0.827 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002153/0.1834, allocations: 11.95 kB / 0.827 GB, free: 13.27 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.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.0001337/0.1835, allocations: 99.25 kB / 0.8271 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000242/0.1837, allocations: 47.89 kB / 0.8271 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1837, allocations: 0 / 0.8271 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.1838, allocations: 27.91 kB / 0.8272 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.1841, allocations: 7.938 kB / 0.8272 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002962/0.1844, allocations: 103.2 kB / 0.8273 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1847, allocations: 0.6846 MB / 0.8279 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.661e-05/0.1847, allocations: 0 / 0.8279 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.881e-05/0.1847, allocations: 15.44 kB / 0.8279 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/0.1847, allocations: 0 / 0.8279 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of Templates: time 0.003379/0.1881, allocations: 0.7334 MB / 0.8287 GB, free: 11.5 MB / 0.5762 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.600080703385174] Failed to read output from testmodel.py, exit status != 0: 0.19546955917030573 0.209819642 0.028606123 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fbd608957b0>