Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.001823/0.001823, allocations: 79.36 kB / 19.18 MB, free: 2.52 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.002264/0.002264, allocations: 167.6 kB / 22.46 MB, free: 5.375 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.429/1.429, allocations: 177.2 MB / 202.8 MB, free: 9.168 MB / 190.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.002522/0.002522, allocations: 242.6 kB / 259.4 MB, free: 468 kB / 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.097/1.097, allocations: 138.4 MB / 454.3 MB, free: 2.016 MB / 366.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 0.6468 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.225e-05/2.357e-05, allocations: 2.281 kB / 0.6468 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002753/0.002776, allocations: 1.541 MB / 0.6483 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003398/0.003116, allocations: 132.4 kB / 0.6484 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.648e-05/0.003153, allocations: 4 kB / 0.6484 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.312e-05/0.003176, allocations: 3.938 kB / 0.6484 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.659e-05/0.003212, allocations: 0 / 0.6484 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.00342, allocations: 19.91 kB / 0.6485 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.491e-05/0.003495, allocations: 35.91 kB / 0.6485 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.577e-05/0.003571, allocations: 8 kB / 0.6485 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.374e-05/0.003625, allocations: 19.92 kB / 0.6485 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.718e-05/0.003672, allocations: 11.98 kB / 0.6485 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.003691, allocations: 7.984 kB / 0.6485 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.679e-05/0.003748, allocations: 8 kB / 0.6485 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.909e-05/0.003767, allocations: 11.98 kB / 0.6486 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.722e-05/0.003784, allocations: 0 / 0.6486 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.003906, allocations: 47.81 kB / 0.6486 GB, free: 3.203 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.003908, allocations: 0 / 0.6486 GB, free: 3.203 MB / 0.5606 GB Notification: Performance of FrontEnd: time 5.31e-07/0.003908, allocations: 0 / 0.6486 GB, free: 3.203 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.286e-06/0.003912, allocations: 4 kB / 0.6486 GB, free: 3.199 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004518/0.004363, allocations: 266.3 kB / 0.6489 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.004397, allocations: 13.34 kB / 0.6489 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.156e-05/0.004439, allocations: 0.9375 kB / 0.6489 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.004557, allocations: 113.8 kB / 0.649 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.004577, allocations: 4.312 kB / 0.649 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.004586, allocations: 384 / 0.649 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.004797, allocations: 58.23 kB / 0.649 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.004805, allocations: 192 / 0.649 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.004814, allocations: 4.375 kB / 0.6491 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.004818, allocations: 384 / 0.6491 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.005019, allocations: 43.89 kB / 0.6491 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003536/0.005373, allocations: 208.6 kB / 0.6493 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004258/0.005799, allocations: 66.41 kB / 0.6494 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.005909, allocations: 28.89 kB / 0.6494 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.763e-05/0.005987, allocations: 4 kB / 0.6494 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.006019, allocations: 34.56 kB / 0.6494 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.00602, allocations: 3.938 kB / 0.6494 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0004284/0.006448, allocations: 97.5 kB / 0.6495 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.006492, allocations: 51.41 kB / 0.6496 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.266e-05/0.006584, allocations: 105.8 kB / 0.6497 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.006602, allocations: 25.7 kB / 0.6497 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.737e-05/0.006659, allocations: 84.14 kB / 0.6498 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.006674, allocations: 3.953 kB / 0.6498 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.875e-05/0.006712, allocations: 21.72 kB / 0.6498 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.00687, allocations: 318.8 kB / 0.6501 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.006972, allocations: 15.98 kB / 0.6501 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.959e-05/0.007061, allocations: 15.98 kB / 0.6501 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.007255, allocations: 48.81 kB / 0.6502 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.007257, allocations: 0 / 0.6502 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002415/0.007498, allocations: 81.55 kB / 0.6503 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.007516, allocations: 15.92 kB / 0.6503 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.007519, allocations: 0 / 0.6503 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.00753, allocations: 0 / 0.6503 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.774e-05/0.007618, allocations: 11.98 kB / 0.6503 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.007622, allocations: 0 / 0.6503 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.855e-05/0.00768, allocations: 4 kB / 0.6503 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.007686, allocations: 0 / 0.6503 GB, free: 1.309 MB / 0.5606 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.446e-05/0.00778, allocations: 117.8 kB / 0.6504 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.785e-05/0.007808, allocations: 7.984 kB / 0.6504 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002796/0.008088, allocations: 81.27 kB / 0.6505 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.008092, allocations: 4 kB / 0.6505 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.008095, allocations: 0 / 0.6505 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.008099, allocations: 4 kB / 0.6505 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001605/0.00826, allocations: 109.2 kB / 0.6506 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.008261, allocations: 0 / 0.6506 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.899e-05/0.00834, allocations: 8.562 kB / 0.6506 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.008344, allocations: 7.984 kB / 0.6506 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.008354, allocations: 4 kB / 0.6506 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.008359, allocations: 3.938 kB / 0.6506 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.00836, allocations: 0 / 0.6506 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.008655, allocations: 175.4 kB / 0.6508 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.661e-06/0.00866, allocations: 0 / 0.6508 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.008676, allocations: 3.984 kB / 0.6508 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.181e-05/0.008768, allocations: 11.94 kB / 0.6508 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.008811, allocations: 11.92 kB / 0.6508 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.008816, allocations: 4 kB / 0.6508 GB, free: 0.6992 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.663e-05/0.008862, allocations: 83.28 kB / 0.6509 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.1e-08/0.008862, allocations: 0 / 0.6509 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002329/0.009095, allocations: 8 kB / 0.6509 GB, free: 0.6094 MB / 0.5606 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001463/0.009241, allocations: 107.2 kB / 0.651 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.009487, allocations: 47.95 kB / 0.6511 GB, free: 456 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.009489, allocations: 0 / 0.6511 GB, free: 456 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.009593, allocations: 23.97 kB / 0.6511 GB, free: 432 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.00985, allocations: 8 kB / 0.6511 GB, free: 424 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003061/0.01016, allocations: 120.7 kB / 0.6512 GB, free: 276 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.967e-05/0.01023, allocations: 59.34 kB / 0.6513 GB, free: 196 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.828e-05/0.01025, allocations: 4 kB / 0.6513 GB, free: 192 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.183e-05/0.01029, allocations: 12.5 kB / 0.6513 GB, free: 180 kB / 0.5606 GB Notification: Performance of SimCode: time 3.61e-07/0.01029, allocations: 8 kB / 0.6513 GB, free: 172 kB / 0.5606 GB Notification: Performance of Templates: time 0.2373/0.2476, allocations: 0.7336 MB / 0.652 GB, free: 56.81 MB / 0.5606 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.715018682181835] Failed to read output from testmodel.py, exit status != 0: 0.2551555596292019 0.26420250900000003 0.258123477 Calling exit ...