Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Utilities.Math.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.03951/0.03951, allocations: 9.129 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.0007195/0.0007195, 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.00126/0.00126, allocations: 164.7 kB / 38.73 MB, free: 2.492 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.9727/0.9727, allocations: 177.1 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.003789/0.003789, allocations: 0.8222 MB / 276.5 MB, free: 0.7305 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.629/1.629, allocations: 274.9 MB / 0.5419 GB, free: 0.6406 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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Math.Examples.Factorial") translateModel(AixLib.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 0.6379 GB, free: 14.14 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.178e-05/1.311e-05, allocations: 2.312 kB / 0.6379 GB, free: 14.14 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Math.Examples.Factorial): time 0.002107/0.00212, allocations: 1.586 MB / 0.6394 GB, free: 12.54 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.0002789/0.002399, allocations: 131.5 kB / 0.6395 GB, free: 12.41 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.163e-05/0.002431, allocations: 4 kB / 0.6395 GB, free: 12.41 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 2.468e-05/0.002456, allocations: 3.984 kB / 0.6395 GB, free: 12.4 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 4.447e-05/0.0025, allocations: 7.875 kB / 0.6395 GB, free: 12.39 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.002729, allocations: 23.91 kB / 0.6396 GB, free: 12.37 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 7.435e-05/0.002803, allocations: 27.92 kB / 0.6396 GB, free: 12.34 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 8.267e-05/0.002886, allocations: 11.92 kB / 0.6396 GB, free: 12.33 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 5.699e-05/0.002943, allocations: 16 kB / 0.6396 GB, free: 12.32 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 4.802e-05/0.002991, allocations: 15.97 kB / 0.6396 GB, free: 12.3 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.003009, allocations: 11.94 kB / 0.6397 GB, free: 12.29 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 6.42e-05/0.003073, allocations: 7.984 kB / 0.6397 GB, free: 12.28 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 1.284e-05/0.003086, allocations: 8 kB / 0.6397 GB, free: 12.27 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 1.505e-05/0.003101, allocations: 7.984 kB / 0.6397 GB, free: 12.27 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 9.844e-05/0.003199, allocations: 35.83 kB / 0.6397 GB, free: 12.23 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.003201, allocations: 4 kB / 0.6397 GB, free: 12.23 MB / 0.6043 GB Notification: Performance of FrontEnd: time 8.21e-07/0.003202, allocations: 0 / 0.6397 GB, free: 12.23 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.003207, allocations: 0 / 0.6397 GB, free: 12.23 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0002981/0.003505, allocations: 229 kB / 0.6399 GB, free: 11.98 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.003543, allocations: 15.98 kB / 0.6399 GB, free: 11.96 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.837e-05/0.003572, allocations: 8.922 kB / 0.64 GB, free: 11.95 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.829e-05/0.00366, allocations: 113.7 kB / 0.6401 GB, free: 11.82 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.003683, allocations: 384 / 0.6401 GB, free: 11.82 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.003697, allocations: 4.375 kB / 0.6401 GB, free: 11.81 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.003827, allocations: 66.86 kB / 0.6401 GB, free: 11.74 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.003835, allocations: 192 / 0.6401 GB, free: 11.74 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.003843, allocations: 384 / 0.6401 GB, free: 11.74 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.003849, allocations: 4.375 kB / 0.6401 GB, free: 11.73 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.589e-05/0.003875, allocations: 7.938 kB / 0.6401 GB, free: 11.73 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002269/0.004102, allocations: 152.3 kB / 0.6403 GB, free: 11.56 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001505/0.004252, allocations: 46.48 kB / 0.6403 GB, free: 11.51 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.099e-05/0.004273, allocations: 8.922 kB / 0.6403 GB, free: 11.5 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 7.017e-05/0.004344, allocations: 4 kB / 0.6403 GB, free: 11.49 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.004371, allocations: 38.55 kB / 0.6404 GB, free: 11.45 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.004373, allocations: 0 / 0.6404 GB, free: 11.45 MB / 0.6043 GB Notification: Performance of matching and sorting (n=3): time 0.0001421/0.004515, allocations: 45.62 kB / 0.6404 GB, free: 11.39 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.004549, allocations: 51.41 kB / 0.6405 GB, free: 11.33 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.004792, allocations: 98.72 kB / 0.6406 GB, free: 11.22 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 9.628e-06/0.004802, allocations: 25.7 kB / 0.6406 GB, free: 11.19 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 3.641e-05/0.004838, allocations: 100 kB / 0.6407 GB, free: 11.09 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.004857, allocations: 11.95 kB / 0.6407 GB, free: 11.08 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.004884, allocations: 13.72 kB / 0.6407 GB, free: 11.06 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 7.793e-05/0.004962, allocations: 314.8 kB / 0.641 GB, free: 10.74 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.093e-05/0.004973, allocations: 7.984 kB / 0.641 GB, free: 10.73 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.072e-05/0.004984, allocations: 7.938 kB / 0.641 GB, free: 10.73 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.037e-05/0.005014, allocations: 16.84 kB / 0.641 GB, free: 10.71 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.005024, allocations: 0 / 0.641 GB, free: 10.71 MB / 0.6043 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.421e-05/0.005089, allocations: 37.69 kB / 0.6411 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.005104, allocations: 7.906 kB / 0.6411 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.005111, allocations: 0 / 0.6411 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.005126, allocations: 11.94 kB / 0.6411 GB, free: 10.64 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.88e-05/0.005185, allocations: 7.938 kB / 0.6411 GB, free: 10.64 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.005188, allocations: 0 / 0.6411 GB, free: 10.64 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.108e-05/0.005209, allocations: 7.984 kB / 0.6411 GB, free: 10.63 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.005215, allocations: 7.984 kB / 0.6411 GB, free: 10.62 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 (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 5.87e-05/0.005274, allocations: 113.8 kB / 0.6412 GB, free: 10.5 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.531e-05/0.005289, allocations: 0.5156 kB / 0.6412 GB, free: 10.5 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.462e-05/0.005374, allocations: 49.36 kB / 0.6413 GB, free: 10.45 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.005378, allocations: 7.969 kB / 0.6413 GB, free: 10.44 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.005379, allocations: 4 kB / 0.6413 GB, free: 10.43 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.005382, allocations: 0 / 0.6413 GB, free: 10.43 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.505e-05/0.005467, allocations: 65.91 kB / 0.6414 GB, free: 10.35 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.005468, allocations: 0 / 0.6414 GB, free: 10.35 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.557e-05/0.005494, allocations: 11.98 kB / 0.6414 GB, free: 10.34 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.005496, allocations: 3.938 kB / 0.6414 GB, free: 10.34 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-06/0.005501, allocations: 0 / 0.6414 GB, free: 10.34 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.005502, allocations: 0 / 0.6414 GB, free: 10.34 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.005503, allocations: 0 / 0.6414 GB, free: 10.34 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.715e-05/0.00558, allocations: 139.5 kB / 0.6415 GB, free: 10.18 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 6.291e-06/0.005587, allocations: 3.984 kB / 0.6415 GB, free: 10.18 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-06/0.005596, allocations: 8 kB / 0.6415 GB, free: 10.17 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.965e-05/0.005625, allocations: 0 / 0.6415 GB, free: 10.17 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.061e-05/0.005666, allocations: 11.98 kB / 0.6415 GB, free: 10.16 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.005675, allocations: 3.938 kB / 0.6415 GB, free: 10.16 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 1.286e-05/0.005687, allocations: 8.859 kB / 0.6415 GB, free: 10.14 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5e-08/0.005688, allocations: 0 / 0.6415 GB, free: 10.14 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001459/0.005833, allocations: 11.94 kB / 0.6415 GB, free: 10.13 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.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.0001395/0.005973, allocations: 88.34 kB / 0.6416 GB, free: 10.04 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 6.285e-05/0.006036, allocations: 20.8 kB / 0.6417 GB, free: 10.02 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.006038, allocations: 0 / 0.6417 GB, free: 10.02 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 2.037e-05/0.006059, allocations: 16.84 kB / 0.6417 GB, free: 9.996 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001124/0.006171, allocations: 7.938 kB / 0.6417 GB, free: 9.988 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001938/0.006365, allocations: 104.8 kB / 0.6418 GB, free: 9.859 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.985e-05/0.006395, allocations: 63.28 kB / 0.6418 GB, free: 9.777 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 1.918e-05/0.006414, allocations: 4 kB / 0.6418 GB, free: 9.773 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.006453, allocations: 63.36 kB / 0.6419 GB, free: 9.711 MB / 0.6043 GB Notification: Performance of SimCode: time 4.91e-07/0.006454, allocations: 3.938 kB / 0.6419 GB, free: 9.707 MB / 0.6043 GB Notification: Performance of Templates: time 0.002122/0.008576, allocations: 0.7472 MB / 0.6426 GB, free: 8.961 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (rm -f AixLib_AixLib.Utilities.Math.Examples.Factorial.pipe ; mkfifo AixLib_AixLib.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.Math.Examples.Factorial.pipe >> ../files/AixLib_AixLib.Utilities.Math.Examples.Factorial.sim & ./AixLib_AixLib.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -lv LOG_STATS > AixLib_AixLib.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.326595569960773]