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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 210.6 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.353/1.353, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002695/0.002695, allocations: 299.3 kB / 313.5 MB, free: 2.602 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.173/1.173, allocations: 180.6 MB / 0.5377 GB, free: 14.41 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002882/0.002882, allocations: 104.9 kB / 0.7408 GB, free: 28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1612, allocations: 95.39 MB / 0.8339 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001716/0.1629, allocations: 0.5922 MB / 0.8345 GB, free: 7.145 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002596/0.1632, allocations: 40.28 kB / 0.8345 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.76e-05/0.1632, allocations: 0 / 0.8345 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.79e-05/0.1632, allocations: 3.938 kB / 0.8345 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.452e-06/0.1632, allocations: 0 / 0.8345 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002228/0.1634, allocations: 15.98 kB / 0.8345 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 3.726e-05/0.1635, allocations: 4 kB / 0.8345 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.049e-05/0.1635, allocations: 0 / 0.8345 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.734e-05/0.1635, allocations: 7.984 kB / 0.8346 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 1.921e-05/0.1635, allocations: 0 / 0.8346 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.397e-06/0.1636, allocations: 0 / 0.8346 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.616e-05/0.1636, allocations: 11.98 kB / 0.8346 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.468e-06/0.1636, allocations: 0 / 0.8346 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.1637, allocations: 7.938 kB / 0.8346 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 8.293e-05/0.1637, allocations: 11.98 kB / 0.8346 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1637, allocations: 3.984 kB / 0.8346 GB, free: 7.039 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1637, allocations: 0 / 0.8346 GB, free: 7.039 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.1638, allocations: 4 kB / 0.8346 GB, free: 7.035 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003064/0.1641, allocations: 246.3 kB / 0.8348 GB, free: 6.762 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1641, allocations: 13.34 kB / 0.8348 GB, free: 6.75 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.513e-05/0.1641, allocations: 0.9375 kB / 0.8348 GB, free: 6.75 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.823e-05/0.1642, allocations: 106.5 kB / 0.8349 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.113e-06/0.1642, allocations: 384 / 0.8349 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.1642, allocations: 4.359 kB / 0.8349 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.745e-05/0.1643, allocations: 30.27 kB / 0.835 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.1643, allocations: 192 / 0.835 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.1643, allocations: 3.938 kB / 0.835 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1643, allocations: 8 kB / 0.835 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.547e-05/0.1644, allocations: 0 / 0.835 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.1645, allocations: 105.3 kB / 0.8351 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.692e-05/0.1646, allocations: 22.55 kB / 0.8351 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.147e-05/0.1646, allocations: 12.92 kB / 0.8351 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001284/0.1647, allocations: 8 kB / 0.8351 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.1647, allocations: 34.55 kB / 0.8352 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.1648, allocations: 3.938 kB / 0.8352 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0001383/0.1649, allocations: 45.58 kB / 0.8352 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.1649, allocations: 59.47 kB / 0.8353 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.736e-05/0.165, allocations: 93.86 kB / 0.8354 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.165, allocations: 25.7 kB / 0.8354 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.278e-05/0.165, allocations: 80.14 kB / 0.8355 GB, free: 6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.165, allocations: 0 / 0.8355 GB, free: 6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.985e-05/0.1651, allocations: 17.7 kB / 0.8355 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1652, allocations: 314.8 kB / 0.8358 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.1652, allocations: 4 kB / 0.8358 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.895e-06/0.1652, allocations: 4 kB / 0.8358 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.04e-05/0.1653, allocations: 12.86 kB / 0.8358 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1653, allocations: 4.062 kB / 0.8358 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.353e-05/0.1653, allocations: 45.58 kB / 0.8358 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.1653, allocations: 8 kB / 0.8358 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1653, allocations: 0 / 0.8358 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.1654, allocations: 0 / 0.8358 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.011e-05/0.1654, allocations: 7.938 kB / 0.8359 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.1654, allocations: 0 / 0.8359 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.187e-05/0.1654, allocations: 0 / 0.8359 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-06/0.1654, allocations: 0 / 0.8359 GB, free: 5.566 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 8.335e-05/0.1655, allocations: 118.5 kB / 0.836 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-06/0.1655, allocations: 4.031 kB / 0.836 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.388e-05/0.1656, allocations: 36.86 kB / 0.836 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1656, allocations: 3.938 kB / 0.836 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1656, allocations: 3.984 kB / 0.836 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1656, allocations: 3.984 kB / 0.836 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.882e-05/0.1657, allocations: 101.3 kB / 0.8361 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1657, allocations: 3.938 kB / 0.8361 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.826e-05/0.1657, allocations: 0 / 0.8361 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1657, allocations: 4 kB / 0.8361 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.93e-06/0.1657, allocations: 0 / 0.8361 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1657, allocations: 4.031 kB / 0.8361 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1657, allocations: 3.938 kB / 0.8361 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.473e-05/0.1658, allocations: 61.12 kB / 0.8362 GB, free: 5.156 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-06/0.1658, allocations: 4 kB / 0.8362 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.796e-06/0.1658, allocations: 0 / 0.8362 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.959e-06/0.1658, allocations: 0 / 0.8362 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.997e-05/0.1659, allocations: 11.86 kB / 0.8362 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.1659, allocations: 4 kB / 0.8362 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.242e-05/0.1659, allocations: 75.28 kB / 0.8363 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5e-08/0.1659, allocations: 0 / 0.8363 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000194/0.1661, allocations: 15.91 kB / 0.8363 GB, free: 5.047 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.0001324/0.1662, allocations: 103.2 kB / 0.8364 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 7.153e-05/0.1663, allocations: 11.98 kB / 0.8364 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1663, allocations: 0 / 0.8364 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.207e-05/0.1663, allocations: 4 kB / 0.8364 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001155/0.1664, allocations: 0 / 0.8364 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002033/0.1666, allocations: 106.7 kB / 0.8365 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.602e-05/0.1667, allocations: 59.34 kB / 0.8366 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.857e-05/0.1667, allocations: 15.56 kB / 0.8366 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/0.1667, allocations: 0 / 0.8366 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of Templates: time 0.001741/0.1684, allocations: 461.3 kB / 0.837 GB, free: 4.238 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: 7.854146204888821] Failed to read output from testmodel.py, exit status != 0: 0.17530378978699446 0.18995760599999995 0.023310673 Calling exit ...