Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.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.000722/0.000722, allocations: 80.44 kB / 20.73 MB, free: 3.84 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.0007062/0.0007062, allocations: 165.9 kB / 24 MB, free: 0.5664 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.8239/0.8239, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.03359/0.03359, allocations: 9.149 MB / 269.9 MB, free: 4.453 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.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 398.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.119e-05/2.237e-05, allocations: 6.281 kB / 398.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.002581/0.002604, allocations: 2.402 MB / 400.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001889/0.002792, allocations: 123.5 kB / 400.8 MB, free: 13.03 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.693e-05/0.002859, allocations: 3.938 kB / 400.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.003006, allocations: 31.72 kB / 400.9 MB, free: 12.99 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 8.646e-05/0.003092, allocations: 7.938 kB / 400.9 MB, free: 12.98 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001558/0.003248, allocations: 55.7 kB / 400.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.003376, allocations: 71.81 kB / 401 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.356e-05/0.00347, allocations: 20.16 kB / 401 MB, free: 12.84 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.376e-05/0.003524, allocations: 39.89 kB / 401.1 MB, free: 12.8 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.41e-05/0.003618, allocations: 31.97 kB / 401.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.003641, allocations: 11.94 kB / 401.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.816e-05/0.003699, allocations: 35.92 kB / 401.1 MB, free: 12.72 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.8e-05/0.003757, allocations: 47.83 kB / 401.2 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.959e-05/0.003796, allocations: 23.88 kB / 401.2 MB, free: 12.65 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.003994, allocations: 191.1 kB / 401.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.003996, allocations: 0 / 401.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.003997, allocations: 0 / 401.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.004001, allocations: 0 / 401.4 MB, free: 12.46 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0004531/0.004454, allocations: 444.8 kB / 401.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.004486, allocations: 12.03 kB / 401.8 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.004525, allocations: 16.8 kB / 401.8 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.00471, allocations: 168.1 kB / 402 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.004722, allocations: 8.359 kB / 402 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.004735, allocations: 8.375 kB / 402 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004753/0.00521, allocations: 0.6158 MB / 402.6 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.005218, allocations: 192 / 402.6 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.005229, allocations: 4.375 kB / 402.6 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.005234, allocations: 384 / 402.7 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.005373, allocations: 203.7 kB / 402.8 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002538/0.005626, allocations: 245.7 kB / 403.1 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.005883, allocations: 273.3 kB / 403.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.005998, allocations: 186.1 kB / 403.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.006022, allocations: 8 kB / 403.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.006049, allocations: 42.44 kB / 403.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 1.222e-06/0.00605, allocations: 0 / 403.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.0005316/0.006582, allocations: 0.6724 MB / 404.3 MB, free: 9.344 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.006638, allocations: 137.5 kB / 404.4 MB, free: 9.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.039e-05/0.006728, allocations: 161.9 kB / 404.6 MB, free: 9.008 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.006741, allocations: 29.7 kB / 404.6 MB, free: 8.973 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.234e-05/0.006783, allocations: 97.12 kB / 404.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.006802, allocations: 19.83 kB / 404.7 MB, free: 8.855 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.006836, allocations: 33.7 kB / 404.7 MB, free: 8.816 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.526e-05/0.006901, allocations: 314.8 kB / 405 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.873e-05/0.007, allocations: 67.39 kB / 405.1 MB, free: 8.422 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.658e-05/0.007036, allocations: 81.19 kB / 405.2 MB, free: 8.324 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.648e-05/0.007103, allocations: 144.5 kB / 405.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.007105, allocations: 0 / 405.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001081/0.007213, allocations: 184.3 kB / 405.5 MB, free: 7.941 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.007244, allocations: 67.39 kB / 405.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.007248, allocations: 3.984 kB / 405.6 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.007258, allocations: 0 / 405.6 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.236e-05/0.007281, allocations: 4 kB / 405.6 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.007285, allocations: 0 / 405.6 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.986e-05/0.007305, allocations: 8.062 kB / 405.6 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.007311, allocations: 4 kB / 405.6 MB, free: 7.844 MB / 330.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 9.162e-05/0.007403, allocations: 201.2 kB / 405.8 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.007606, allocations: 316.3 kB / 406.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.007637, allocations: 22.61 kB / 406.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.007639, allocations: 0 / 406.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.007642, allocations: 4 kB / 406.1 MB, free: 7.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.007645, allocations: 0 / 406.1 MB, free: 7.289 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.007745, allocations: 141.1 kB / 406.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.007751, allocations: 0 / 406.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.174e-05/0.007792, allocations: 16 kB / 406.3 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.007794, allocations: 0 / 406.3 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.007804, allocations: 11.94 kB / 406.3 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.007806, allocations: 3.984 kB / 406.3 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.007807, allocations: 0 / 406.3 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/0.008258, allocations: 0.5653 MB / 406.9 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.666e-05/0.008275, allocations: 27.73 kB / 406.9 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.008289, allocations: 7.938 kB / 406.9 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.904e-05/0.008329, allocations: 4 kB / 406.9 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.936e-05/0.008348, allocations: 0 / 406.9 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.008356, allocations: 11.98 kB / 406.9 MB, free: 6.426 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.495e-05/0.008401, allocations: 113.7 kB / 407 MB, free: 6.316 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008401, allocations: 0 / 407 MB, free: 6.316 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001667/0.008568, allocations: 27.94 kB / 407 MB, free: 6.289 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: 33 (synchronizeRealtime.initialized,joystickInput.buttons[1],joystickInput.buttons[2],joystickInput.buttons[3],joystickInput.buttons[4],joystickInput.buttons[5],joystickInput.buttons[6],joystickInput.buttons[7],joystickInput.buttons[8],joystickInput.buttons[9],joystickInput.buttons[10],joystickInput.buttons[11],joystickInput.buttons[12],joystickInput.buttons[13],joystickInput.buttons[14],joystickInput.buttons[15],joystickInput.buttons[16],joystickInput.buttons[17],joystickInput.buttons[18],joystickInput.buttons[19],joystickInput.buttons[20],joystickInput.buttons[21],joystickInput.buttons[22],joystickInput.buttons[23],joystickInput.buttons[24],joystickInput.buttons[25],joystickInput.buttons[26],joystickInput.buttons[27],joystickInput.buttons[28],joystickInput.buttons[29],joystickInput.buttons[30],joystickInput.buttons[31],joystickInput.buttons[32]) * 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.0004301/0.008998, allocations: 327.6 kB / 407.4 MB, free: 6.062 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002561/0.009254, allocations: 373 kB / 407.7 MB, free: 5.648 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.009256, allocations: 0 / 407.7 MB, free: 5.648 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.436e-05/0.00932, allocations: 178.3 kB / 407.9 MB, free: 5.438 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.009667, allocations: 250.6 kB / 408.1 MB, free: 5.184 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.01011, allocations: 0.5332 MB / 408.7 MB, free: 4.602 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.603e-05/0.01021, allocations: 159.5 kB / 408.8 MB, free: 4.426 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.729e-05/0.01023, allocations: 16.69 kB / 408.8 MB, free: 4.41 MB / 330.7 MB Notification: Performance of SimCode: time 4e-07/0.01023, allocations: 0 / 408.8 MB, free: 4.41 MB / 330.7 MB Notification: Performance of Templates: time 0.002509/0.01274, allocations: 2.295 MB / 411.1 MB, free: 2.117 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 4.152144155465066] Failed to read output from testmodel.py, exit status != 0: 0.016893330961465836 0.14863398800000002 0.143069306 Calling exit ...