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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 115.3 kB / 19.74 MB, free: 2.137 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 187.2 kB / 23.03 MB, free: 4.953 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 251.8 MB, free: 13.04 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05738/0.05738, allocations: 12.19 MB / 319.3 MB, free: 12.86 MB / 254.1 MB
"
[Timeout remaining time 180]
Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001854/0.001854, allocations: 67.89 kB / 445.3 MB, free: 3.984 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1114, allocations: 55.21 MB / 0.4888 GB, free: 12.68 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.004739/0.1161, allocations: 2.401 MB / 0.4911 GB, free: 10.27 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0003232/0.1164, allocations: 135.5 kB / 0.4912 GB, free: 10.14 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 8.62e-05/0.1165, allocations: 3.938 kB / 0.4912 GB, free: 10.13 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.1167, allocations: 27.78 kB / 0.4913 GB, free: 10.11 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.1168, allocations: 11.94 kB / 0.4913 GB, free: 10.09 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001911/0.117, allocations: 42.89 kB / 0.4913 GB, free: 10.05 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001607/0.1172, allocations: 83.75 kB / 0.4914 GB, free: 9.973 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.1173, allocations: 20.16 kB / 0.4914 GB, free: 9.949 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 5.517e-05/0.1173, allocations: 35.8 kB / 0.4914 GB, free: 9.914 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.1175, allocations: 39.83 kB / 0.4915 GB, free: 9.875 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.882e-05/0.1175, allocations: 8 kB / 0.4915 GB, free: 9.867 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.408e-05/0.1176, allocations: 35.92 kB / 0.4915 GB, free: 9.832 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.434e-05/0.1177, allocations: 43.84 kB / 0.4916 GB, free: 9.789 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 8.64e-05/0.1177, allocations: 67.48 kB / 0.4916 GB, free: 9.723 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002751/0.118, allocations: 183 kB / 0.4918 GB, free: 9.543 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.118, allocations: 0 / 0.4918 GB, free: 9.543 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.613e-06/0.118, allocations: 4 kB / 0.4918 GB, free: 9.539 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 5.851e-06/0.118, allocations: 0 / 0.4918 GB, free: 9.539 MB / 366.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.0006815/0.1187, allocations: 452.8 kB / 0.4922 GB, free: 9.051 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.1187, allocations: 8.031 kB / 0.4922 GB, free: 9.043 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.774e-05/0.1188, allocations: 24.75 kB / 0.4923 GB, free: 9.02 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.1191, allocations: 158.2 kB / 0.4924 GB, free: 8.84 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.1191, allocations: 12.31 kB / 0.4924 GB, free: 8.828 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.1191, allocations: 12.36 kB / 0.4924 GB, free: 8.816 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/0.1198, allocations: 0.5494 MB / 0.493 GB, free: 8.242 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1199, allocations: 192 / 0.493 GB, free: 8.242 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.1199, allocations: 11.94 kB / 0.493 GB, free: 8.23 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1199, allocations: 4 kB / 0.493 GB, free: 8.227 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.1201, allocations: 136.4 kB / 0.4931 GB, free: 8.094 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004169/0.1205, allocations: 316.9 kB / 0.4934 GB, free: 7.738 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.1208, allocations: 221.9 kB / 0.4936 GB, free: 7.504 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.121, allocations: 126.6 kB / 0.4938 GB, free: 7.375 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.121, allocations: 4 kB / 0.4938 GB, free: 7.371 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.121, allocations: 34.56 kB / 0.4938 GB, free: 7.328 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=50): time 1.262e-06/0.121, allocations: 0 / 0.4938 GB, free: 7.328 MB / 366.1 MB
Notification: Performance of matching and sorting (n=50): time 0.0007287/0.1218, allocations: 0.5627 MB / 0.4943 GB, free: 6.75 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.1219, allocations: 141.4 kB / 0.4945 GB, free: 6.578 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.122, allocations: 160.8 kB / 0.4946 GB, free: 6.41 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.1221, allocations: 33.7 kB / 0.4947 GB, free: 6.371 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/0.1221, allocations: 105 kB / 0.4948 GB, free: 6.262 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.1222, allocations: 27.92 kB / 0.4948 GB, free: 6.234 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.89e-05/0.1223, allocations: 86.12 kB / 0.4949 GB, free: 6.145 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001604/0.1224, allocations: 338.8 kB / 0.4952 GB, free: 5.805 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.1226, allocations: 72.83 kB / 0.4953 GB, free: 5.734 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004021/0.123, allocations: 380.1 kB / 0.4956 GB, free: 5.215 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0006497/0.1236, allocations: 0.5822 MB / 0.4962 GB, free: 4.457 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.1236, allocations: 4 kB / 0.4962 GB, free: 4.453 MB / 366.1 MB
Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007263/0.1243, allocations: 488.6 kB / 0.4967 GB, free: 3.957 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 6.749e-05/0.1244, allocations: 63.34 kB / 0.4967 GB, free: 3.883 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.1244, allocations: 16.83 kB / 0.4967 GB, free: 3.867 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.325e-05/0.1245, allocations: 16 kB / 0.4968 GB, free: 3.852 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.1247, allocations: 91.78 kB / 0.4968 GB, free: 3.762 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.742e-05/0.1247, allocations: 27.92 kB / 0.4969 GB, free: 3.734 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.1249, allocations: 35.78 kB / 0.4969 GB, free: 3.699 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.1249, allocations: 32 kB / 0.4969 GB, free: 3.668 MB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 49
 * Number of states: 0 ()
 * Number of discrete variables: 33 (synchronizeRealtime.initialized,joystickInput.buttons[32],joystickInput.buttons[31],joystickInput.buttons[30],joystickInput.buttons[29],joystickInput.buttons[28],joystickInput.buttons[27],joystickInput.buttons[26],joystickInput.buttons[25],joystickInput.buttons[24],joystickInput.buttons[23],joystickInput.buttons[22],joystickInput.buttons[21],joystickInput.buttons[20],joystickInput.buttons[19],joystickInput.buttons[18],joystickInput.buttons[17],joystickInput.buttons[16],joystickInput.buttons[15],joystickInput.buttons[14],joystickInput.buttons[13],joystickInput.buttons[12],joystickInput.buttons[11],joystickInput.buttons[10],joystickInput.buttons[9],joystickInput.buttons[8],joystickInput.buttons[7],joystickInput.buttons[6],joystickInput.buttons[5],joystickInput.buttons[4],joystickInput.buttons[3],joystickInput.buttons[2],joystickInput.buttons[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (50):
 * Single equations (assignments): 48
 * 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.000345/0.1253, allocations: 260.8 kB / 0.4972 GB, free: 3.391 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003782/0.1257, allocations: 315.2 kB / 0.4975 GB, free: 3.074 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.613e-05/0.1257, allocations: 18.62 kB / 0.4975 GB, free: 3.055 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1257, allocations: 0 / 0.4975 GB, free: 3.055 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1257, allocations: 4 kB / 0.4975 GB, free: 3.051 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1257, allocations: 0 / 0.4975 GB, free: 3.051 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.126, allocations: 204.4 kB / 0.4977 GB, free: 2.809 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.126, allocations: 4 kB / 0.4977 GB, free: 2.805 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.129e-05/0.126, allocations: 8 kB / 0.4977 GB, free: 2.797 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.126, allocations: 8 kB / 0.4977 GB, free: 2.789 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.1261, allocations: 4 kB / 0.4977 GB, free: 2.785 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.1261, allocations: 4 kB / 0.4977 GB, free: 2.781 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.1261, allocations: 7.969 kB / 0.4977 GB, free: 2.773 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005816/0.1267, allocations: 0.5062 MB / 0.4982 GB, free: 2.242 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.055e-05/0.1267, allocations: 31.72 kB / 0.4983 GB, free: 2.211 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.1267, allocations: 4 kB / 0.4983 GB, free: 2.207 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.646e-05/0.1268, allocations: 8 kB / 0.4983 GB, free: 2.199 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.1268, allocations: 4 kB / 0.4983 GB, free: 2.195 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.1268, allocations: 4 kB / 0.4983 GB, free: 2.191 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 9.355e-05/0.1269, allocations: 111.2 kB / 0.4984 GB, free: 2.082 MB / 366.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.1269, allocations: 0 / 0.4984 GB, free: 2.082 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0003919/0.1273, allocations: 43.94 kB / 0.4984 GB, free: 2.039 MB / 366.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.000841/0.1282, allocations: 315.5 kB / 0.4987 GB, free: 1.805 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005623/0.1287, allocations: 412.2 kB / 0.4991 GB, free: 1.375 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1287, allocations: 4.062 kB / 0.4991 GB, free: 1.371 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 9.39e-05/0.1288, allocations: 122.8 kB / 0.4992 GB, free: 1.227 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006503/0.1295, allocations: 242.4 kB / 0.4995 GB, free: 0.9844 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007471/0.1302, allocations: 477.9 kB / 0.4999 GB, free: 500 kB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.1307, allocations: 0.7831 MB / 0.5007 GB, free: 15.68 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 7.708e-05/0.1307, allocations: 33.75 kB / 0.5007 GB, free: 15.64 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.1308, allocations: 15.44 kB / 0.5007 GB, free: 15.63 MB / 382.1 MB
Notification: Performance of SimCode: time 2.71e-07/0.1308, allocations: 0 / 0.5007 GB, free: 15.63 MB / 382.1 MB
Notification: Performance of Templates: time 0.006823/0.1376, allocations: 2.631 MB / 0.5033 GB, free: 13 MB / 382.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: 4.5125363282859325]
Failed to read output from testmodel.py, exit status != 0:
0.14574523735791445 0.34836889499999996 0.04234927499999994
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fce5e8257b0>