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.0009914/0.0009914, allocations: 80.06 kB / 20.76 MB, free: 3.73 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.0009583/0.0009583, allocations: 173.3 kB / 24.18 MB, free: 316 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.991/0.991, allocations: 177.1 MB / 204.6 MB, free: 5.473 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.03984/0.03984, allocations: 9.157 MB / 270.2 MB, free: 4.133 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.353e-06/1.353e-06, allocations: 0 / 289.8 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.253e-05/1.389e-05, allocations: 2.312 kB / 289.8 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.1103/0.1103, allocations: 2.485 MB / 292.3 MB, free: 18.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002049/0.1105, allocations: 133.9 kB / 292.4 MB, free: 18.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.666e-05/0.1106, allocations: 5.25 kB / 292.4 MB, free: 18.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.1107, allocations: 19.02 kB / 292.4 MB, free: 18.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.618e-05/0.1108, allocations: 17.02 kB / 292.4 MB, free: 18.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001593/0.1109, allocations: 44.11 kB / 292.5 MB, free: 18.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001156/0.1111, allocations: 70.41 kB / 292.5 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.723e-05/0.1111, allocations: 16.64 kB / 292.6 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.503e-05/0.1112, allocations: 36.5 kB / 292.6 MB, free: 18.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.05e-05/0.1112, allocations: 22.95 kB / 292.6 MB, free: 18.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.1113, allocations: 6.938 kB / 292.6 MB, free: 18.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.394e-05/0.1113, allocations: 25.31 kB / 292.7 MB, free: 18.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.26e-05/0.1114, allocations: 28.45 kB / 292.7 MB, free: 18.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.83e-05/0.1114, allocations: 31.7 kB / 292.7 MB, free: 18.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.1116, allocations: 111.4 kB / 292.8 MB, free: 17.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.1116, allocations: 0.5625 kB / 292.8 MB, free: 17.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1116, allocations: 0 / 292.8 MB, free: 17.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1116, allocations: 2.844 kB / 292.8 MB, free: 17.99 MB / 266.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.0002722/0.1119, allocations: 379.2 kB / 293.2 MB, free: 17.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.1119, allocations: 10.41 kB / 293.2 MB, free: 17.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.1119, allocations: 12.58 kB / 293.2 MB, free: 17.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.1121, allocations: 142.4 kB / 293.4 MB, free: 17.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.1121, allocations: 9.656 kB / 293.4 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-06/0.1121, allocations: 6.766 kB / 293.4 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.1123, allocations: 314.6 kB / 293.7 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1123, allocations: 2.656 kB / 293.7 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.1124, allocations: 2.5 kB / 293.7 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1124, allocations: 1.406 kB / 293.7 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.5e-05/0.1124, allocations: 93.2 kB / 293.8 MB, free: 17.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.1126, allocations: 184.7 kB / 294 MB, free: 17.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.338e-05/0.1127, allocations: 141.3 kB / 294.1 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.938e-05/0.1127, allocations: 105.9 kB / 294.2 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.1127, allocations: 2.953 kB / 294.2 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.1128, allocations: 37.55 kB / 294.2 MB, free: 16.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.332e-06/0.1128, allocations: 6.266 kB / 294.2 MB, free: 16.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0002091/0.113, allocations: 334.6 kB / 294.6 MB, free: 16.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/0.113, allocations: 141.8 kB / 294.7 MB, free: 16.37 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.073e-05/0.1131, allocations: 144.4 kB / 294.8 MB, free: 16.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.963e-06/0.1131, allocations: 27.64 kB / 294.9 MB, free: 16.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.352e-05/0.1131, allocations: 98.7 kB / 295 MB, free: 16.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.183e-05/0.1131, allocations: 13.45 kB / 295 MB, free: 16.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.902e-05/0.1131, allocations: 25.3 kB / 295 MB, free: 16.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.574e-05/0.1132, allocations: 322.3 kB / 295.3 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.778e-05/0.1132, allocations: 56.22 kB / 295.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.241e-05/0.1132, allocations: 76.33 kB / 295.5 MB, free: 15.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.145e-05/0.1132, allocations: 128.9 kB / 295.6 MB, free: 15.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1132, allocations: 4.875 kB / 295.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.565e-05/0.1133, allocations: 157.3 kB / 295.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.1133, allocations: 58.7 kB / 295.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1133, allocations: 6.531 kB / 295.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.1134, allocations: 1.156 kB / 295.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.352e-05/0.1134, allocations: 2.031 kB / 295.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.875e-06/0.1134, allocations: 1.25 kB / 295.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.78e-05/0.1134, allocations: 7.422 kB / 295.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1134, allocations: 2.281 kB / 295.8 MB, free: 15.25 MB / 266.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 5.5e-05/0.1135, allocations: 179.1 kB / 296 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-05/0.1136, allocations: 118 kB / 296.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.238e-05/0.1136, allocations: 20.7 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1136, allocations: 1.656 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1136, allocations: 1.844 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1136, allocations: 2.734 kB / 296.1 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.246e-05/0.1137, allocations: 95.05 kB / 296.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.1137, allocations: 6.906 kB / 296.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.268e-05/0.1137, allocations: 16.92 kB / 296.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.1137, allocations: 1.844 kB / 296.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-06/0.1137, allocations: 2.312 kB / 296.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.1137, allocations: 0.6094 kB / 296.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1137, allocations: 6.219 kB / 296.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.274e-05/0.1138, allocations: 265.5 kB / 296.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.431e-05/0.1139, allocations: 18.23 kB / 296.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.1139, allocations: 8.391 kB / 296.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.268e-05/0.1139, allocations: 6.922 kB / 296.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.1139, allocations: 6.594 kB / 296.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.1139, allocations: 4.312 kB / 296.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.027e-05/0.1139, allocations: 27.58 kB / 296.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1139, allocations: 1.031 kB / 296.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001485/0.1141, allocations: 25.91 kB / 296.6 MB, free: 14.59 MB / 266.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.0006515/0.1147, allocations: 333.4 kB / 296.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001294/0.1149, allocations: 268.5 kB / 297.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.1149, allocations: 0.7812 kB / 297.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.147e-05/0.1149, allocations: 176.6 kB / 297.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.1151, allocations: 107.9 kB / 297.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002925/0.1154, allocations: 343.5 kB / 297.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.273e-05/0.1155, allocations: 95.55 kB / 297.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.59e-05/0.1155, allocations: 14.69 kB / 297.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.339e-05/0.1156, allocations: 71.44 kB / 298 MB, free: 13.58 MB / 266.7 MB Notification: Performance of SimCode: time 3.7e-07/0.1156, allocations: 0 / 298 MB, free: 13.58 MB / 266.7 MB Notification: Performance of Templates: time 0.003629/0.1192, allocations: 1.646 MB / 299.6 MB, free: 13.37 MB / 266.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 2.490004099905491]