Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.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.001092/0.001092, allocations: 81.08 kB / 20.69 MB, free: 3.797 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.001192/0.001192, allocations: 169.7 kB / 24.09 MB, free: 408 kB / 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.9457/0.9457, allocations: 177.1 MB / 204.5 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo): time 0.04381/0.04381, allocations: 9.156 MB / 270.2 MB, free: 4.113 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/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 master/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 master/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 master/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] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 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(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 343 MB, free: 8.086 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.901e-05/2.025e-05, allocations: 2.312 kB / 343 MB, free: 8.082 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.002608/0.002628, allocations: 2.429 MB / 345.4 MB, free: 5.633 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002084/0.002836, allocations: 127.5 kB / 345.5 MB, free: 5.508 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.451e-05/0.002901, allocations: 7.938 kB / 345.6 MB, free: 5.5 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.003037, allocations: 23.73 kB / 345.6 MB, free: 5.477 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.774e-05/0.003115, allocations: 7.984 kB / 345.6 MB, free: 5.469 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001505/0.003265, allocations: 39.89 kB / 345.6 MB, free: 5.43 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.003378, allocations: 67.77 kB / 345.7 MB, free: 5.363 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.76e-05/0.003475, allocations: 15.98 kB / 345.7 MB, free: 5.348 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.209e-05/0.003538, allocations: 35.91 kB / 345.7 MB, free: 5.312 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.986e-05/0.003587, allocations: 19.92 kB / 345.8 MB, free: 5.293 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.302e-05/0.00361, allocations: 8 kB / 345.8 MB, free: 5.285 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.812e-05/0.003669, allocations: 31.84 kB / 345.8 MB, free: 5.254 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.003735, allocations: 35.86 kB / 345.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.663e-05/0.003772, allocations: 31.91 kB / 345.9 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.003926, allocations: 107.5 kB / 346 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.003928, allocations: 0 / 346 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.003929, allocations: 0 / 346 MB, free: 5.082 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.003933, allocations: 0 / 346 MB, free: 5.082 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006155/0.004548, allocations: 0.5032 MB / 346.5 MB, free: 4.527 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.004579, allocations: 12.03 kB / 346.5 MB, free: 4.516 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.876e-05/0.004618, allocations: 16.84 kB / 346.5 MB, free: 4.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.004762, allocations: 159.9 kB / 346.7 MB, free: 4.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.888e-06/0.004772, allocations: 8.375 kB / 346.7 MB, free: 4.312 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.004783, allocations: 12.38 kB / 346.7 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.005054, allocations: 320.8 kB / 347 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.005062, allocations: 192 / 347 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-06/0.00507, allocations: 4.375 kB / 347 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.005077, allocations: 4.375 kB / 347 MB, free: 3.934 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.479e-05/0.005122, allocations: 87.27 kB / 347.1 MB, free: 3.836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002266/0.005348, allocations: 279.9 kB / 347.4 MB, free: 3.531 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.005473, allocations: 161.8 kB / 347.5 MB, free: 3.336 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.799e-05/0.005531, allocations: 102.8 kB / 347.6 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.005554, allocations: 4 kB / 347.6 MB, free: 3.211 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.005575, allocations: 49.47 kB / 347.7 MB, free: 3.152 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.051e-06/0.005576, allocations: 3.938 kB / 347.7 MB, free: 3.148 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.0002777/0.005853, allocations: 363.7 kB / 348 MB, free: 2.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.005902, allocations: 136.5 kB / 348.2 MB, free: 2.586 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.973e-05/0.005991, allocations: 201.8 kB / 348.4 MB, free: 2.371 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/0.006002, allocations: 29.7 kB / 348.4 MB, free: 2.336 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.166e-05/0.006053, allocations: 143.5 kB / 348.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.136e-05/0.006065, allocations: 11.91 kB / 348.5 MB, free: 2.176 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.408e-05/0.006099, allocations: 35.34 kB / 348.6 MB, free: 2.133 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.817e-05/0.006197, allocations: 0.4923 MB / 349.1 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.471e-05/0.006222, allocations: 55.41 kB / 349.1 MB, free: 1.562 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.497e-05/0.006257, allocations: 86.8 kB / 349.2 MB, free: 1.457 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.939e-05/0.006316, allocations: 142.1 kB / 349.3 MB, free: 1.285 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.006318, allocations: 0 / 349.3 MB, free: 1.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001054/0.006423, allocations: 168.4 kB / 349.5 MB, free: 1.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.006455, allocations: 65.84 kB / 349.6 MB, free: 1.016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.006458, allocations: 0 / 349.6 MB, free: 1.016 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.006469, allocations: 3.938 kB / 349.6 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.369e-05/0.006492, allocations: 0 / 349.6 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.935e-06/0.006495, allocations: 4 kB / 349.6 MB, free: 1.008 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.838e-05/0.006514, allocations: 8 kB / 349.6 MB, free: 1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.006521, allocations: 4.234 kB / 349.6 MB, free: 0.9961 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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.878e-05/0.00661, allocations: 216 kB / 349.8 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.861e-05/0.006709, allocations: 134.2 kB / 349.9 MB, free: 0.625 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.947e-05/0.006748, allocations: 21.89 kB / 350 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.006751, allocations: 3.984 kB / 350 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.006753, allocations: 3.938 kB / 350 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.006757, allocations: 4 kB / 350 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.583e-05/0.006852, allocations: 125.1 kB / 350.1 MB, free: 460 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.006857, allocations: 0 / 350.1 MB, free: 460 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.839e-05/0.006885, allocations: 15.98 kB / 350.1 MB, free: 444 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.006888, allocations: 7.938 kB / 350.1 MB, free: 436 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.006895, allocations: 4 kB / 350.1 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.006896, allocations: 0 / 350.1 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.006898, allocations: 3.938 kB / 350.1 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.007043, allocations: 334.3 kB / 350.4 MB, free: 44 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.473e-05/0.007057, allocations: 23.83 kB / 350.5 MB, free: 20 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.00707, allocations: 4 kB / 350.5 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.109e-05/0.007102, allocations: 4 kB / 350.5 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.587e-05/0.007117, allocations: 7.938 kB / 350.5 MB, free: 4 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.007124, allocations: 4 kB / 350.5 MB, free: 0 / 314.7 MB Notification: Performance of sorting global known variables: time 4.081e-05/0.007165, allocations: 143.2 kB / 350.6 MB, free: 15.86 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007165, allocations: 4 kB / 350.6 MB, free: 15.85 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001642/0.007329, allocations: 15.98 kB / 350.6 MB, free: 15.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 17 (synchronizeRealtime.initialized,spaceMouseInput.buttons[1],spaceMouseInput.buttons[2],spaceMouseInput.buttons[3],spaceMouseInput.buttons[4],spaceMouseInput.buttons[5],spaceMouseInput.buttons[6],spaceMouseInput.buttons[7],spaceMouseInput.buttons[8],spaceMouseInput.buttons[9],spaceMouseInput.buttons[10],spaceMouseInput.buttons[11],spaceMouseInput.buttons[12],spaceMouseInput.buttons[13],spaceMouseInput.buttons[14],spaceMouseInput.buttons[15],spaceMouseInput.buttons[16]) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * 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.0004549/0.007784, allocations: 300.5 kB / 350.9 MB, free: 15.63 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001564/0.00794, allocations: 273.8 kB / 351.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007942, allocations: 0 / 351.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.689e-05/0.007999, allocations: 181.9 kB / 351.4 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.008242, allocations: 108 kB / 351.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003212/0.008563, allocations: 346.4 kB / 351.8 MB, free: 14.6 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.171e-05/0.008615, allocations: 96.05 kB / 351.9 MB, free: 14.48 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.722e-05/0.008642, allocations: 8.109 kB / 351.9 MB, free: 14.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.708e-05/0.008709, allocations: 98.17 kB / 352 MB, free: 14.38 MB / 330.7 MB Notification: Performance of SimCode: time 4.8e-07/0.00871, allocations: 0 / 352 MB, free: 14.38 MB / 330.7 MB Notification: Performance of Templates: time 0.003348/0.01206, allocations: 1.646 MB / 353.7 MB, free: 12.75 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse -abortSlowSimulation -alarm=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 2.549043427221477]