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.0007053/0.0007053, allocations: 84.44 kB / 20.73 MB, free: 3.836 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.0007131/0.0007131, allocations: 165.9 kB / 24 MB, free: 0.5586 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.7812/0.7812, allocations: 177.1 MB / 204.3 MB, free: 5.723 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.03265/0.03265, allocations: 9.143 MB / 269.9 MB, free: 4.457 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.483e-06/1.483e-06, allocations: 0 / 398.3 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.1e-05/2.248e-05, allocations: 5.234 kB / 398.3 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.002422/0.002445, allocations: 2.374 MB / 400.7 MB, free: 14.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001902/0.002635, allocations: 131.5 kB / 400.8 MB, free: 14.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.978e-05/0.002695, allocations: 4 kB / 400.8 MB, free: 14.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.002829, allocations: 15.8 kB / 400.8 MB, free: 14.21 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.652e-05/0.002915, allocations: 11.88 kB / 400.8 MB, free: 14.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001548/0.00307, allocations: 43.89 kB / 400.9 MB, free: 14.16 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.003192, allocations: 63.83 kB / 400.9 MB, free: 14.1 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.752e-05/0.003289, allocations: 15.92 kB / 401 MB, free: 14.08 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.123e-05/0.003341, allocations: 35.95 kB / 401 MB, free: 14.05 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.91e-05/0.00339, allocations: 19.92 kB / 401 MB, free: 14.03 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.065e-05/0.00341, allocations: 8 kB / 401 MB, free: 14.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.331e-05/0.003464, allocations: 27.88 kB / 401 MB, free: 13.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.866e-05/0.003532, allocations: 39.83 kB / 401.1 MB, free: 13.95 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.003576, allocations: 27.88 kB / 401.1 MB, free: 13.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.003745, allocations: 127.5 kB / 401.2 MB, free: 13.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.003747, allocations: 4 kB / 401.2 MB, free: 13.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.003748, allocations: 0 / 401.2 MB, free: 13.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.003752, allocations: 0 / 401.2 MB, free: 13.8 MB / 378.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.0003585/0.00411, allocations: 412.9 kB / 401.6 MB, free: 13.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.004143, allocations: 12.03 kB / 401.7 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.838e-05/0.004181, allocations: 16.8 kB / 401.7 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.004368, allocations: 153.4 kB / 401.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.00438, allocations: 4.375 kB / 401.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.004393, allocations: 12.38 kB / 401.8 MB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.004773, allocations: 439.5 kB / 402.3 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.004782, allocations: 192 / 402.3 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.004793, allocations: 8.375 kB / 402.3 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.004798, allocations: 384 / 402.3 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.413e-05/0.004892, allocations: 139.3 kB / 402.4 MB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002613/0.005153, allocations: 237.3 kB / 402.6 MB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.005331, allocations: 224.9 kB / 402.9 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.005435, allocations: 161.2 kB / 403 MB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.005459, allocations: 4 kB / 403 MB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.005482, allocations: 42.5 kB / 403.1 MB, free: 11.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.162e-06/0.005483, allocations: 0 / 403.1 MB, free: 11.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.0003905/0.005874, allocations: 491.7 kB / 403.5 MB, free: 11.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.735e-05/0.005931, allocations: 140.5 kB / 403.7 MB, free: 11.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.374e-05/0.006015, allocations: 152.5 kB / 403.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.006026, allocations: 29.64 kB / 403.9 MB, free: 10.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.382e-05/0.00607, allocations: 96.75 kB / 404 MB, free: 10.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.153e-05/0.006081, allocations: 15.97 kB / 404 MB, free: 10.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/0.006112, allocations: 25.7 kB / 404 MB, free: 10.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.853e-05/0.006181, allocations: 318.8 kB / 404.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.743e-05/0.006218, allocations: 63.39 kB / 404.4 MB, free: 10.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.748e-05/0.006255, allocations: 77.12 kB / 404.4 MB, free: 10.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.696e-05/0.006322, allocations: 140.5 kB / 404.6 MB, free: 10.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.006324, allocations: 0 / 404.6 MB, free: 10.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001113/0.006435, allocations: 184.3 kB / 404.8 MB, free: 9.863 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.006466, allocations: 59.39 kB / 404.8 MB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.00647, allocations: 4 kB / 404.8 MB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.006482, allocations: 8 kB / 404.8 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.456e-05/0.006516, allocations: 0 / 404.8 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.006521, allocations: 0 / 404.8 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.047e-05/0.006541, allocations: 7.953 kB / 404.8 MB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.006e-06/0.006549, allocations: 4 kB / 404.8 MB, free: 9.77 MB / 378.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.627e-05/0.006636, allocations: 193.2 kB / 405 MB, free: 9.559 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.006779, allocations: 206.1 kB / 405.2 MB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.00683, allocations: 17.95 kB / 405.3 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.006833, allocations: 0 / 405.3 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.006837, allocations: 0 / 405.3 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.006842, allocations: 12 kB / 405.3 MB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.644e-05/0.006938, allocations: 137.1 kB / 405.4 MB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.006943, allocations: 0 / 405.4 MB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.975e-05/0.006973, allocations: 12 kB / 405.4 MB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.006975, allocations: 3.938 kB / 405.4 MB, free: 9.137 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.006986, allocations: 15.92 kB / 405.4 MB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.006988, allocations: 0 / 405.4 MB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.006988, allocations: 0 / 405.4 MB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002538/0.007242, allocations: 466 kB / 405.9 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.621e-05/0.007258, allocations: 23.78 kB / 405.9 MB, free: 8.602 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.007273, allocations: 8.172 kB / 405.9 MB, free: 8.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.254e-05/0.007305, allocations: 8 kB / 405.9 MB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.118e-05/0.007326, allocations: 4 kB / 405.9 MB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.007334, allocations: 7.984 kB / 405.9 MB, free: 8.574 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.372e-05/0.007377, allocations: 107.2 kB / 406 MB, free: 8.469 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007378, allocations: 0 / 406 MB, free: 8.469 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001665/0.007544, allocations: 20 kB / 406.1 MB, free: 8.449 MB / 378.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.0003834/0.007927, allocations: 297.9 kB / 406.4 MB, free: 8.238 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002115/0.008139, allocations: 317.6 kB / 406.7 MB, free: 7.879 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.00814, allocations: 0 / 406.7 MB, free: 7.879 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.972e-05/0.0082, allocations: 178.1 kB / 406.8 MB, free: 7.668 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.008495, allocations: 165 kB / 407 MB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004004/0.008895, allocations: 444.8 kB / 407.4 MB, free: 7.023 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.04e-05/0.008976, allocations: 141.8 kB / 407.6 MB, free: 6.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.504e-05/0.008991, allocations: 8.5 kB / 407.6 MB, free: 6.855 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.008991, allocations: 4 kB / 407.6 MB, free: 6.852 MB / 378.7 MB Notification: Performance of Templates: time 0.002313/0.0113, allocations: 1.852 MB / 409.4 MB, free: 4.996 MB / 378.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=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.029751088470221] Failed to read output from testmodel.py, exit status != 0: 0.015532007440924644 0.022609165 0.017429737 Calling exit ...