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.001221/0.001221, allocations: 70.98 kB / 19.97 MB, free: 1.73 MB / 14.72 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.001298/0.001298, allocations: 174.2 kB / 23.26 MB, free: 4.855 MB / 14.72 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 1.338/1.338, allocations: 177.1 MB / 203.6 MB, free: 9.176 MB / 190.1 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.05666/0.05666, allocations: 9.17 MB / 269.1 MB, free: 7.902 MB / 254.1 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.032e-06/1.032e-06, allocations: 0 / 397.5 MB, free: 5.301 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.763e-05/1.867e-05, allocations: 4.812 kB / 397.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003544/0.003563, allocations: 2.396 MB / 399.9 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002948/0.003857, allocations: 135.4 kB / 400.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.783e-05/0.003925, allocations: 7.938 kB / 400.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.004069, allocations: 27.78 kB / 400.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.743e-05/0.004156, allocations: 7.875 kB / 400.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.004349, allocations: 51.81 kB / 400.2 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001576/0.004506, allocations: 71.77 kB / 400.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.076e-05/0.004597, allocations: 16.22 kB / 400.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.479e-05/0.004672, allocations: 35.91 kB / 400.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.004793, allocations: 43.83 kB / 400.3 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.196e-05/0.004825, allocations: 8 kB / 400.3 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.853e-05/0.004904, allocations: 35.92 kB / 400.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.541e-05/0.004989, allocations: 47.83 kB / 400.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.885e-05/0.005048, allocations: 27.86 kB / 400.4 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.005314, allocations: 179.2 kB / 400.6 MB, free: 2.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.325e-05/0.005327, allocations: 8 kB / 400.6 MB, free: 2.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.81e-07/0.005327, allocations: 0 / 400.6 MB, free: 2.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.005331, allocations: 0 / 400.6 MB, free: 2.188 MB / 318.1 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.0006818/0.006012, allocations: 448.8 kB / 401.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.006046, allocations: 8.031 kB / 401.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.889e-05/0.006095, allocations: 20.8 kB / 401.1 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002514/0.006346, allocations: 161.4 kB / 401.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.006361, allocations: 4.375 kB / 401.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.652e-05/0.006388, allocations: 8.375 kB / 401.3 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007581/0.007146, allocations: 0.6216 MB / 401.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.007155, allocations: 192 / 401.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.00717, allocations: 4.375 kB / 401.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.007177, allocations: 8.375 kB / 401.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000245/0.007422, allocations: 191.8 kB / 402.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003579/0.00778, allocations: 261.7 kB / 402.3 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/0.008176, allocations: 277.3 kB / 402.6 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.008389, allocations: 182.2 kB / 402.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.00841, allocations: 0 / 402.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.008441, allocations: 42.5 kB / 402.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.152e-06/0.008442, allocations: 0 / 402.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.0008313/0.009273, allocations: 0.6685 MB / 403.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.851e-05/0.009372, allocations: 145.5 kB / 403.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.009521, allocations: 169 kB / 403.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.009551, allocations: 29.7 kB / 403.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.802e-05/0.009619, allocations: 97.14 kB / 403.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.009641, allocations: 19.83 kB / 403.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.009693, allocations: 33.7 kB / 404 MB, free: 14.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.009849, allocations: 318.8 kB / 404.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.584e-05/0.009915, allocations: 67.41 kB / 404.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.797e-05/0.009983, allocations: 77.11 kB / 404.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.01011, allocations: 132.5 kB / 404.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.01011, allocations: 7.938 kB / 404.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002058/0.01031, allocations: 184.4 kB / 404.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.495e-05/0.01037, allocations: 55.41 kB / 404.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.01038, allocations: 4 kB / 404.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.01039, allocations: 0 / 404.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.989e-05/0.01041, allocations: 0 / 404.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.01041, allocations: 0 / 404.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.599e-05/0.01044, allocations: 4 kB / 404.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.01045, allocations: 8 kB / 404.8 MB, free: 13.58 MB / 334.1 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.0001688/0.01062, allocations: 205.7 kB / 405 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003789/0.011, allocations: 320.5 kB / 405.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.01104, allocations: 18.62 kB / 405.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.01105, allocations: 0 / 405.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.01105, allocations: 0 / 405.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.01105, allocations: 8.172 kB / 405.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.01121, allocations: 141.1 kB / 405.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.01122, allocations: 0 / 405.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.916e-05/0.01129, allocations: 19.92 kB / 405.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.01129, allocations: 3.984 kB / 405.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.01132, allocations: 7.938 kB / 405.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.01132, allocations: 0 / 405.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01132, allocations: 4 kB / 405.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005869/0.0119, allocations: 0.5576 MB / 406.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.799e-05/0.01193, allocations: 27.73 kB / 406.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.01196, allocations: 11.92 kB / 406.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.513e-05/0.01204, allocations: 4 kB / 406.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.111e-05/0.01207, allocations: 8 kB / 406.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.01208, allocations: 4 kB / 406.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.792e-05/0.01217, allocations: 111.2 kB / 406.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01217, allocations: 192 / 406.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002502/0.01242, allocations: 27.95 kB / 406.3 MB, free: 12.02 MB / 334.1 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.0007829/0.0132, allocations: 334 kB / 406.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004053/0.01361, allocations: 376.9 kB / 407 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.01361, allocations: 3.938 kB / 407 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.01374, allocations: 178.2 kB / 407.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005445/0.01429, allocations: 246.8 kB / 407.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006967/0.01498, allocations: 0.5042 MB / 407.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001648/0.01515, allocations: 163.5 kB / 408.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.387e-05/0.01518, allocations: 7.984 kB / 408.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.46e-05/0.01521, allocations: 12.5 kB / 408.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.01521, allocations: 4 kB / 408.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of Templates: time 0.00514/0.02035, allocations: 1.934 MB / 410 MB, free: 8.234 MB / 334.1 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: 3.9034250415861607] Failed to read output from testmodel.py, exit status != 0: 0.027693815529346466 0.042295401 0.034008037000000005 Calling exit ...