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.001396/0.001396, allocations: 88.72 kB / 19.44 MB, free: 356 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.001568/0.001568, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.455/1.455, allocations: 177.1 MB / 203.1 MB, free: 5.598 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.002589/0.002589, allocations: 222.4 kB / 259.8 MB, free: 12.84 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.094/1.094, allocations: 138.4 MB / 454.7 MB, free: 1.418 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 1.884e-06/1.884e-06, allocations: 0 / 0.5544 GB, free: 0.7539 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.035e-05/3.223e-05, allocations: 2.312 kB / 0.5544 GB, free: 0.75 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.002647/0.002679, allocations: 0.5849 MB / 0.555 GB, free: 168 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003309/0.00301, allocations: 47.8 kB / 0.555 GB, free: 120 kB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.861e-05/0.003029, allocations: 0 / 0.555 GB, free: 120 kB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 1.256e-05/0.003041, allocations: 3.938 kB / 0.555 GB, free: 116 kB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 8.135e-06/0.003049, allocations: 0 / 0.555 GB, free: 116 kB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002864/0.003336, allocations: 15.92 kB / 0.555 GB, free: 100 kB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 5.109e-05/0.003387, allocations: 11.98 kB / 0.555 GB, free: 88 kB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.00343, allocations: 0 / 0.555 GB, free: 88 kB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.738e-05/0.003457, allocations: 0 / 0.555 GB, free: 88 kB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.411e-05/0.003481, allocations: 4 kB / 0.555 GB, free: 84 kB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.003495, allocations: 0 / 0.555 GB, free: 84 kB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.003607, allocations: 11.98 kB / 0.555 GB, free: 72 kB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 1.704e-05/0.003624, allocations: 3.984 kB / 0.555 GB, free: 68 kB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 2.246e-05/0.003646, allocations: 0 / 0.555 GB, free: 68 kB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.003746, allocations: 11.94 kB / 0.5551 GB, free: 56 kB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.003756, allocations: 7.984 kB / 0.5551 GB, free: 48 kB / 474.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.003757, allocations: 0 / 0.5551 GB, free: 48 kB / 474.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.003761, 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.0004444/0.004206, allocations: 234.4 kB / 0.5553 GB, free: 15.78 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.00425, allocations: 8.75 kB / 0.5553 GB, free: 15.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.505e-05/0.004306, allocations: 4.938 kB / 0.5553 GB, free: 15.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.004443, allocations: 105.7 kB / 0.5554 GB, free: 15.64 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.00446, allocations: 4.359 kB / 0.5554 GB, free: 15.64 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.004479, allocations: 4.375 kB / 0.5554 GB, free: 15.63 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.004606, allocations: 30.27 kB / 0.5554 GB, free: 15.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.004614, allocations: 192 / 0.5554 GB, free: 15.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.004624, allocations: 384 / 0.5554 GB, free: 15.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.004632, allocations: 8.375 kB / 0.5555 GB, free: 15.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.692e-05/0.004679, allocations: 7.875 kB / 0.5555 GB, free: 15.58 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002067/0.004886, allocations: 105.3 kB / 0.5556 GB, free: 15.45 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.431e-05/0.00497, allocations: 18.61 kB / 0.5556 GB, free: 15.42 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.252e-05/0.005003, allocations: 8.922 kB / 0.5556 GB, free: 15.41 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001475/0.00515, allocations: 4 kB / 0.5556 GB, free: 15.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.895e-05/0.005199, allocations: 38.55 kB / 0.5556 GB, free: 15.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.005201, allocations: 0 / 0.5556 GB, free: 15.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002185/0.005419, allocations: 41.59 kB / 0.5557 GB, free: 15.31 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.4e-05/0.005493, allocations: 59.53 kB / 0.5557 GB, free: 15.24 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.912e-05/0.005582, allocations: 93.86 kB / 0.5558 GB, free: 15.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.00561, allocations: 25.7 kB / 0.5558 GB, free: 15.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.502e-05/0.005675, allocations: 80.14 kB / 0.5559 GB, free: 15.03 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.005696, allocations: 0 / 0.5559 GB, free: 15.03 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.802e-05/0.005754, allocations: 17.7 kB / 0.5559 GB, free: 15 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002539/0.006008, allocations: 318.8 kB / 0.5562 GB, free: 14.68 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.056e-05/0.006029, allocations: 4 kB / 0.5562 GB, free: 14.68 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.118e-05/0.00604, allocations: 0 / 0.5562 GB, free: 14.68 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.37e-05/0.006103, allocations: 8.859 kB / 0.5563 GB, free: 14.67 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.006106, allocations: 8.062 kB / 0.5563 GB, free: 14.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001265/0.006232, allocations: 45.62 kB / 0.5563 GB, free: 14.61 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.00625, allocations: 4 kB / 0.5563 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.006255, allocations: 0 / 0.5563 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.34e-05/0.006289, allocations: 3.984 kB / 0.5563 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.533e-05/0.006354, allocations: 4 kB / 0.5563 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.006363, allocations: 3.984 kB / 0.5563 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.373e-05/0.006387, allocations: 3.938 kB / 0.5563 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.006392, allocations: 0 / 0.5563 GB, free: 14.59 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.0001358/0.006528, allocations: 117.9 kB / 0.5564 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.734e-05/0.006545, allocations: 4 kB / 0.5564 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.006675, allocations: 44.73 kB / 0.5565 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.006677, allocations: 0 / 0.5565 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.006686, allocations: 3.984 kB / 0.5565 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.006689, allocations: 0 / 0.5565 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.006852, allocations: 113.2 kB / 0.5566 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.006854, allocations: 0 / 0.5566 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.455e-05/0.006889, allocations: 4 kB / 0.5566 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.006892, allocations: 0 / 0.5566 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.006898, allocations: 0 / 0.5566 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.0069, allocations: 4.031 kB / 0.5566 GB, free: 14.26 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.006901, allocations: 0 / 0.5566 GB, free: 14.26 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.007041, allocations: 69.06 kB / 0.5567 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.57e-06/0.007047, allocations: 0 / 0.5567 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.00706, allocations: 0 / 0.5567 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.106e-05/0.007081, allocations: 4 kB / 0.5567 GB, free: 14.17 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.696e-05/0.007138, allocations: 7.922 kB / 0.5567 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.517e-06/0.007141, allocations: 0 / 0.5567 GB, free: 14.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.376e-05/0.007205, allocations: 75.28 kB / 0.5567 GB, free: 14.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.007205, allocations: 0 / 0.5567 GB, free: 14.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003402/0.007545, allocations: 8.031 kB / 0.5568 GB, free: 14.08 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.0002306/0.007776, allocations: 107.2 kB / 0.5569 GB, free: 13.97 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 8.578e-05/0.007861, allocations: 7.984 kB / 0.5569 GB, free: 13.96 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.007863, allocations: 4 kB / 0.5569 GB, free: 13.96 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.343e-05/0.007887, allocations: 4 kB / 0.5569 GB, free: 13.95 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.008112, allocations: 0 / 0.5569 GB, free: 13.95 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003216/0.008433, allocations: 99.27 kB / 0.557 GB, free: 13.83 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.041e-05/0.008514, allocations: 55.36 kB / 0.557 GB, free: 13.76 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.644e-05/0.00853, allocations: 4.125 kB / 0.557 GB, free: 13.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.008565, allocations: 12.5 kB / 0.557 GB, free: 13.74 MB / 490.7 MB Notification: Performance of SimCode: time 5.41e-07/0.008565, allocations: 0 / 0.557 GB, free: 13.74 MB / 490.7 MB Notification: Performance of Templates: time 0.003854/0.01242, allocations: 352 kB / 0.5574 GB, free: 13.4 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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.335892963921651]