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.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.0006883/0.0006883, allocations: 81.05 kB / 9.981 MB, free: 0.7031 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009539/0.001642, allocations: 440 kB / 10.41 MB, free: 280 kB / 10.45 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.0006738/0.0006738, allocations: 157.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008749/0.001549, allocations: 475.6 kB / 11.79 MB, free: 2.371 MB / 13.93 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 0.9615/0.9615, allocations: 177.2 MB / 189.7 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09324/1.055, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 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.002185/0.002185, allocations: 226.7 kB / 244.4 MB, free: 14.54 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001836/0.004021, allocations: 483.1 kB / 244.8 MB, free: 14.07 MB / 250.7 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 0.7359/0.7359, allocations: 138.7 MB / 384.3 MB, free: 368 kB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06528/0.8012, allocations: 42.4 MB / 426.7 MB, free: 5.832 MB / 410.7 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.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.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 1.183e-06/1.183e-06, allocations: 0 / 428.1 MB, free: 4.473 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.847e-06/1.003e-05, allocations: 2.312 kB / 428.1 MB, free: 4.469 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.001665/0.001675, allocations: 1.636 MB / 429.7 MB, free: 2.816 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001584/0.001833, allocations: 120.5 kB / 429.8 MB, free: 2.695 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.001853, allocations: 0 / 429.8 MB, free: 2.695 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.842e-05/0.001872, allocations: 3.938 kB / 429.8 MB, free: 2.691 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.829e-05/0.00189, allocations: 3.938 kB / 429.8 MB, free: 2.688 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.784e-05/0.001988, allocations: 31.84 kB / 429.9 MB, free: 2.656 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.379e-05/0.002041, allocations: 31.92 kB / 429.9 MB, free: 2.625 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.88e-05/0.0021, allocations: 3.984 kB / 429.9 MB, free: 2.621 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.141e-05/0.002152, allocations: 19.98 kB / 429.9 MB, free: 2.602 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.136e-05/0.002193, allocations: 19.91 kB / 429.9 MB, free: 2.582 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.002204, allocations: 0 / 429.9 MB, free: 2.582 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.246e-05/0.002266, allocations: 12 kB / 430 MB, free: 2.57 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.296e-05/0.002279, allocations: 4 kB / 430 MB, free: 2.566 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.399e-05/0.002293, allocations: 8 kB / 430 MB, free: 2.559 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 8.315e-05/0.002376, allocations: 31.84 kB / 430 MB, free: 2.527 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.002384, allocations: 0 / 430 MB, free: 2.527 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.002385, allocations: 4 kB / 430 MB, free: 2.523 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.002392, allocations: 0 / 430 MB, free: 2.523 MB / 410.7 MB 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.0002703/0.002663, allocations: 240.6 kB / 430.2 MB, free: 2.262 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.503e-05/0.002688, allocations: 11.98 kB / 430.2 MB, free: 2.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.076e-05/0.002708, allocations: 8.938 kB / 430.3 MB, free: 2.242 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.195e-05/0.00278, allocations: 109.7 kB / 430.4 MB, free: 2.109 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.002795, allocations: 4.312 kB / 430.4 MB, free: 2.105 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.002805, allocations: 4.375 kB / 430.4 MB, free: 2.102 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.222e-05/0.002897, allocations: 58.94 kB / 430.4 MB, free: 2.035 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.779e-06/0.002902, allocations: 192 / 430.4 MB, free: 2.035 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-06/0.002907, allocations: 4.375 kB / 430.4 MB, free: 2.031 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.002911, allocations: 384 / 430.4 MB, free: 2.031 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.102e-05/0.002932, allocations: 19.92 kB / 430.5 MB, free: 2.012 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001715/0.003103, allocations: 156.2 kB / 430.6 MB, free: 1.844 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.003224, allocations: 34.5 kB / 430.6 MB, free: 1.801 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.397e-05/0.003238, allocations: 8.859 kB / 430.6 MB, free: 1.789 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.067e-05/0.003288, allocations: 15.92 kB / 430.7 MB, free: 1.773 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.003306, allocations: 38.62 kB / 430.7 MB, free: 1.727 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 6.61e-07/0.003307, allocations: 0 / 430.7 MB, free: 1.727 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 8.811e-05/0.003395, allocations: 49.62 kB / 430.7 MB, free: 1.672 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/0.003417, allocations: 55.34 kB / 430.8 MB, free: 1.605 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.072e-05/0.003458, allocations: 106.7 kB / 430.9 MB, free: 1.488 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.828e-06/0.003468, allocations: 25.7 kB / 430.9 MB, free: 1.457 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.448e-05/0.003492, allocations: 84.14 kB / 431 MB, free: 1.371 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.368e-05/0.003506, allocations: 3.953 kB / 431 MB, free: 1.367 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.39e-05/0.00353, allocations: 17.72 kB / 431 MB, free: 1.344 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.628e-05/0.003596, allocations: 318.8 kB / 431.3 MB, free: 1.023 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.787e-06/0.003605, allocations: 4 kB / 431.4 MB, free: 1.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.903e-06/0.003612, allocations: 0 / 431.4 MB, free: 1.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.18e-05/0.003634, allocations: 21.31 kB / 431.4 MB, free: 0.9961 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.003635, allocations: 0 / 431.4 MB, free: 0.9961 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.114e-05/0.003676, allocations: 49.61 kB / 431.4 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.00369, allocations: 7.906 kB / 431.4 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-06/0.003693, allocations: 0 / 431.4 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.977e-06/0.003702, allocations: 3.938 kB / 431.4 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.177e-05/0.003744, allocations: 11.98 kB / 431.4 MB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-06/0.003746, allocations: 0 / 431.4 MB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.738e-05/0.003764, allocations: 4 kB / 431.4 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-06/0.003766, allocations: 0 / 431.4 MB, free: 0.9141 MB / 410.7 MB 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 4.665e-05/0.003813, allocations: 113.8 kB / 431.6 MB, free: 0.793 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.003825, allocations: 4 kB / 431.6 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.008e-05/0.003885, allocations: 45.36 kB / 431.6 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.003887, allocations: 3.938 kB / 431.6 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-07/0.003888, allocations: 0 / 431.6 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.00389, allocations: 0 / 431.6 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.196e-05/0.003962, allocations: 85.75 kB / 431.7 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.003963, allocations: 0 / 431.7 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.411e-05/0.003987, allocations: 8 kB / 431.7 MB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.964e-06/0.003994, allocations: 11.94 kB / 431.7 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.92e-07/0.003994, allocations: 4 kB / 431.7 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-06/0.003999, allocations: 7.938 kB / 431.7 MB, free: 0.6016 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.004, allocations: 0 / 431.7 MB, free: 0.6016 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.004001, allocations: 3.938 kB / 431.7 MB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.869e-05/0.00406, allocations: 131.5 kB / 431.9 MB, free: 464 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.873e-06/0.004067, allocations: 0 / 431.9 MB, free: 464 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.107e-05/0.004098, allocations: 8 kB / 431.9 MB, free: 456 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.983e-05/0.004128, allocations: 7.984 kB / 431.9 MB, free: 448 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.004131, allocations: 3.938 kB / 431.9 MB, free: 444 kB / 410.7 MB Notification: Performance of sorting global known variables: time 1.083e-05/0.004142, allocations: 12.84 kB / 431.9 MB, free: 428 kB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004142, allocations: 4 kB / 431.9 MB, free: 424 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001114/0.004253, allocations: 11.94 kB / 431.9 MB, free: 412 kB / 410.7 MB 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 8.005e-05/0.004333, allocations: 80.42 kB / 432 MB, free: 324 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 5.041e-05/0.004384, allocations: 20.84 kB / 432 MB, free: 300 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.004386, allocations: 0 / 432 MB, free: 300 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/0.004407, allocations: 13.28 kB / 432 MB, free: 284 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.004525, allocations: 45.61 kB / 432.1 MB, free: 232 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000279/0.004804, allocations: 115.8 kB / 432.2 MB, free: 92 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.775e-05/0.004832, allocations: 59.34 kB / 432.2 MB, free: 12 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.858e-05/0.004851, allocations: 4 kB / 432.2 MB, free: 8 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1492/0.1541, allocations: 53.75 kB / 432.3 MB, free: 2.824 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1541, allocations: 0 / 432.3 MB, free: 2.824 MB / 410.7 MB Notification: Performance of Templates: time 0.002188/0.1562, allocations: 0.7887 MB / 433.1 MB, free: 2.797 MB / 410.7 MB " [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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.2921421080827713]