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.0007031/0.0007031, allocations: 79.36 kB / 20.46 MB, free: 4.109 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.0008288/0.0008288, allocations: 169 kB / 23.84 MB, free: 0.7344 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.9602/0.9602, allocations: 177.1 MB / 204.2 MB, free: 5.254 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.03507/0.03507, allocations: 9.148 MB / 269.9 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.312e-06/1.312e-06, allocations: 0 / 342.5 MB, free: 8.363 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.097e-05/1.228e-05, allocations: 2.312 kB / 342.5 MB, free: 8.359 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.004864/0.004877, allocations: 2.433 MB / 345 MB, free: 5.906 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002518/0.005128, allocations: 127.5 kB / 345.1 MB, free: 5.781 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.229e-05/0.005201, allocations: 0 / 345.1 MB, free: 5.781 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.005375, allocations: 31.72 kB / 345.1 MB, free: 5.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.005478, allocations: 3.938 kB / 345.1 MB, free: 5.746 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.005656, allocations: 39.89 kB / 345.2 MB, free: 5.707 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001556/0.005812, allocations: 71.77 kB / 345.2 MB, free: 5.637 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.005928, allocations: 19.98 kB / 345.3 MB, free: 5.617 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.253e-05/0.005991, allocations: 31.91 kB / 345.3 MB, free: 5.586 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.779e-05/0.006059, allocations: 23.91 kB / 345.3 MB, free: 5.562 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.687e-05/0.006086, allocations: 4 kB / 345.3 MB, free: 5.559 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.24e-05/0.006148, allocations: 27.94 kB / 345.3 MB, free: 5.531 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.474e-05/0.006233, allocations: 43.83 kB / 345.4 MB, free: 5.488 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.292e-05/0.006286, allocations: 19.88 kB / 345.4 MB, free: 5.469 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002307/0.006516, allocations: 111.5 kB / 345.5 MB, free: 5.359 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.00652, allocations: 0 / 345.5 MB, free: 5.359 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.006522, allocations: 3.938 kB / 345.5 MB, free: 5.355 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.006527, allocations: 0 / 345.5 MB, free: 5.355 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.0004666/0.006994, allocations: 0.5032 MB / 346 MB, free: 4.801 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.007035, allocations: 8.031 kB / 346 MB, free: 4.793 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.955e-05/0.007095, allocations: 24.84 kB / 346.1 MB, free: 4.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.007293, allocations: 152.3 kB / 346.2 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.007306, allocations: 8.375 kB / 346.2 MB, free: 4.586 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.00732, allocations: 8.359 kB / 346.2 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003829/0.007703, allocations: 340.2 kB / 346.5 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.00771, allocations: 4.125 kB / 346.6 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.007723, allocations: 8.375 kB / 346.6 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.007731, allocations: 384 / 346.6 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.919e-05/0.0078, allocations: 87.33 kB / 346.6 MB, free: 4.094 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003369/0.008137, allocations: 303.3 kB / 346.9 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.008304, allocations: 165.8 kB / 347.1 MB, free: 3.559 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.857e-05/0.008393, allocations: 118.8 kB / 347.2 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/0.008424, allocations: 7.984 kB / 347.2 MB, free: 3.414 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.008448, allocations: 41.33 kB / 347.3 MB, free: 3.363 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.864e-06/0.00845, allocations: 0 / 347.3 MB, free: 3.363 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.000358/0.008808, allocations: 388 kB / 347.6 MB, free: 2.941 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/0.008877, allocations: 140.5 kB / 347.8 MB, free: 2.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.008989, allocations: 199.1 kB / 348 MB, free: 2.562 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.009006, allocations: 29.7 kB / 348 MB, free: 2.527 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.104e-05/0.009067, allocations: 143.5 kB / 348.1 MB, free: 2.379 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.52e-05/0.009082, allocations: 11.91 kB / 348.2 MB, free: 2.367 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.969e-05/0.009121, allocations: 31.36 kB / 348.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.009242, allocations: 0.4923 MB / 348.7 MB, free: 1.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.011e-05/0.009282, allocations: 59.41 kB / 348.7 MB, free: 1.754 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.194e-05/0.009324, allocations: 78.8 kB / 348.8 MB, free: 1.656 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.773e-05/0.009402, allocations: 142.1 kB / 349 MB, free: 1.484 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.009404, allocations: 0 / 349 MB, free: 1.484 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000122/0.009526, allocations: 172.4 kB / 349.1 MB, free: 1.285 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/0.009568, allocations: 61.75 kB / 349.2 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.009573, allocations: 0 / 349.2 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.009587, allocations: 0 / 349.2 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.743e-05/0.009634, allocations: 4 kB / 349.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.009641, allocations: 3.938 kB / 349.2 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.02e-05/0.009671, allocations: 20 kB / 349.2 MB, free: 1.188 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.009684, allocations: 3.984 kB / 349.2 MB, free: 1.184 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 0.0001098/0.009794, allocations: 216 kB / 349.4 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.009927, allocations: 142.2 kB / 349.6 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.57e-05/0.009983, allocations: 17.95 kB / 349.6 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.009987, allocations: 0 / 349.6 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.009991, allocations: 4 kB / 349.6 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.009995, allocations: 0 / 349.6 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.01011, allocations: 148.4 kB / 349.7 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.01012, allocations: 4 kB / 349.7 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.763e-05/0.01016, allocations: 15.94 kB / 349.8 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.01016, allocations: 4 kB / 349.8 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.01018, allocations: 7.938 kB / 349.8 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.01018, allocations: 4 kB / 349.8 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.01018, allocations: 3.984 kB / 349.8 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002689/0.01045, allocations: 445.2 kB / 350.2 MB, free: 92 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.752e-05/0.01047, allocations: 15.84 kB / 350.2 MB, free: 76 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.01049, allocations: 15.88 kB / 350.2 MB, free: 60 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.297e-05/0.01052, allocations: 0 / 350.2 MB, free: 60 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.62e-05/0.01055, allocations: 4 kB / 350.2 MB, free: 56 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.01056, allocations: 8 kB / 350.2 MB, free: 48 kB / 314.7 MB Notification: Performance of sorting global known variables: time 7.671e-05/0.01063, allocations: 147.2 kB / 350.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01063, allocations: 0 / 350.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00018/0.01081, allocations: 20 kB / 350.4 MB, free: 15.88 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.0006235/0.01144, allocations: 296.3 kB / 350.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002198/0.01166, allocations: 285.2 kB / 351 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.01166, allocations: 0 / 351 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.795e-05/0.01173, allocations: 177.9 kB / 351.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.01205, allocations: 122 kB / 351.3 MB, free: 15.01 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004271/0.01247, allocations: 354.4 kB / 351.6 MB, free: 14.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.058e-05/0.01253, allocations: 96.03 kB / 351.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.421e-05/0.01257, allocations: 16.17 kB / 351.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.116e-05/0.01259, allocations: 12.5 kB / 351.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01259, allocations: 0 / 351.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of Templates: time 0.003918/0.01651, allocations: 1.633 MB / 353.4 MB, free: 12.85 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.642736413050443]