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.001115/0.001115, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001798/0.002913, allocations: 440 kB / 10.41 MB, free: 284 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.001103/0.001103, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001752/0.002856, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.9617/0.9617, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09166/1.053, allocations: 53.67 MB / 243.4 MB, free: 15.49 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.001618/0.001618, allocations: 227.7 kB / 244.4 MB, free: 14.53 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004361/0.005979, allocations: 467.7 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.7618/0.7618, allocations: 138.7 MB / 384.3 MB, free: 356 kB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0751/0.8369, allocations: 42.39 MB / 426.7 MB, free: 5.836 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.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.513e-06/1.513e-06, allocations: 0 / 428.1 MB, free: 4.422 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.856e-05/2.007e-05, allocations: 6.312 kB / 428.1 MB, free: 4.414 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.002067/0.002087, allocations: 0.6547 MB / 428.8 MB, free: 3.758 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000127/0.002215, allocations: 55.8 kB / 428.8 MB, free: 3.703 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.041e-05/0.002225, allocations: 0 / 428.8 MB, free: 3.703 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 4.328e-06/0.002229, allocations: 0 / 428.8 MB, free: 3.703 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.733e-06/0.002231, allocations: 0 / 428.8 MB, free: 3.703 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001148/0.002346, allocations: 15.86 kB / 428.8 MB, free: 3.688 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.758e-05/0.002393, allocations: 4 kB / 428.8 MB, free: 3.684 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.793e-05/0.002431, allocations: 0 / 428.8 MB, free: 3.684 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.704e-05/0.002468, allocations: 7.984 kB / 428.9 MB, free: 3.676 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.722e-05/0.002496, allocations: 7.938 kB / 428.9 MB, free: 3.668 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.002508, allocations: 0 / 428.9 MB, free: 3.668 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.777e-05/0.002606, allocations: 11.98 kB / 428.9 MB, free: 3.656 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.002619, allocations: 0 / 428.9 MB, free: 3.656 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.112e-05/0.00263, allocations: 4 kB / 428.9 MB, free: 3.652 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.531e-05/0.002726, allocations: 7.984 kB / 428.9 MB, free: 3.645 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.257e-05/0.002738, allocations: 0 / 428.9 MB, free: 3.645 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.002739, allocations: 0 / 428.9 MB, free: 3.645 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.002753, allocations: 0 / 428.9 MB, free: 3.645 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002874/0.003041, allocations: 216.8 kB / 429.1 MB, free: 3.406 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.003083, allocations: 19.98 kB / 429.1 MB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.961e-05/0.003112, allocations: 0.9375 kB / 429.1 MB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.718e-05/0.003179, allocations: 101.8 kB / 429.2 MB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.00319, allocations: 4.375 kB / 429.2 MB, free: 3.258 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.003203, allocations: 4.312 kB / 429.2 MB, free: 3.254 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.44e-05/0.003287, allocations: 34.25 kB / 429.3 MB, free: 3.215 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.003294, allocations: 4.125 kB / 429.3 MB, free: 3.211 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-06/0.0033, allocations: 384 / 429.3 MB, free: 3.211 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.003305, allocations: 384 / 429.3 MB, free: 3.211 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.897e-05/0.003324, allocations: 3.938 kB / 429.3 MB, free: 3.207 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.675e-05/0.003411, allocations: 64.98 kB / 429.3 MB, free: 3.129 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.53e-05/0.003456, allocations: 26.59 kB / 429.4 MB, free: 3.094 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.627e-05/0.003472, allocations: 12.86 kB / 429.4 MB, free: 3.078 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001177/0.00359, allocations: 4 kB / 429.4 MB, free: 3.074 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.003614, allocations: 34.56 kB / 429.4 MB, free: 3.031 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.003615, allocations: 0 / 429.4 MB, free: 3.031 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.000104/0.003719, allocations: 37.69 kB / 429.4 MB, free: 2.988 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.00375, allocations: 51.41 kB / 429.5 MB, free: 2.926 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.015e-05/0.00379, allocations: 93.84 kB / 429.6 MB, free: 2.824 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.003804, allocations: 29.83 kB / 429.6 MB, free: 2.789 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.157e-05/0.003825, allocations: 84.14 kB / 429.7 MB, free: 2.703 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.003847, allocations: 3.953 kB / 429.7 MB, free: 2.699 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/0.00388, allocations: 17.72 kB / 429.7 MB, free: 2.676 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.555e-05/0.003965, allocations: 318.8 kB / 430 MB, free: 2.355 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.628e-06/0.003975, allocations: 3.938 kB / 430 MB, free: 2.352 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-06/0.003983, allocations: 4 kB / 430 MB, free: 2.348 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.722e-05/0.00402, allocations: 8.859 kB / 430 MB, free: 2.336 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.004022, allocations: 0 / 430 MB, free: 2.336 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.905e-05/0.004081, allocations: 41.75 kB / 430.1 MB, free: 2.289 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.004098, allocations: 4 kB / 430.1 MB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.004103, allocations: 0 / 430.1 MB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.004116, allocations: 0 / 430.1 MB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.623e-05/0.004172, allocations: 4 kB / 430.1 MB, free: 2.281 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.537e-06/0.004176, allocations: 0 / 430.1 MB, free: 2.281 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.23e-05/0.004188, allocations: 3.938 kB / 430.1 MB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-06/0.004192, allocations: 0 / 430.1 MB, free: 2.277 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 (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 6.408e-05/0.004256, allocations: 113.8 kB / 430.2 MB, free: 2.156 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-06/0.004265, allocations: 7.969 kB / 430.2 MB, free: 2.148 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.976e-05/0.004344, allocations: 44.89 kB / 430.3 MB, free: 2.102 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.004346, allocations: 0 / 430.3 MB, free: 2.102 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.004348, allocations: 0 / 430.3 MB, free: 2.102 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.004351, allocations: 0 / 430.3 MB, free: 2.102 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.679e-05/0.004427, allocations: 77.75 kB / 430.3 MB, free: 2.008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.004429, allocations: 0 / 430.3 MB, free: 2.008 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.673e-05/0.004455, allocations: 4 kB / 430.3 MB, free: 2.004 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-06/0.00446, allocations: 0 / 430.3 MB, free: 2.004 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.004462, allocations: 0 / 430.3 MB, free: 2.004 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-06/0.004466, allocations: 0 / 430.3 MB, free: 2.004 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.004467, allocations: 0 / 430.3 MB, free: 2.004 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.004469, allocations: 4.031 kB / 430.3 MB, free: 2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.261e-05/0.004531, allocations: 65 kB / 430.4 MB, free: 1.918 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.488e-06/0.004541, allocations: 4 kB / 430.4 MB, free: 1.914 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.004549, allocations: 0 / 430.4 MB, free: 1.914 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.004574, allocations: 7.984 kB / 430.4 MB, free: 1.906 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-06/0.004577, allocations: 0 / 430.4 MB, free: 1.906 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.036e-06/0.004585, allocations: 4.859 kB / 430.4 MB, free: 1.898 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.004585, allocations: 0 / 430.4 MB, free: 1.898 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001529/0.004738, allocations: 4 kB / 430.4 MB, free: 1.895 MB / 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,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.0001235/0.004861, allocations: 84.45 kB / 430.5 MB, free: 1.805 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 5.787e-05/0.004919, allocations: 16.84 kB / 430.5 MB, free: 1.785 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.004923, allocations: 0 / 430.5 MB, free: 1.785 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.48e-05/0.004938, allocations: 12.8 kB / 430.5 MB, free: 1.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.733e-05/0.004996, allocations: 11.94 kB / 430.6 MB, free: 1.758 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001689/0.005165, allocations: 95.33 kB / 430.6 MB, free: 1.641 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.951e-05/0.005194, allocations: 55.36 kB / 430.7 MB, free: 1.566 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.283e-05/0.005207, allocations: 3.938 kB / 430.7 MB, free: 1.562 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.00524, allocations: 51.56 kB / 430.8 MB, free: 1.512 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.005241, allocations: 4 kB / 430.8 MB, free: 1.508 MB / 410.7 MB Notification: Performance of Templates: time 0.002158/0.007399, allocations: 397.3 kB / 431.1 MB, free: 1.121 MB / 410.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.1935243625193834]