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.001347/0.001347, allocations: 73.88 kB / 20.66 MB, free: 3.844 MB / 18.57 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.001606/0.001606, allocations: 173 kB / 24.06 MB, free: 452 kB / 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.056/1.056, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.001599/0.001599, allocations: 241.7 kB / 261.3 MB, free: 12.67 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.7241/0.7241, allocations: 138.4 MB / 456.3 MB, free: 30.05 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 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.693e-06/1.693e-06, allocations: 0 / 0.5564 GB, free: 15.78 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.727e-05/2.896e-05, allocations: 2.312 kB / 0.5564 GB, free: 15.78 MB / 490.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001385/0.001414, allocations: 0.601 MB / 0.557 GB, free: 15.17 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002616/0.001676, allocations: 43.81 kB / 0.557 GB, free: 15.13 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.278e-05/0.001699, allocations: 4 kB / 0.557 GB, free: 15.12 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 1.791e-05/0.001716, allocations: 0 / 0.557 GB, free: 15.12 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 7.504e-06/0.001724, allocations: 0 / 0.557 GB, free: 15.12 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002705/0.001994, allocations: 23.84 kB / 0.5571 GB, free: 15.1 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 5.167e-05/0.002046, allocations: 4 kB / 0.5571 GB, free: 15.1 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.879e-05/0.002095, allocations: 0 / 0.5571 GB, free: 15.1 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.177e-05/0.002127, allocations: 3.938 kB / 0.5571 GB, free: 15.09 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.451e-05/0.002151, allocations: 4 kB / 0.5571 GB, free: 15.09 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.002166, allocations: 0 / 0.5571 GB, free: 15.09 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.234e-05/0.002258, allocations: 11.98 kB / 0.5571 GB, free: 15.08 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.263e-05/0.002271, allocations: 0 / 0.5571 GB, free: 15.08 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.391e-05/0.002284, allocations: 7.984 kB / 0.5571 GB, free: 15.07 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 9.711e-05/0.002382, allocations: 11.98 kB / 0.5571 GB, free: 15.06 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.686e-06/0.002384, allocations: 0 / 0.5571 GB, free: 15.06 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.002385, allocations: 0 / 0.5571 GB, free: 15.06 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.002389, allocations: 4 kB / 0.5571 GB, free: 15.05 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.0003198/0.002709, allocations: 336.4 kB / 0.5574 GB, free: 14.69 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.002757, allocations: 13.92 kB / 0.5574 GB, free: 14.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.002787, allocations: 4.938 kB / 0.5574 GB, free: 14.67 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.992e-05/0.002857, allocations: 104.6 kB / 0.5575 GB, free: 14.54 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.002868, allocations: 384 / 0.5575 GB, free: 14.54 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.052e-06/0.002874, allocations: 384 / 0.5575 GB, free: 14.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.065e-05/0.002955, allocations: 38.27 kB / 0.5576 GB, free: 14.5 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.002963, allocations: 4.125 kB / 0.5576 GB, free: 14.5 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.00297, allocations: 384 / 0.5576 GB, free: 14.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.002976, allocations: 384 / 0.5576 GB, free: 14.5 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.357e-05/0.002999, allocations: 11.92 kB / 0.5576 GB, free: 14.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001021/0.003101, allocations: 93.27 kB / 0.5577 GB, free: 14.37 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.291e-05/0.003144, allocations: 31.08 kB / 0.5577 GB, free: 14.32 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.335e-05/0.003157, allocations: 11.62 kB / 0.5577 GB, free: 14.31 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.003273, allocations: 8.047 kB / 0.5577 GB, free: 14.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/0.003292, allocations: 41.39 kB / 0.5578 GB, free: 14.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 7.21e-07/0.003293, allocations: 4 kB / 0.5578 GB, free: 14.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 9.95e-05/0.003392, allocations: 41.62 kB / 0.5578 GB, free: 14.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.003422, allocations: 51.41 kB / 0.5579 GB, free: 14.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.677e-05/0.003469, allocations: 146.2 kB / 0.558 GB, free: 13.98 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.003479, allocations: 25.7 kB / 0.558 GB, free: 13.95 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.949e-05/0.003518, allocations: 126.9 kB / 0.5582 GB, free: 13.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.003538, allocations: 4.297 kB / 0.5582 GB, free: 13.82 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.003566, allocations: 23.38 kB / 0.5582 GB, free: 13.79 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.003705, allocations: 496.1 kB / 0.5587 GB, free: 13.29 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-06/0.003715, allocations: 8.125 kB / 0.5587 GB, free: 13.28 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-06/0.003721, allocations: 16 / 0.5587 GB, free: 13.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.417e-05/0.003755, allocations: 23.59 kB / 0.5587 GB, free: 13.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.003757, allocations: 0 / 0.5587 GB, free: 13.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.601e-05/0.003803, allocations: 33.7 kB / 0.5587 GB, free: 13.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.003815, allocations: 4 kB / 0.5587 GB, free: 13.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.00382, allocations: 4 kB / 0.5587 GB, free: 13.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.158e-06/0.003829, allocations: 0 / 0.5587 GB, free: 13.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.253e-05/0.003872, allocations: 0 / 0.5587 GB, free: 13.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.916e-06/0.003875, allocations: 4.094 kB / 0.5587 GB, free: 13.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.011e-05/0.003885, allocations: 7.984 kB / 0.5587 GB, free: 13.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-06/0.003888, allocations: 0 / 0.5587 GB, free: 13.2 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.165e-05/0.00396, allocations: 160.5 kB / 0.5589 GB, free: 13.03 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.698e-06/0.003964, allocations: 4 kB / 0.5589 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.308e-05/0.004027, allocations: 40.78 kB / 0.5589 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.004031, allocations: 4 kB / 0.5589 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.004032, allocations: 0 / 0.5589 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.004035, allocations: 0 / 0.5589 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.536e-05/0.004101, allocations: 97.2 kB / 0.559 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.004101, allocations: 4.031 kB / 0.559 GB, free: 12.85 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.003e-05/0.004111, allocations: 4 kB / 0.559 GB, free: 12.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.004112, allocations: 0 / 0.559 GB, free: 12.85 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-06/0.004117, allocations: 0 / 0.559 GB, free: 12.85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.004119, allocations: 7.984 kB / 0.559 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.004121, allocations: 7.938 kB / 0.559 GB, free: 12.83 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.776e-05/0.004178, allocations: 80.33 kB / 0.5591 GB, free: 12.73 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.707e-06/0.004182, allocations: 0 / 0.5591 GB, free: 12.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.341e-06/0.004188, allocations: 0 / 0.5591 GB, free: 12.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.4e-06/0.004194, allocations: 7.984 kB / 0.5591 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.242e-05/0.004216, allocations: 4 kB / 0.5591 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-06/0.004218, allocations: 4.031 kB / 0.5591 GB, free: 12.71 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.255e-05/0.00425, allocations: 119.2 kB / 0.5593 GB, free: 12.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.00425, allocations: 0 / 0.5593 GB, free: 12.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001198/0.00437, allocations: 4 kB / 0.5593 GB, free: 12.59 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.0001242/0.004494, allocations: 99.25 kB / 0.5594 GB, free: 12.49 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 5.665e-05/0.004551, allocations: 15.67 kB / 0.5594 GB, free: 12.47 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.12e-07/0.004552, allocations: 0 / 0.5594 GB, free: 12.47 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.21e-05/0.004564, allocations: 15.62 kB / 0.5594 GB, free: 12.45 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.847e-05/0.004652, allocations: 19.88 kB / 0.5594 GB, free: 12.43 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000137/0.004789, allocations: 97 kB / 0.5595 GB, free: 12.31 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.605e-05/0.004815, allocations: 51.36 kB / 0.5595 GB, free: 12.24 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.079e-05/0.004826, allocations: 4 kB / 0.5595 GB, free: 12.24 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.856e-05/0.004855, allocations: 66.2 kB / 0.5596 GB, free: 12.17 MB / 490.7 MB Notification: Performance of SimCode: time 4.91e-07/0.004855, allocations: 0 / 0.5596 GB, free: 12.17 MB / 490.7 MB Notification: Performance of Templates: time 0.001646/0.006502, allocations: 380.9 kB / 0.56 GB, free: 11.81 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.6569729172624648]