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.00185/0.00185, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 13.93 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.002043/0.002043, allocations: 169.6 kB / 22.76 MB, free: 1.66 MB / 18.57 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.555/1.555, allocations: 177.1 MB / 203.1 MB, free: 5.621 MB / 186.7 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.003186/0.003186, allocations: 238 kB / 259.8 MB, free: 12.86 MB / 250.7 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.181/1.181, allocations: 138.5 MB / 454.7 MB, free: 1.457 MB / 362.7 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: Performance of FrontEnd - loaded program: time 4.498e-06/4.498e-06, allocations: 4 kB / 0.5544 GB, free: 0.7383 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.643e-05/3.093e-05, allocations: 5.406 kB / 0.5544 GB, free: 0.7344 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001813/0.001844, allocations: 0.5809 MB / 0.555 GB, free: 156 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002314/0.002075, allocations: 47.8 kB / 0.555 GB, free: 108 kB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.591e-05/0.002091, allocations: 0 / 0.555 GB, free: 108 kB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 1.018e-05/0.002101, allocations: 0 / 0.555 GB, free: 108 kB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 4.759e-06/0.002106, allocations: 0 / 0.555 GB, free: 108 kB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.002322, allocations: 7.938 kB / 0.555 GB, free: 100 kB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 4.161e-05/0.002364, allocations: 11.98 kB / 0.555 GB, free: 88 kB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.194e-05/0.002396, allocations: 0 / 0.555 GB, free: 88 kB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.458e-05/0.00242, allocations: 0 / 0.555 GB, free: 88 kB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.172e-05/0.002442, allocations: 7.984 kB / 0.555 GB, free: 80 kB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.002453, allocations: 0 / 0.555 GB, free: 80 kB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.92e-05/0.002522, allocations: 15.98 kB / 0.5551 GB, free: 64 kB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 7.594e-06/0.002529, allocations: 0 / 0.5551 GB, free: 64 kB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 1.606e-05/0.002545, allocations: 3.938 kB / 0.5551 GB, free: 60 kB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 7.819e-05/0.002624, allocations: 11.92 kB / 0.5551 GB, free: 48 kB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.002626, allocations: 0 / 0.5551 GB, free: 48 kB / 474.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.002626, allocations: 0 / 0.5551 GB, free: 48 kB / 474.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.002629, allocations: 4 kB / 0.5551 GB, free: 44 kB / 474.7 MB 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.0005028/0.003132, allocations: 344.4 kB / 0.5554 GB, free: 15.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.003166, allocations: 8.75 kB / 0.5554 GB, free: 15.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.861e-05/0.003215, allocations: 4.938 kB / 0.5554 GB, free: 15.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.283e-05/0.003308, allocations: 104.6 kB / 0.5555 GB, free: 15.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.003318, allocations: 4.375 kB / 0.5555 GB, free: 15.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.003325, allocations: 384 / 0.5555 GB, free: 15.52 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.267e-05/0.003418, allocations: 38.25 kB / 0.5556 GB, free: 15.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.003425, allocations: 192 / 0.5556 GB, free: 15.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.003434, allocations: 4.359 kB / 0.5556 GB, free: 15.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.226e-06/0.003437, allocations: 384 / 0.5556 GB, free: 15.48 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.824e-05/0.003475, allocations: 11.88 kB / 0.5556 GB, free: 15.46 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.003629, allocations: 112.6 kB / 0.5557 GB, free: 15.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.59e-05/0.003695, allocations: 31.09 kB / 0.5557 GB, free: 15.28 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.505e-05/0.00372, allocations: 11.75 kB / 0.5557 GB, free: 15.26 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.00384, allocations: 8 kB / 0.5557 GB, free: 15.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.003877, allocations: 33.39 kB / 0.5558 GB, free: 15.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.003878, allocations: 0 / 0.5558 GB, free: 15.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001555/0.004033, allocations: 49.58 kB / 0.5558 GB, free: 15.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.004078, allocations: 55.41 kB / 0.5559 GB, free: 15.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.004181, allocations: 142.2 kB / 0.556 GB, free: 14.94 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.0042, allocations: 25.7 kB / 0.556 GB, free: 14.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.496e-05/0.004265, allocations: 126.9 kB / 0.5561 GB, free: 14.78 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.004284, allocations: 4 kB / 0.5562 GB, free: 14.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.283e-05/0.004327, allocations: 23.48 kB / 0.5562 GB, free: 14.74 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002587/0.004586, allocations: 0.4922 MB / 0.5567 GB, free: 14.24 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.0046, allocations: 4 kB / 0.5567 GB, free: 14.23 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-06/0.004607, allocations: 0 / 0.5567 GB, free: 14.23 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.012e-05/0.004647, allocations: 23.69 kB / 0.5567 GB, free: 14.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.004648, allocations: 0 / 0.5567 GB, free: 14.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.338e-05/0.004722, allocations: 45.62 kB / 0.5567 GB, free: 14.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.004734, allocations: 4 kB / 0.5567 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.004738, allocations: 0 / 0.5567 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.004751, allocations: 0 / 0.5567 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.035e-05/0.004801, allocations: 8.094 kB / 0.5567 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.004809, allocations: 3.984 kB / 0.5567 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.004823, allocations: 3.938 kB / 0.5567 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.004831, allocations: 4 kB / 0.5567 GB, free: 14.13 MB / 490.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 (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 0.0001052/0.004937, allocations: 156.6 kB / 0.5569 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.474e-06/0.004944, allocations: 0 / 0.5569 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.005046, allocations: 44.8 kB / 0.5569 GB, free: 13.92 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.005047, allocations: 0 / 0.5569 GB, free: 13.92 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.005053, allocations: 4 kB / 0.5569 GB, free: 13.92 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.005057, allocations: 3.984 kB / 0.5569 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.005163, allocations: 116.6 kB / 0.5571 GB, free: 13.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.005164, allocations: 0 / 0.5571 GB, free: 13.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.531e-05/0.005189, allocations: 4 kB / 0.5571 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.005191, allocations: 0 / 0.5571 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.005196, allocations: 0 / 0.5571 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.005197, allocations: 0 / 0.5571 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.0052, allocations: 4 kB / 0.5571 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001035/0.005304, allocations: 76.38 kB / 0.5571 GB, free: 13.66 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-06/0.005308, allocations: 0 / 0.5571 GB, free: 13.66 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.065e-05/0.005318, allocations: 8 kB / 0.5571 GB, free: 13.65 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.015e-05/0.005328, allocations: 4.031 kB / 0.5572 GB, free: 13.65 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.074e-05/0.005359, allocations: 3.984 kB / 0.5572 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-06/0.005361, allocations: 3.938 kB / 0.5572 GB, free: 13.64 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.276e-05/0.005424, allocations: 123.2 kB / 0.5573 GB, free: 13.52 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005424, allocations: 0 / 0.5573 GB, free: 13.52 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001704/0.005594, allocations: 4 kB / 0.5573 GB, free: 13.52 MB / 490.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,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.0001438/0.005738, allocations: 103.1 kB / 0.5574 GB, free: 13.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 8.642e-05/0.005825, allocations: 23.67 kB / 0.5574 GB, free: 13.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.005826, allocations: 64 / 0.5574 GB, free: 13.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.357e-05/0.00585, allocations: 15.69 kB / 0.5574 GB, free: 13.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.005974, allocations: 0 / 0.5574 GB, free: 13.36 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002212/0.006196, allocations: 105 kB / 0.5575 GB, free: 13.23 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.468e-05/0.00625, allocations: 59.3 kB / 0.5576 GB, free: 13.15 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.024e-05/0.006261, allocations: 0 / 0.5576 GB, free: 13.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.922e-05/0.00628, allocations: 8.5 kB / 0.5576 GB, free: 13.14 MB / 490.7 MB Notification: Performance of SimCode: time 4.21e-07/0.00628, allocations: 0 / 0.5576 GB, free: 13.14 MB / 490.7 MB Notification: Performance of Templates: time 0.002797/0.009078, allocations: 356.4 kB / 0.5579 GB, free: 12.8 MB / 490.7 MB " [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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.698537465068512]