Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.04162/0.04162, allocations: 9.128 MB / 28.99 MB, free: 0.8203 MB / 18.57 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] 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.0008587/0.0008587, allocations: 95.2 kB / 35.33 MB, free: 1.078 MB / 24.77 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.0009849/0.0009849, allocations: 165.4 kB / 38.73 MB, free: 2.516 MB / 24.77 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.9935/0.9935, allocations: 177.2 MB / 219.2 MB, free: 10.11 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo): time 0.004194/0.004194, allocations: 0.8195 MB / 276.5 MB, free: 0.7344 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo): time 1.651/1.651, allocations: 274.9 MB / 0.5419 GB, free: 0.6172 MB / 0.4949 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo) Using package SDF with version 0.4.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/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) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Running command: translateModel(AixLib.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial") translateModel(AixLib.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 0.638 GB, free: 14 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.95e-05/2.089e-05, allocations: 2.312 kB / 0.638 GB, free: 14 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Math.Functions.Examples.Factorial): time 0.001797/0.001818, allocations: 0.6699 MB / 0.6386 GB, free: 13.33 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.0002473/0.002065, allocations: 43.81 kB / 0.6387 GB, free: 13.29 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.77e-05/0.002083, allocations: 0 / 0.6387 GB, free: 13.29 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 1.337e-05/0.002097, allocations: 4 kB / 0.6387 GB, free: 13.29 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 7.234e-06/0.002104, allocations: 0 / 0.6387 GB, free: 13.29 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002148/0.002319, allocations: 15.92 kB / 0.6387 GB, free: 13.27 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 4.299e-05/0.002362, allocations: 0 / 0.6387 GB, free: 13.27 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 3.735e-05/0.002399, allocations: 4 kB / 0.6387 GB, free: 13.27 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 3.242e-05/0.002431, allocations: 3.984 kB / 0.6387 GB, free: 13.26 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 1.813e-05/0.00245, allocations: 0 / 0.6387 GB, free: 13.26 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.002462, allocations: 4 kB / 0.6387 GB, free: 13.26 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 9.839e-05/0.00256, allocations: 15.92 kB / 0.6387 GB, free: 13.24 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 9.358e-06/0.002569, allocations: 0 / 0.6387 GB, free: 13.24 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 1.144e-05/0.002581, allocations: 3.938 kB / 0.6387 GB, free: 13.24 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 7.923e-05/0.00266, allocations: 19.97 kB / 0.6387 GB, free: 13.22 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.002663, allocations: 0 / 0.6387 GB, free: 13.22 MB / 0.6043 GB Notification: Performance of FrontEnd: time 7.21e-07/0.002663, allocations: 4 kB / 0.6387 GB, free: 13.21 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.346e-06/0.002667, allocations: 0 / 0.6387 GB, free: 13.21 MB / 0.6043 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.0002125/0.002879, allocations: 208.8 kB / 0.6389 GB, free: 12.98 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.002915, allocations: 11.98 kB / 0.6389 GB, free: 12.97 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.00294, allocations: 4.938 kB / 0.6389 GB, free: 12.97 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.975e-05/0.00301, allocations: 101.8 kB / 0.639 GB, free: 12.84 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.00302, allocations: 384 / 0.639 GB, free: 12.84 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.527e-06/0.003029, allocations: 4.375 kB / 0.639 GB, free: 12.84 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.079e-05/0.0031, allocations: 38.19 kB / 0.6391 GB, free: 12.8 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.003108, allocations: 4.188 kB / 0.6391 GB, free: 12.79 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.081e-06/0.003114, allocations: 384 / 0.6391 GB, free: 12.79 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.003119, allocations: 4.375 kB / 0.6391 GB, free: 12.79 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.952e-05/0.003138, allocations: 3.938 kB / 0.6391 GB, free: 12.79 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.263e-05/0.003231, allocations: 57.05 kB / 0.6391 GB, free: 12.71 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 4.122e-05/0.003272, allocations: 18.61 kB / 0.6392 GB, free: 12.69 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.64e-05/0.003289, allocations: 12.91 kB / 0.6392 GB, free: 12.67 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 9.529e-05/0.003384, allocations: 4 kB / 0.6392 GB, free: 12.67 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.003406, allocations: 34.55 kB / 0.6392 GB, free: 12.62 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.003406, allocations: 7.938 kB / 0.6392 GB, free: 12.62 MB / 0.6043 GB Notification: Performance of matching and sorting (n=2): time 9.55e-05/0.003502, allocations: 41.69 kB / 0.6393 GB, free: 12.57 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.003532, allocations: 51.41 kB / 0.6393 GB, free: 12.51 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.478e-05/0.003567, allocations: 89.86 kB / 0.6394 GB, free: 12.41 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.003577, allocations: 25.7 kB / 0.6394 GB, free: 12.38 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 2.229e-05/0.0036, allocations: 80.14 kB / 0.6395 GB, free: 12.3 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.003616, allocations: 4 kB / 0.6395 GB, free: 12.29 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.003643, allocations: 9.719 kB / 0.6395 GB, free: 12.28 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 9.366e-05/0.003737, allocations: 318.8 kB / 0.6398 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.655e-06/0.003744, allocations: 7.922 kB / 0.6398 GB, free: 11.95 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.661e-06/0.00375, allocations: 4.125 kB / 0.6398 GB, free: 11.95 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.054e-05/0.003781, allocations: 16.8 kB / 0.6398 GB, free: 11.93 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.003782, allocations: 0 / 0.6398 GB, free: 11.93 MB / 0.6043 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.734e-05/0.00383, allocations: 33.69 kB / 0.6399 GB, free: 11.89 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.003844, allocations: 8 kB / 0.6399 GB, free: 11.88 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.003849, allocations: 0 / 0.6399 GB, free: 11.88 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.003862, allocations: 0 / 0.6399 GB, free: 11.88 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.437e-05/0.003907, allocations: 7.984 kB / 0.6399 GB, free: 11.87 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.003909, allocations: 0 / 0.6399 GB, free: 11.87 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.372e-05/0.003923, allocations: 4.375 kB / 0.6399 GB, free: 11.87 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-06/0.003927, allocations: 4 kB / 0.6399 GB, free: 11.86 MB / 0.6043 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 6.25e-05/0.00399, allocations: 117.8 kB / 0.64 GB, free: 11.74 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.201e-06/0.003996, allocations: 4 kB / 0.64 GB, free: 11.73 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.92e-05/0.004065, allocations: 40.78 kB / 0.6401 GB, free: 11.69 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.004068, allocations: 4 kB / 0.6401 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-06/0.004069, allocations: 0 / 0.6401 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.004072, allocations: 0 / 0.6401 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.191e-05/0.004134, allocations: 73.78 kB / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.004135, allocations: 0 / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.796e-05/0.004153, allocations: 8.031 kB / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.004155, allocations: 0 / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-06/0.004158, allocations: 0 / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.00416, allocations: 0 / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.004162, allocations: 4 kB / 0.6401 GB, free: 11.58 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.175e-05/0.004224, allocations: 69 kB / 0.6402 GB, free: 11.5 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 5.941e-06/0.00423, allocations: 4 kB / 0.6402 GB, free: 11.49 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-06/0.004237, allocations: 0 / 0.6402 GB, free: 11.49 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-06/0.004246, allocations: 0 / 0.6402 GB, free: 11.49 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.271e-05/0.004269, allocations: 4 kB / 0.6402 GB, free: 11.49 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.004274, allocations: 3.984 kB / 0.6402 GB, free: 11.48 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 7.043e-06/0.004281, allocations: 8.891 kB / 0.6402 GB, free: 11.47 MB / 0.6043 GB Notification: Performance of sort global known variables: time 7.1e-08/0.004281, allocations: 0 / 0.6402 GB, free: 11.47 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001718/0.004453, allocations: 4 kB / 0.6402 GB, free: 11.47 MB / 0.6043 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.0001092/0.004562, allocations: 80.36 kB / 0.6403 GB, free: 11.38 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 5.476e-05/0.004617, allocations: 12.86 kB / 0.6403 GB, free: 11.37 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.00462, allocations: 4 kB / 0.6403 GB, free: 11.36 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 1.577e-05/0.004636, allocations: 16.78 kB / 0.6403 GB, free: 11.34 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.557e-05/0.004691, allocations: 8.062 kB / 0.6403 GB, free: 11.34 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001636/0.004855, allocations: 79.84 kB / 0.6404 GB, free: 11.23 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.339e-05/0.004888, allocations: 59.2 kB / 0.6405 GB, free: 11.15 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 1.214e-05/0.004901, allocations: 0 / 0.6405 GB, free: 11.15 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.446e-05/0.004935, allocations: 55.36 kB / 0.6405 GB, free: 11.1 MB / 0.6043 GB Notification: Performance of SimCode: time 4e-07/0.004935, allocations: 0 / 0.6405 GB, free: 11.1 MB / 0.6043 GB Notification: Performance of Templates: time 0.002056/0.006992, allocations: 376.8 kB / 0.6409 GB, free: 10.73 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 660] (rm -f AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.sim & ./AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.176622328814119]