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.001373/0.001373, allocations: 103.6 kB / 18.95 MB, free: 2.691 MB / 14.72 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.001625/0.001625, allocations: 215.7 kB / 22.25 MB, free: 5.242 MB / 14.72 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.461/1.461, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 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.002697/0.002697, allocations: 291.3 kB / 312.7 MB, free: 2.586 MB / 238.1 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.237/1.237, allocations: 180.6 MB / 0.5369 GB, free: 14.56 MB / 382.1 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: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00299/0.00299, allocations: 110.5 kB / 0.74 GB, free: 27.83 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.1922, allocations: 95.37 MB / 0.8332 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001738/0.1939, allocations: 0.5904 MB / 0.8337 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002857/0.1942, allocations: 52.14 kB / 0.8338 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.861e-05/0.1942, allocations: 4 kB / 0.8338 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.577e-05/0.1942, allocations: 0 / 0.8338 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.412e-06/0.1942, allocations: 0 / 0.8338 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.1945, allocations: 4 kB / 0.8338 GB, free: 7.148 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 4.569e-05/0.1945, allocations: 4 kB / 0.8338 GB, free: 7.145 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.491e-05/0.1946, allocations: 4 kB / 0.8338 GB, free: 7.141 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.765e-05/0.1946, allocations: 7.984 kB / 0.8338 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 2.711e-05/0.1946, allocations: 3.984 kB / 0.8338 GB, free: 7.129 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.307e-06/0.1946, allocations: 0 / 0.8338 GB, free: 7.129 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 8.574e-05/0.1947, allocations: 11.94 kB / 0.8338 GB, free: 7.117 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.452e-05/0.1947, allocations: 4 kB / 0.8338 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.717e-05/0.1947, allocations: 0 / 0.8338 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 9.823e-05/0.1948, allocations: 15.92 kB / 0.8338 GB, free: 7.098 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1948, allocations: 0 / 0.8338 GB, free: 7.098 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.963e-06/0.1948, allocations: 0 / 0.8338 GB, free: 7.098 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.1948, allocations: 0 / 0.8338 GB, free: 7.098 MB / 0.5762 GB 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.0003407/0.1952, allocations: 250.4 kB / 0.8341 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1952, allocations: 17.34 kB / 0.8341 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.177e-05/0.1953, allocations: 0.9375 kB / 0.8341 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.665e-05/0.1953, allocations: 102.5 kB / 0.8342 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.1954, allocations: 384 / 0.8342 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.1954, allocations: 8.312 kB / 0.8342 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.1955, allocations: 34.25 kB / 0.8342 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1955, allocations: 4.188 kB / 0.8342 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.1955, allocations: 3.938 kB / 0.8342 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.1955, allocations: 0 / 0.8342 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.517e-05/0.1955, allocations: 7.938 kB / 0.8343 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001413/0.1957, allocations: 97.33 kB / 0.8343 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.994e-05/0.1957, allocations: 22.61 kB / 0.8344 GB, free: 6.461 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.65e-05/0.1958, allocations: 16.91 kB / 0.8344 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001314/0.1959, allocations: 4 kB / 0.8344 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.1959, allocations: 30.56 kB / 0.8344 GB, free: 6.398 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.1959, allocations: 0 / 0.8344 GB, free: 6.398 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.000166/0.1961, allocations: 49.56 kB / 0.8345 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.1961, allocations: 55.41 kB / 0.8345 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.229e-05/0.1962, allocations: 89.86 kB / 0.8346 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1962, allocations: 29.83 kB / 0.8346 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.879e-05/0.1963, allocations: 88.12 kB / 0.8347 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.1963, allocations: 3.938 kB / 0.8347 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.1963, allocations: 13.72 kB / 0.8347 GB, free: 6.031 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.1965, allocations: 310.8 kB / 0.835 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.728e-05/0.1965, allocations: 7.984 kB / 0.835 GB, free: 5.711 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.065e-05/0.1965, allocations: 4 kB / 0.835 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.357e-05/0.1965, allocations: 12.86 kB / 0.8351 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1965, allocations: 0 / 0.8351 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.817e-05/0.1966, allocations: 49.66 kB / 0.8351 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.1966, allocations: 4 kB / 0.8351 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1966, allocations: 3.984 kB / 0.8351 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.1966, allocations: 0 / 0.8351 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.305e-05/0.1967, allocations: 7.938 kB / 0.8351 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.1967, allocations: 3.984 kB / 0.8351 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.224e-05/0.1967, allocations: 0 / 0.8351 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.1967, allocations: 0 / 0.8351 GB, free: 5.617 MB / 0.5762 GB 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 8.975e-05/0.1968, allocations: 110.5 kB / 0.8352 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-06/0.1968, allocations: 0 / 0.8352 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.1969, allocations: 52.81 kB / 0.8353 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.1969, allocations: 3.938 kB / 0.8353 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1969, allocations: 0 / 0.8353 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1969, allocations: 0 / 0.8353 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.916e-05/0.197, allocations: 97.33 kB / 0.8354 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.197, allocations: 0 / 0.8354 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.413e-05/0.1971, allocations: 7.984 kB / 0.8354 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1971, allocations: 0 / 0.8354 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.1971, allocations: 7.938 kB / 0.8354 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.1971, allocations: 0 / 0.8354 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1971, allocations: 3.938 kB / 0.8354 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.205e-05/0.1972, allocations: 69.16 kB / 0.8355 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-06/0.1972, allocations: 0 / 0.8355 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.034e-05/0.1972, allocations: 0 / 0.8355 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.639e-05/0.1972, allocations: 3.984 kB / 0.8355 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.1972, allocations: 7.938 kB / 0.8355 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-06/0.1972, allocations: 3.938 kB / 0.8355 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.764e-05/0.1973, allocations: 75.28 kB / 0.8355 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.1e-08/0.1973, allocations: 0 / 0.8355 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001849/0.1975, allocations: 11.88 kB / 0.8356 GB, free: 5.102 MB / 0.5762 GB 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.0001648/0.1976, allocations: 103.3 kB / 0.8357 GB, free: 4.988 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 8.901e-05/0.1977, allocations: 12 kB / 0.8357 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.1977, allocations: 0 / 0.8357 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.546e-05/0.1977, allocations: 4 kB / 0.8357 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.1979, allocations: 5.859 kB / 0.8357 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000225/0.1981, allocations: 85 kB / 0.8358 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.122e-05/0.1981, allocations: 55.3 kB / 0.8358 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.457e-05/0.1982, allocations: 7.906 kB / 0.8358 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.895e-05/0.1982, allocations: 11.42 kB / 0.8358 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.1982, allocations: 4.125 kB / 0.8358 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of Templates: time 0.002636/0.2008, allocations: 319.5 kB / 0.8361 GB, free: 4.453 MB / 0.5762 GB " [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: 6.034721102565527] Failed to read output from testmodel.py, exit status != 0: 0.20813032239675522 0.22329392 0.025477757 Calling exit ...