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.00091/0.00091, allocations: 84.22 kB / 20.98 MB, free: 3.566 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.0009134/0.0009134, allocations: 165 kB / 24.28 MB, free: 272 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.9325/0.9325, allocations: 177.1 MB / 204.6 MB, free: 5.641 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.04734/0.04734, allocations: 9.155 MB / 270.2 MB, free: 4.336 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.182e-06/1.182e-06, allocations: 0 / 342.5 MB, free: 8.703 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.136e-05, allocations: 2.312 kB / 342.5 MB, free: 8.699 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.002596/0.002617, allocations: 2.431 MB / 345 MB, free: 6.25 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001998/0.002817, allocations: 123.5 kB / 345.1 MB, free: 6.129 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.637e-05/0.002884, allocations: 8 kB / 345.1 MB, free: 6.121 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.003022, allocations: 23.8 kB / 345.1 MB, free: 6.098 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.289e-05/0.003105, allocations: 7.875 kB / 345.1 MB, free: 6.09 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000158/0.003263, allocations: 43.88 kB / 345.2 MB, free: 6.047 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.00339, allocations: 63.83 kB / 345.2 MB, free: 5.984 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.003494, allocations: 19.94 kB / 345.2 MB, free: 5.965 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.488e-05/0.003549, allocations: 35.95 kB / 345.3 MB, free: 5.93 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.113e-05/0.0036, allocations: 19.92 kB / 345.3 MB, free: 5.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.00362, allocations: 4 kB / 345.3 MB, free: 5.906 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.271e-05/0.003673, allocations: 31.86 kB / 345.3 MB, free: 5.875 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.718e-05/0.00374, allocations: 39.84 kB / 345.4 MB, free: 5.836 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.649e-05/0.003787, allocations: 27.86 kB / 345.4 MB, free: 5.809 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.003955, allocations: 103.5 kB / 345.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.003957, allocations: 0 / 345.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.003958, allocations: 0 / 345.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.003961, allocations: 0 / 345.5 MB, free: 5.707 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.0003968/0.004358, allocations: 0.5109 MB / 346 MB, free: 5.145 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.004395, allocations: 12.03 kB / 346 MB, free: 5.133 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.017e-05/0.004445, allocations: 16.84 kB / 346 MB, free: 5.117 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.004625, allocations: 156.3 kB / 346.2 MB, free: 4.938 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.004635, allocations: 384 / 346.2 MB, free: 4.938 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.004649, allocations: 16.38 kB / 346.2 MB, free: 4.922 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.004986, allocations: 344.2 kB / 346.5 MB, free: 4.543 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.004994, allocations: 192 / 346.5 MB, free: 4.543 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.005006, allocations: 4.375 kB / 346.5 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-06/0.005014, allocations: 384 / 346.5 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.845e-05/0.005072, allocations: 91.33 kB / 346.6 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002995/0.005371, allocations: 307.3 kB / 346.9 MB, free: 4.098 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.005521, allocations: 157.8 kB / 347.1 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.5e-05/0.005606, allocations: 118.9 kB / 347.2 MB, free: 3.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.00563, allocations: 4 kB / 347.2 MB, free: 3.766 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.005658, allocations: 45.33 kB / 347.3 MB, free: 3.711 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.212e-06/0.005659, allocations: 4 kB / 347.3 MB, free: 3.707 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.0003297/0.005989, allocations: 383.8 kB / 347.6 MB, free: 3.289 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.006046, allocations: 136.5 kB / 347.8 MB, free: 3.125 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.006159, allocations: 204.3 kB / 348 MB, free: 2.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.006172, allocations: 29.7 kB / 348 MB, free: 2.875 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.00623, allocations: 139.5 kB / 348.1 MB, free: 2.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.364e-05/0.006243, allocations: 15.89 kB / 348.1 MB, free: 2.715 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.00628, allocations: 31.36 kB / 348.2 MB, free: 2.676 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.006382, allocations: 0.4884 MB / 348.7 MB, free: 2.176 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.785e-05/0.00642, allocations: 63.39 kB / 348.7 MB, free: 2.102 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.568e-05/0.006456, allocations: 74.78 kB / 348.8 MB, free: 2.008 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.789e-05/0.006524, allocations: 146.1 kB / 348.9 MB, free: 1.832 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.006526, allocations: 0 / 348.9 MB, free: 1.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001088/0.006634, allocations: 172.4 kB / 349.1 MB, free: 1.633 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.006666, allocations: 59.39 kB / 349.2 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.006671, allocations: 4 kB / 349.2 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.006683, allocations: 3.938 kB / 349.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.498e-05/0.006718, allocations: 3.938 kB / 349.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.006723, allocations: 4 kB / 349.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.141e-05/0.006744, allocations: 7.938 kB / 349.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.006753, allocations: 12.06 kB / 349.2 MB, free: 1.527 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.445e-05/0.006838, allocations: 208 kB / 349.4 MB, free: 1.301 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.006954, allocations: 154.1 kB / 349.6 MB, free: 1.145 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/0.006995, allocations: 9.969 kB / 349.6 MB, free: 1.141 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.006998, allocations: 4 kB / 349.6 MB, free: 1.137 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.007002, allocations: 0 / 349.6 MB, free: 1.137 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.007005, allocations: 0 / 349.6 MB, free: 1.137 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.007117, allocations: 156.4 kB / 349.7 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.007123, allocations: 240 / 349.7 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.493e-05/0.007158, allocations: 15.98 kB / 349.7 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.00716, allocations: 0 / 349.7 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.007175, allocations: 15.94 kB / 349.8 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.007176, allocations: 0 / 349.8 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.007178, allocations: 3.984 kB / 349.8 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.007428, allocations: 449.2 kB / 350.2 MB, free: 440 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.51e-05/0.007443, allocations: 15.84 kB / 350.2 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.007459, allocations: 11.94 kB / 350.2 MB, free: 412 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.329e-05/0.007493, allocations: 7.984 kB / 350.2 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.958e-05/0.007512, allocations: 0 / 350.2 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.007519, allocations: 4 kB / 350.2 MB, free: 400 kB / 314.7 MB Notification: Performance of sorting global known variables: time 4.709e-05/0.007566, allocations: 143.2 kB / 350.4 MB, free: 256 kB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007566, allocations: 4 kB / 350.4 MB, free: 252 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001609/0.007727, allocations: 16 kB / 350.4 MB, free: 236 kB / 314.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.0005344/0.008261, allocations: 295.2 kB / 350.7 MB, free: 28 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.008467, allocations: 281.3 kB / 351 MB, free: 15.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.008469, allocations: 128 / 351 MB, free: 15.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.757e-05/0.008536, allocations: 185.9 kB / 351.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.008818, allocations: 120.7 kB / 351.3 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/0.009188, allocations: 354.4 kB / 351.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.746e-05/0.009245, allocations: 99.09 kB / 351.7 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.045e-05/0.009276, allocations: 7.984 kB / 351.7 MB, free: 14.83 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.838e-05/0.009294, allocations: 12.56 kB / 351.7 MB, free: 14.82 MB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.009295, allocations: 4 kB / 351.7 MB, free: 14.82 MB / 330.7 MB Notification: Performance of Templates: time 0.003337/0.01263, allocations: 1.573 MB / 353.3 MB, free: 13.26 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.5486018559895456]