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.05515/0.05515, allocations: 9.131 MB / 28.99 MB, free: 0.8242 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.00092/0.00092, allocations: 99.08 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.001208/0.001208, allocations: 166.1 kB / 38.73 MB, free: 2.52 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.9702/0.9702, allocations: 177.1 MB / 219.2 MB, free: 10.1 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.004058/0.004058, allocations: 0.8265 MB / 276.5 MB, free: 0.7148 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.668/1.668, allocations: 274.9 MB / 0.5419 GB, free: 0.6055 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.222e-06/1.222e-06, allocations: 0 / 0.6379 GB, free: 14.05 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.883e-05/2.005e-05, allocations: 2.312 kB / 0.6379 GB, free: 14.04 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Math.Functions.Examples.Factorial): time 0.001135/0.001155, allocations: 0.6112 MB / 0.6385 GB, free: 13.43 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.0001886/0.001344, allocations: 51.8 kB / 0.6386 GB, free: 13.38 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.337e-05/0.001357, allocations: 0 / 0.6386 GB, free: 13.38 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 1.16e-05/0.001369, allocations: 4 kB / 0.6386 GB, free: 13.38 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.001374, allocations: 0 / 0.6386 GB, free: 13.38 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.001571, allocations: 11.92 kB / 0.6386 GB, free: 13.37 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 3.795e-05/0.001609, allocations: 7.984 kB / 0.6386 GB, free: 13.36 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 3.112e-05/0.00164, allocations: 0 / 0.6386 GB, free: 13.36 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 2.465e-05/0.001665, allocations: 0 / 0.6386 GB, free: 13.36 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 1.886e-05/0.001684, allocations: 8 kB / 0.6386 GB, free: 13.35 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 9.317e-06/0.001693, allocations: 0 / 0.6386 GB, free: 13.35 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 6.822e-05/0.001761, allocations: 11.97 kB / 0.6386 GB, free: 13.34 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 8.927e-06/0.00177, allocations: 0 / 0.6386 GB, free: 13.34 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 8.937e-06/0.001779, allocations: 3.938 kB / 0.6386 GB, free: 13.34 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 6.586e-05/0.001845, allocations: 19.92 kB / 0.6386 GB, free: 13.32 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.884e-06/0.001847, allocations: 4 kB / 0.6386 GB, free: 13.31 MB / 0.6043 GB Notification: Performance of FrontEnd: time 1.523e-06/0.001849, allocations: 3.984 kB / 0.6386 GB, free: 13.31 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 2.775e-06/0.001851, allocations: 0 / 0.6386 GB, free: 13.31 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.0001722/0.002024, allocations: 208.8 kB / 0.6388 GB, free: 13.08 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.002053, allocations: 15.98 kB / 0.6389 GB, free: 13.06 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.874e-05/0.002072, allocations: 0.9375 kB / 0.6389 GB, free: 13.06 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.997e-05/0.002122, allocations: 113.7 kB / 0.639 GB, free: 12.93 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-06/0.002131, allocations: 4.375 kB / 0.639 GB, free: 12.92 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.002139, allocations: 4.375 kB / 0.639 GB, free: 12.92 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.974e-05/0.002199, allocations: 26.27 kB / 0.639 GB, free: 12.89 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.002206, allocations: 4.188 kB / 0.639 GB, free: 12.88 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-06/0.002213, allocations: 4.375 kB / 0.639 GB, free: 12.88 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.002218, allocations: 384 / 0.639 GB, free: 12.88 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.532e-05/0.002233, allocations: 7.922 kB / 0.639 GB, free: 12.87 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.81e-05/0.002301, allocations: 57.05 kB / 0.6391 GB, free: 12.8 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 3.712e-05/0.002338, allocations: 22.55 kB / 0.6391 GB, free: 12.77 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.042e-05/0.002349, allocations: 8.922 kB / 0.6391 GB, free: 12.76 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 9.265e-05/0.002441, allocations: 8 kB / 0.6391 GB, free: 12.75 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.002461, allocations: 34.55 kB / 0.6391 GB, free: 12.71 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/0.002462, allocations: 4 kB / 0.6391 GB, free: 12.7 MB / 0.6043 GB Notification: Performance of matching and sorting (n=2): time 7.82e-05/0.002541, allocations: 33.7 kB / 0.6392 GB, free: 12.66 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.002569, allocations: 51.41 kB / 0.6392 GB, free: 12.6 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.936e-05/0.002598, allocations: 89.86 kB / 0.6393 GB, free: 12.5 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 8.657e-06/0.002607, allocations: 25.7 kB / 0.6393 GB, free: 12.47 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 1.984e-05/0.002627, allocations: 80.14 kB / 0.6394 GB, free: 12.39 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.00264, allocations: 11.92 kB / 0.6394 GB, free: 12.38 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.00266, allocations: 17.64 kB / 0.6394 GB, free: 12.36 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 6.725e-05/0.002728, allocations: 318.8 kB / 0.6397 GB, free: 12.04 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.549e-06/0.002732, allocations: 0 / 0.6397 GB, free: 12.04 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.002e-06/0.002738, allocations: 8.125 kB / 0.6397 GB, free: 12.03 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.215e-05/0.00276, allocations: 12.86 kB / 0.6398 GB, free: 12.01 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.002762, allocations: 0 / 0.6398 GB, free: 12.01 MB / 0.6043 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.477e-05/0.002797, allocations: 33.69 kB / 0.6398 GB, free: 11.97 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.00281, allocations: 8 kB / 0.6398 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.002813, allocations: 0 / 0.6398 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.002824, allocations: 0 / 0.6398 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.884e-05/0.002863, allocations: 7.938 kB / 0.6398 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.002866, allocations: 0 / 0.6398 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.416e-06/0.002874, allocations: 448 / 0.6398 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-06/0.002878, allocations: 4 kB / 0.6398 GB, free: 11.95 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 4.488e-05/0.002923, allocations: 113.8 kB / 0.6399 GB, free: 11.83 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-06/0.002926, allocations: 4 kB / 0.6399 GB, free: 11.83 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.128e-05/0.002977, allocations: 44.78 kB / 0.64 GB, free: 11.78 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.002979, allocations: 0 / 0.64 GB, free: 11.78 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-06/0.00298, allocations: 0 / 0.64 GB, free: 11.78 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.002983, allocations: 4 kB / 0.64 GB, free: 11.77 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.633e-05/0.00303, allocations: 69.8 kB / 0.64 GB, free: 11.69 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.00303, allocations: 0 / 0.64 GB, free: 11.69 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.718e-06/0.00304, allocations: 8.031 kB / 0.64 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.82e-07/0.003041, allocations: 0 / 0.64 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-06/0.003044, allocations: 0 / 0.64 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.92e-07/0.003045, allocations: 0 / 0.64 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.003045, allocations: 3.938 kB / 0.64 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.284e-05/0.003088, allocations: 69.05 kB / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-06/0.003094, allocations: 4 kB / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.841e-06/0.0031, allocations: 0 / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.339e-06/0.003105, allocations: 0 / 0.6401 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.032e-05/0.003125, allocations: 7.984 kB / 0.6401 GB, free: 11.58 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-06/0.003126, allocations: 0 / 0.6401 GB, free: 11.58 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 5.741e-06/0.003132, allocations: 8.891 kB / 0.6401 GB, free: 11.57 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5e-08/0.003132, allocations: 0 / 0.6401 GB, free: 11.57 MB / 0.6043 GB Notification: Performance of remove unused functions: time 9.614e-05/0.003228, allocations: 7.938 kB / 0.6401 GB, free: 11.56 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 9.066e-05/0.003319, allocations: 80.42 kB / 0.6402 GB, free: 11.47 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 4.561e-05/0.003365, allocations: 20.78 kB / 0.6402 GB, free: 11.45 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.003366, allocations: 0 / 0.6402 GB, free: 11.45 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 1.01e-05/0.003376, allocations: 8.859 kB / 0.6402 GB, free: 11.44 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 3.811e-05/0.003414, allocations: 4.062 kB / 0.6403 GB, free: 11.43 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001339/0.003548, allocations: 87.83 kB / 0.6403 GB, free: 11.32 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.466e-05/0.003573, allocations: 59.22 kB / 0.6404 GB, free: 11.24 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 8.596e-06/0.003581, allocations: 0 / 0.6404 GB, free: 11.24 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.618e-05/0.003608, allocations: 51.38 kB / 0.6404 GB, free: 11.19 MB / 0.6043 GB Notification: Performance of SimCode: time 5.01e-07/0.003608, allocations: 0 / 0.6404 GB, free: 11.19 MB / 0.6043 GB Notification: Performance of Templates: time 0.001678/0.005286, allocations: 376.7 kB / 0.6408 GB, free: 10.82 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 -lv LOG_STATS > AixLib_AixLib.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.479021118953824]