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.0009799/0.0009799, allocations: 81.95 kB / 19.87 MB, free: 4.617 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.001113/0.001113, allocations: 169.7 kB / 23.28 MB, free: 1.219 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.9822/0.9822, allocations: 177.2 MB / 203.7 MB, free: 5.52 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: 234.1 kB / 260.5 MB, free: 12.68 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.7573/0.7573, allocations: 138.4 MB / 455.5 MB, free: 1.371 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 1.934e-06/1.934e-06, allocations: 3.938 kB / 0.5557 GB, free: 160 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.64e-05/2.833e-05, allocations: 10.31 kB / 0.5557 GB, free: 148 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001828/0.001856, allocations: 0.5884 MB / 0.5562 GB, free: 15.55 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003332/0.00219, allocations: 51.8 kB / 0.5563 GB, free: 15.5 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.703e-05/0.002217, allocations: 0 / 0.5563 GB, free: 15.5 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.506e-05/0.002242, allocations: 3.938 kB / 0.5563 GB, free: 15.5 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 8.637e-06/0.00225, allocations: 4 kB / 0.5563 GB, free: 15.5 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.002548, allocations: 11.98 kB / 0.5563 GB, free: 15.48 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 5.568e-05/0.002603, allocations: 3.984 kB / 0.5563 GB, free: 15.48 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.654e-05/0.00265, allocations: 4 kB / 0.5563 GB, free: 15.48 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.346e-05/0.002683, allocations: 0 / 0.5563 GB, free: 15.48 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.467e-05/0.002708, allocations: 7.922 kB / 0.5563 GB, free: 15.47 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.002721, allocations: 0 / 0.5563 GB, free: 15.47 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.66e-05/0.002818, allocations: 12 kB / 0.5563 GB, free: 15.46 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.188e-05/0.00283, allocations: 0 / 0.5563 GB, free: 15.46 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.324e-05/0.002843, allocations: 0 / 0.5563 GB, free: 15.46 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.002945, allocations: 15.97 kB / 0.5564 GB, free: 15.44 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.002947, allocations: 4 kB / 0.5564 GB, free: 15.44 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.002948, allocations: 0 / 0.5564 GB, free: 15.44 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.002951, allocations: 0 / 0.5564 GB, free: 15.44 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.0003003/0.003251, allocations: 348.3 kB / 0.5567 GB, free: 15.06 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.003296, allocations: 8.75 kB / 0.5567 GB, free: 15.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.003327, allocations: 0.9375 kB / 0.5567 GB, free: 15.05 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.845e-05/0.003395, allocations: 108.6 kB / 0.5568 GB, free: 14.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.003407, allocations: 384 / 0.5568 GB, free: 14.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-06/0.003414, allocations: 384 / 0.5568 GB, free: 14.92 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.831e-05/0.003492, allocations: 34.25 kB / 0.5568 GB, free: 14.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.0035, allocations: 192 / 0.5568 GB, free: 14.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.003508, allocations: 8.375 kB / 0.5568 GB, free: 14.87 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.003514, allocations: 384 / 0.5568 GB, free: 14.87 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.69e-05/0.003541, allocations: 11.94 kB / 0.5569 GB, free: 14.86 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001142/0.003655, allocations: 89.27 kB / 0.5569 GB, free: 14.75 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.089e-05/0.003706, allocations: 31.03 kB / 0.557 GB, free: 14.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.698e-05/0.003723, allocations: 15.73 kB / 0.557 GB, free: 14.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.003854, allocations: 7.984 kB / 0.557 GB, free: 14.68 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.003882, allocations: 41.33 kB / 0.557 GB, free: 14.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.553e-06/0.003884, allocations: 0 / 0.557 GB, free: 14.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001334/0.004017, allocations: 45.62 kB / 0.5571 GB, free: 14.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.004051, allocations: 55.41 kB / 0.5571 GB, free: 14.51 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.846e-05/0.004109, allocations: 146.6 kB / 0.5573 GB, free: 14.35 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.004121, allocations: 25.7 kB / 0.5573 GB, free: 14.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.75e-05/0.004158, allocations: 126.9 kB / 0.5574 GB, free: 14.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/0.004178, allocations: 3.953 kB / 0.5574 GB, free: 14.19 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.004211, allocations: 23.38 kB / 0.5574 GB, free: 14.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.00437, allocations: 496.1 kB / 0.5579 GB, free: 13.66 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.217e-05/0.004382, allocations: 4 kB / 0.5579 GB, free: 13.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.728e-06/0.004392, allocations: 4.109 kB / 0.5579 GB, free: 13.65 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.602e-05/0.004428, allocations: 15.75 kB / 0.5579 GB, free: 13.63 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.00443, allocations: 0 / 0.5579 GB, free: 13.63 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.798e-05/0.004498, allocations: 37.64 kB / 0.558 GB, free: 13.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.004513, allocations: 6.812 kB / 0.558 GB, free: 13.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.004518, allocations: 0 / 0.558 GB, free: 13.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.004532, allocations: 4 kB / 0.558 GB, free: 13.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.161e-05/0.004583, allocations: 3.984 kB / 0.558 GB, free: 13.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.795e-06/0.004586, allocations: 0 / 0.558 GB, free: 13.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.203e-05/0.004598, allocations: 4 kB / 0.558 GB, free: 13.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-06/0.004602, allocations: 4.031 kB / 0.558 GB, free: 13.57 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 8.207e-05/0.004684, allocations: 160.5 kB / 0.5581 GB, free: 13.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.004696, allocations: 4 kB / 0.5582 GB, free: 13.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.403e-05/0.00478, allocations: 36.84 kB / 0.5582 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.004783, allocations: 0 / 0.5582 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.004787, allocations: 4 kB / 0.5582 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.00479, allocations: 0 / 0.5582 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.669e-05/0.004877, allocations: 105.1 kB / 0.5583 GB, free: 13.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.004879, allocations: 0 / 0.5583 GB, free: 13.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.639e-05/0.004906, allocations: 4 kB / 0.5583 GB, free: 13.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.004909, allocations: 8.016 kB / 0.5583 GB, free: 13.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-06/0.004912, allocations: 0 / 0.5583 GB, free: 13.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.004914, allocations: 0 / 0.5583 GB, free: 13.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.004915, allocations: 0 / 0.5583 GB, free: 13.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.171e-05/0.004996, allocations: 72.39 kB / 0.5584 GB, free: 13.12 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.447e-06/0.005006, allocations: 11.88 kB / 0.5584 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.955e-06/0.005014, allocations: 0 / 0.5584 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.192e-05/0.005026, allocations: 4 kB / 0.5584 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.371e-05/0.005049, allocations: 4 kB / 0.5584 GB, free: 13.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-06/0.005054, allocations: 4 kB / 0.5584 GB, free: 13.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.65e-05/0.005091, allocations: 123.2 kB / 0.5585 GB, free: 12.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.005091, allocations: 0 / 0.5585 GB, free: 12.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001914/0.005282, allocations: 4 kB / 0.5585 GB, free: 12.97 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.0001314/0.005414, allocations: 111.1 kB / 0.5586 GB, free: 12.86 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 6.927e-05/0.005483, allocations: 11.69 kB / 0.5586 GB, free: 12.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.005485, allocations: 0 / 0.5586 GB, free: 12.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.857e-05/0.005503, allocations: 11.69 kB / 0.5586 GB, free: 12.82 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.005635, allocations: 7.938 kB / 0.5587 GB, free: 12.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001985/0.005833, allocations: 101.2 kB / 0.5587 GB, free: 12.69 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.147e-05/0.005865, allocations: 51.36 kB / 0.5588 GB, free: 12.62 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.573e-05/0.005881, allocations: 4 kB / 0.5588 GB, free: 12.62 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.005923, allocations: 66.2 kB / 0.5589 GB, free: 12.55 MB / 490.7 MB Notification: Performance of SimCode: time 6.52e-07/0.005923, allocations: 3.938 kB / 0.5589 GB, free: 12.55 MB / 490.7 MB Notification: Performance of Templates: time 0.002415/0.008339, allocations: 387.6 kB / 0.5592 GB, free: 12.18 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.5316344229504466]