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.001245/0.001245, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001293/0.001293, allocations: 191.2 kB / 22.23 MB, free: 5.105 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.325/1.325, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 179] 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.002362/0.002362, allocations: 280.8 kB / 306.5 MB, free: 8.324 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.137/1.137, allocations: 180.9 MB / 0.53 GB, free: 14.61 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.00268/0.00268, allocations: 106.3 kB / 0.7309 GB, free: 38.98 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1489, allocations: 94.19 MB / 0.8229 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001673/0.1505, allocations: 0.5932 MB / 0.8234 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002651/0.1508, allocations: 52.25 kB / 0.8235 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.558e-05/0.1508, allocations: 0 / 0.8235 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.823e-05/0.1508, allocations: 7.938 kB / 0.8235 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.1508, allocations: 0 / 0.8235 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.151, allocations: 7.984 kB / 0.8235 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 3.973e-05/0.1511, allocations: 8 kB / 0.8235 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.1511, allocations: 7.984 kB / 0.8235 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.322e-05/0.1511, allocations: 7.875 kB / 0.8235 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.927e-05/0.1512, allocations: 0 / 0.8235 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.957e-06/0.1512, allocations: 0 / 0.8235 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.764e-05/0.1512, allocations: 8 kB / 0.8235 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.374e-06/0.1513, allocations: 0 / 0.8235 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.691e-05/0.1513, allocations: 7.984 kB / 0.8235 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 7.777e-05/0.1513, allocations: 11.98 kB / 0.8236 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1513, allocations: 0 / 0.8236 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.102e-06/0.1513, allocations: 0 / 0.8236 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.1514, allocations: 4 kB / 0.8236 GB, free: 1.125 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.000287/0.1516, allocations: 250.3 kB / 0.8238 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.1517, allocations: 12.03 kB / 0.8238 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.494e-05/0.1517, allocations: 0.9375 kB / 0.8238 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.368e-05/0.1518, allocations: 106.5 kB / 0.8239 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.642e-06/0.1518, allocations: 384 / 0.8239 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.1518, allocations: 384 / 0.8239 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.81e-05/0.1519, allocations: 34.25 kB / 0.8239 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.1519, allocations: 4.188 kB / 0.824 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1519, allocations: 3.938 kB / 0.824 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.1519, allocations: 4 kB / 0.824 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.581e-05/0.1519, allocations: 0 / 0.824 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.1521, allocations: 120.8 kB / 0.8241 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.274e-05/0.1521, allocations: 26.53 kB / 0.8241 GB, free: 472 kB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.874e-05/0.1521, allocations: 12.92 kB / 0.8241 GB, free: 456 kB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001069/0.1523, allocations: 0 / 0.8241 GB, free: 456 kB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.1523, allocations: 38.56 kB / 0.8241 GB, free: 408 kB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.1523, allocations: 0 / 0.8241 GB, free: 408 kB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001372/0.1524, allocations: 49.58 kB / 0.8242 GB, free: 352 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.1525, allocations: 55.34 kB / 0.8242 GB, free: 284 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.186e-05/0.1525, allocations: 89.86 kB / 0.8243 GB, free: 184 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.1525, allocations: 25.7 kB / 0.8244 GB, free: 152 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.409e-05/0.1525, allocations: 80.14 kB / 0.8244 GB, free: 68 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.1526, allocations: 8.125 kB / 0.8244 GB, free: 60 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.1526, allocations: 17.7 kB / 0.8245 GB, free: 36 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1527, allocations: 314.8 kB / 0.8248 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.898e-06/0.1527, allocations: 0 / 0.8248 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.673e-06/0.1527, allocations: 0 / 0.8248 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.826e-05/0.1528, allocations: 16.86 kB / 0.8248 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1528, allocations: 0 / 0.8248 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.017e-05/0.1528, allocations: 41.62 kB / 0.8248 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.1528, allocations: 10.44 kB / 0.8248 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/0.1528, allocations: 0 / 0.8248 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1529, allocations: 7.875 kB / 0.8248 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.7e-05/0.1529, allocations: 4 kB / 0.8248 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.1529, allocations: 0 / 0.8248 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.173e-05/0.1529, allocations: 0 / 0.8248 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.1529, allocations: 7.938 kB / 0.8248 GB, free: 15.62 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.268e-05/0.153, allocations: 110.5 kB / 0.8249 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-06/0.153, allocations: 0 / 0.8249 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.587e-05/0.1531, allocations: 52.78 kB / 0.825 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1531, allocations: 0 / 0.825 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1531, allocations: 0 / 0.825 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1531, allocations: 0 / 0.825 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.276e-05/0.1532, allocations: 124.7 kB / 0.8251 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1532, allocations: 0 / 0.8251 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.114e-05/0.1532, allocations: 7.938 kB / 0.8251 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1532, allocations: 4 kB / 0.8251 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.1532, allocations: 3.938 kB / 0.8251 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1532, allocations: 0 / 0.8251 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1532, allocations: 4.031 kB / 0.8251 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.504e-05/0.1533, allocations: 65.12 kB / 0.8252 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.357e-06/0.1533, allocations: 0 / 0.8252 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.025e-05/0.1533, allocations: 3.938 kB / 0.8252 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.052e-05/0.1533, allocations: 0 / 0.8252 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.807e-05/0.1534, allocations: 7.984 kB / 0.8252 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.1534, allocations: 7.984 kB / 0.8252 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.314e-05/0.1534, allocations: 79.31 kB / 0.8253 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1534, allocations: 0 / 0.8253 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001906/0.1536, allocations: 7.938 kB / 0.8253 GB, free: 15.07 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.0001213/0.1537, allocations: 99.19 kB / 0.8254 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 7.47e-05/0.1538, allocations: 11.98 kB / 0.8254 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1538, allocations: 0 / 0.8254 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.532e-05/0.1538, allocations: 8 kB / 0.8254 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001109/0.1539, allocations: 4.125 kB / 0.8254 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001756/0.1541, allocations: 81 kB / 0.8255 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.1544, allocations: 0.6768 MB / 0.8262 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.224e-05/0.1544, allocations: 3.984 kB / 0.8262 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.753e-05/0.1544, allocations: 15.44 kB / 0.8262 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of SimCode: time 2.71e-07/0.1544, allocations: 0 / 0.8262 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of Templates: time 0.002317/0.1567, allocations: 334 kB / 0.8265 GB, free: 13.79 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.578722482547164] Failed to read output from testmodel.py, exit status != 0: 0.16300474107265472 0.176499869 0.022413411 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f235c0317b0>