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.001046/0.001046, allocations: 93.06 kB / 19.65 MB, free: 280 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.001864/0.001864, allocations: 169.3 kB / 23.02 MB, free: 1.551 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 0.9136/0.9136, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.0017/0.0017, allocations: 236.8 kB / 260.2 MB, free: 12.82 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 0.7932/0.7932, allocations: 138.4 MB / 455.2 MB, free: 1.547 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 2.074e-06/2.074e-06, allocations: 0 / 0.5552 GB, free: 484 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.954e-05/3.161e-05, allocations: 2.312 kB / 0.5552 GB, free: 480 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001688/0.00172, allocations: 0.6002 MB / 0.5558 GB, free: 15.86 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002637/0.001983, allocations: 51.7 kB / 0.5558 GB, free: 15.82 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.902e-05/0.002002, allocations: 0 / 0.5558 GB, free: 15.82 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.232e-05/0.002025, allocations: 0 / 0.5558 GB, free: 15.82 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.002032, allocations: 0 / 0.5558 GB, free: 15.82 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.002291, allocations: 15.86 kB / 0.5558 GB, free: 15.8 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 5.081e-05/0.002342, allocations: 8 kB / 0.5558 GB, free: 15.79 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.24e-05/0.002385, allocations: 3.984 kB / 0.5558 GB, free: 15.79 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.82e-05/0.002413, allocations: 0 / 0.5558 GB, free: 15.79 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.389e-05/0.002437, allocations: 7.938 kB / 0.5558 GB, free: 15.78 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.00245, allocations: 0 / 0.5558 GB, free: 15.78 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.59e-05/0.002546, allocations: 11.98 kB / 0.5559 GB, free: 15.77 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.305e-05/0.002559, allocations: 3.984 kB / 0.5559 GB, free: 15.77 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.551e-05/0.002574, allocations: 0 / 0.5559 GB, free: 15.77 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 9.892e-05/0.002673, allocations: 8 kB / 0.5559 GB, free: 15.76 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.002676, allocations: 4 kB / 0.5559 GB, free: 15.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.002677, allocations: 0 / 0.5559 GB, free: 15.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.002683, allocations: 4 kB / 0.5559 GB, free: 15.75 MB / 490.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.0002983/0.002981, allocations: 344.4 kB / 0.5562 GB, free: 15.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.003025, allocations: 8.75 kB / 0.5562 GB, free: 15.37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.003071, allocations: 4.938 kB / 0.5562 GB, free: 15.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.157e-05/0.003143, allocations: 104.6 kB / 0.5563 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.003155, allocations: 384 / 0.5563 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.003166, allocations: 4.359 kB / 0.5563 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.926e-05/0.003265, allocations: 38.19 kB / 0.5564 GB, free: 15.19 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.003272, allocations: 192 / 0.5564 GB, free: 15.19 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.003281, allocations: 384 / 0.5564 GB, free: 15.19 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.003292, allocations: 8.375 kB / 0.5564 GB, free: 15.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.858e-05/0.00332, allocations: 3.938 kB / 0.5564 GB, free: 15.18 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001431/0.003463, allocations: 116.6 kB / 0.5565 GB, free: 15.03 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.54e-05/0.003529, allocations: 27.09 kB / 0.5565 GB, free: 14.99 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.073e-05/0.00355, allocations: 7.75 kB / 0.5565 GB, free: 14.98 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001625/0.003712, allocations: 12 kB / 0.5565 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.003741, allocations: 37.33 kB / 0.5566 GB, free: 14.92 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.003742, allocations: 0 / 0.5566 GB, free: 14.92 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001667/0.003909, allocations: 41.62 kB / 0.5566 GB, free: 14.87 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.003947, allocations: 55.53 kB / 0.5567 GB, free: 14.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.568e-05/0.004002, allocations: 146.6 kB / 0.5568 GB, free: 14.65 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.004015, allocations: 29.7 kB / 0.5568 GB, free: 14.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.228e-05/0.004047, allocations: 126.9 kB / 0.5569 GB, free: 14.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.004068, allocations: 3.953 kB / 0.5569 GB, free: 14.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.004103, allocations: 23.36 kB / 0.557 GB, free: 14.45 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.004232, allocations: 496.1 kB / 0.5574 GB, free: 13.95 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.58e-05/0.004248, allocations: 4 kB / 0.5574 GB, free: 13.95 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.739e-06/0.004257, allocations: 4 kB / 0.5574 GB, free: 13.95 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.846e-05/0.004296, allocations: 15.62 kB / 0.5575 GB, free: 13.93 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.004299, allocations: 4.062 kB / 0.5575 GB, free: 13.92 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.328e-05/0.004372, allocations: 41.69 kB / 0.5575 GB, free: 13.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.004388, allocations: 6.812 kB / 0.5575 GB, free: 13.87 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.004393, allocations: 0 / 0.5575 GB, free: 13.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.004408, allocations: 4 kB / 0.5575 GB, free: 13.87 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.533e-05/0.004473, allocations: 0 / 0.5575 GB, free: 13.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.004478, allocations: 0 / 0.5575 GB, free: 13.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.6e-05/0.004494, allocations: 7.938 kB / 0.5575 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.004499, allocations: 0 / 0.5575 GB, free: 13.86 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 7.412e-05/0.004573, allocations: 156.6 kB / 0.5577 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.967e-06/0.004582, allocations: 7.984 kB / 0.5577 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.547e-05/0.004667, allocations: 40.8 kB / 0.5577 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.004669, allocations: 0 / 0.5577 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.004673, allocations: 4 kB / 0.5577 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.004677, allocations: 3.984 kB / 0.5577 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.774e-05/0.004745, allocations: 112.6 kB / 0.5578 GB, free: 13.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.004746, allocations: 0 / 0.5578 GB, free: 13.49 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.769e-05/0.004764, allocations: 4 kB / 0.5578 GB, free: 13.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.004766, allocations: 0 / 0.5578 GB, free: 13.49 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.004772, allocations: 4 kB / 0.5578 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.004773, allocations: 4.031 kB / 0.5578 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.004775, allocations: 4 kB / 0.5579 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.091e-05/0.004845, allocations: 80.31 kB / 0.5579 GB, free: 13.38 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-06/0.004853, allocations: 3.953 kB / 0.5579 GB, free: 13.37 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.039e-05/0.004864, allocations: 4 kB / 0.5579 GB, free: 13.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.964e-06/0.004871, allocations: 3.938 kB / 0.5579 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.086e-05/0.004901, allocations: 3.984 kB / 0.5579 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.004904, allocations: 0 / 0.5579 GB, free: 13.36 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.225e-05/0.004936, allocations: 119.2 kB / 0.5581 GB, free: 13.24 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004936, allocations: 0 / 0.5581 GB, free: 13.24 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001897/0.005126, allocations: 12.03 kB / 0.5581 GB, free: 13.23 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.0001469/0.005273, allocations: 103.2 kB / 0.5582 GB, free: 13.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 8.853e-05/0.005361, allocations: 19.67 kB / 0.5582 GB, free: 13.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.005363, allocations: 0 / 0.5582 GB, free: 13.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.91e-05/0.005382, allocations: 15.62 kB / 0.5582 GB, free: 13.08 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.005523, allocations: 3.938 kB / 0.5582 GB, free: 13.07 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002455/0.005769, allocations: 97.03 kB / 0.5583 GB, free: 12.95 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.183e-05/0.00581, allocations: 59.48 kB / 0.5584 GB, free: 12.88 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.476e-05/0.005825, allocations: 0 / 0.5584 GB, free: 12.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.371e-05/0.005849, allocations: 8.5 kB / 0.5584 GB, free: 12.87 MB / 490.7 MB Notification: Performance of SimCode: time 6.91e-07/0.00585, allocations: 4 kB / 0.5584 GB, free: 12.86 MB / 490.7 MB Notification: Performance of Templates: time 0.002702/0.008551, allocations: 360.5 kB / 0.5587 GB, free: 12.51 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: 3.596682866103947]