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.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.001341/0.001341, allocations: 118 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.001477/0.001477, allocations: 187.4 kB / 23.02 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.509/1.509, allocations: 225.6 MB / 251.8 MB, free: 13.02 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.06404/0.06404, allocations: 12.19 MB / 319.3 MB, free: 12.84 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.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 0.001869/0.001869, allocations: 71.83 kB / 445.3 MB, free: 3.969 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.124, allocations: 55.2 MB / 0.4887 GB, free: 12.68 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputSpaceMouse): time 0.004093/0.128, allocations: 2.36 MB / 0.491 GB, free: 10.31 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0003749/0.1284, allocations: 139.5 kB / 0.4912 GB, free: 10.17 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 7.546e-05/0.1285, allocations: 0 / 0.4912 GB, free: 10.17 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001759/0.1287, allocations: 27.8 kB / 0.4912 GB, free: 10.14 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 9.647e-05/0.1288, allocations: 7.938 kB / 0.4912 GB, free: 10.14 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.129, allocations: 47.27 kB / 0.4913 GB, free: 10.09 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001673/0.1291, allocations: 71.77 kB / 0.4913 GB, free: 10.02 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.1293, allocations: 19.92 kB / 0.4913 GB, free: 10 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 5.367e-05/0.1293, allocations: 23.92 kB / 0.4914 GB, free: 9.98 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.1294, allocations: 27.84 kB / 0.4914 GB, free: 9.953 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.1294, allocations: 4 kB / 0.4914 GB, free: 9.949 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 6.859e-05/0.1295, allocations: 27.98 kB / 0.4914 GB, free: 9.922 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.275e-05/0.1296, allocations: 35.86 kB / 0.4915 GB, free: 9.887 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 7.127e-05/0.1296, allocations: 51.61 kB / 0.4915 GB, free: 9.836 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.1299, allocations: 143.2 kB / 0.4916 GB, free: 9.695 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1299, allocations: 8 kB / 0.4917 GB, free: 9.688 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.784e-06/0.1299, allocations: 0 / 0.4917 GB, free: 9.688 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 9.227e-06/0.1299, allocations: 0 / 0.4917 GB, free: 9.688 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: 40
 * Number of variables: 40
Notification: Performance of Generate backend data structure: time 0.000601/0.1305, allocations: 405 kB / 0.492 GB, free: 9.246 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.1305, allocations: 8.031 kB / 0.492 GB, free: 9.238 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.036e-05/0.1306, allocations: 20.8 kB / 0.4921 GB, free: 9.219 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/0.1309, allocations: 142.3 kB / 0.4922 GB, free: 9.055 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.1309, allocations: 8.375 kB / 0.4922 GB, free: 9.047 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.1309, allocations: 8.375 kB / 0.4922 GB, free: 9.039 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006015/0.1315, allocations: 391.7 kB / 0.4926 GB, free: 8.633 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.1315, allocations: 192 / 0.4926 GB, free: 8.633 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.1315, allocations: 3.938 kB / 0.4926 GB, free: 8.629 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1315, allocations: 7.984 kB / 0.4926 GB, free: 8.621 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.1317, allocations: 79.91 kB / 0.4927 GB, free: 8.543 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004615/0.1321, allocations: 296.6 kB / 0.493 GB, free: 8.207 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.1324, allocations: 169.4 kB / 0.4931 GB, free: 8.023 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.1325, allocations: 113.8 kB / 0.4932 GB, free: 7.906 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.1326, allocations: 4 kB / 0.4932 GB, free: 7.902 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.1326, allocations: 42.5 kB / 0.4933 GB, free: 7.852 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=33): time 1.313e-06/0.1326, allocations: 0 / 0.4933 GB, free: 7.852 MB / 366.1 MB
Notification: Performance of matching and sorting (n=33): time 0.000563/0.1332, allocations: 386.4 kB / 0.4936 GB, free: 7.457 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.1333, allocations: 137.3 kB / 0.4938 GB, free: 7.293 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.1334, allocations: 144 kB / 0.4939 GB, free: 7.145 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.1335, allocations: 25.7 kB / 0.4939 GB, free: 7.113 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.988e-05/0.1335, allocations: 100.7 kB / 0.494 GB, free: 7.008 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.1336, allocations: 23.94 kB / 0.4941 GB, free: 6.984 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.571e-05/0.1336, allocations: 66 kB / 0.4941 GB, free: 6.914 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001412/0.1338, allocations: 326.8 kB / 0.4944 GB, free: 6.586 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 8.512e-05/0.1339, allocations: 48.53 kB / 0.4945 GB, free: 6.539 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.1341, allocations: 256.4 kB / 0.4947 GB, free: 6.191 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004851/0.1346, allocations: 429.8 kB / 0.4951 GB, free: 5.648 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1346, allocations: 4 kB / 0.4951 GB, free: 5.645 MB / 366.1 MB
Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004996/0.1351, allocations: 360.6 kB / 0.4955 GB, free: 5.273 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.184e-05/0.1352, allocations: 63.41 kB / 0.4955 GB, free: 5.199 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1352, allocations: 4 kB / 0.4955 GB, free: 5.195 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.1352, allocations: 15.98 kB / 0.4956 GB, free: 5.18 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.1354, allocations: 59.86 kB / 0.4956 GB, free: 5.121 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.1354, allocations: 8 kB / 0.4956 GB, free: 5.113 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.1356, allocations: 28.45 kB / 0.4957 GB, free: 5.086 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.79e-05/0.1356, allocations: 31.92 kB / 0.4957 GB, free: 5.055 MB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 32
 * Number of states: 0 ()
 * Number of discrete variables: 17 (synchronizeRealtime.initialized,spaceMouseInput.buttons[16],spaceMouseInput.buttons[15],spaceMouseInput.buttons[14],spaceMouseInput.buttons[13],spaceMouseInput.buttons[12],spaceMouseInput.buttons[11],spaceMouseInput.buttons[10],spaceMouseInput.buttons[9],spaceMouseInput.buttons[8],spaceMouseInput.buttons[7],spaceMouseInput.buttons[6],spaceMouseInput.buttons[5],spaceMouseInput.buttons[4],spaceMouseInput.buttons[3],spaceMouseInput.buttons[2],spaceMouseInput.buttons[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (33):
 * Single equations (assignments): 31
 * 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.0002178/0.1358, allocations: 223 kB / 0.4959 GB, free: 4.812 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002666/0.1361, allocations: 205.4 kB / 0.4961 GB, free: 4.605 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.538e-05/0.1361, allocations: 17.95 kB / 0.4961 GB, free: 4.586 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.1361, allocations: 4 kB / 0.4961 GB, free: 4.582 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1361, allocations: 3.938 kB / 0.4961 GB, free: 4.578 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1361, allocations: 4 kB / 0.4961 GB, free: 4.574 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.1364, allocations: 180.5 kB / 0.4963 GB, free: 4.355 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.1364, allocations: 8.141 kB / 0.4963 GB, free: 4.348 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.351e-05/0.1364, allocations: 8 kB / 0.4963 GB, free: 4.34 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.1365, allocations: 7.984 kB / 0.4963 GB, free: 4.332 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.1365, allocations: 4 kB / 0.4963 GB, free: 4.328 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.1365, allocations: 3.984 kB / 0.4963 GB, free: 4.324 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1365, allocations: 4 kB / 0.4963 GB, free: 4.32 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004305/0.1369, allocations: 412.4 kB / 0.4967 GB, free: 3.887 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.442e-05/0.1369, allocations: 23.84 kB / 0.4967 GB, free: 3.863 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.1369, allocations: 0 / 0.4967 GB, free: 3.863 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.395e-05/0.137, allocations: 4 kB / 0.4967 GB, free: 3.859 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.012e-05/0.137, allocations: 7.984 kB / 0.4968 GB, free: 3.852 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.137, allocations: 4 kB / 0.4968 GB, free: 3.848 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 7.162e-05/0.1371, allocations: 106.2 kB / 0.4969 GB, free: 3.746 MB / 366.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.1371, allocations: 0 / 0.4969 GB, free: 3.746 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0003342/0.1374, allocations: 35.92 kB / 0.4969 GB, free: 3.711 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: 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.0006665/0.1381, allocations: 266.2 kB / 0.4971 GB, free: 3.516 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004425/0.1386, allocations: 319.4 kB / 0.4975 GB, free: 3.18 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1386, allocations: 0 / 0.4975 GB, free: 3.18 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 9.317e-05/0.1386, allocations: 122.8 kB / 0.4976 GB, free: 3.035 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.1391, allocations: 165.6 kB / 0.4977 GB, free: 2.867 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000633/0.1398, allocations: 357 kB / 0.4981 GB, free: 2.492 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004256/0.1402, allocations: 0.7481 MB / 0.4988 GB, free: 1.711 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 5.236e-05/0.1403, allocations: 21.41 kB / 0.4988 GB, free: 1.688 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.249e-05/0.1403, allocations: 19.38 kB / 0.4988 GB, free: 1.668 MB / 366.1 MB
Notification: Performance of SimCode: time 2.81e-07/0.1403, allocations: 0 / 0.4988 GB, free: 1.668 MB / 366.1 MB
Notification: Performance of Templates: time 0.005417/0.1457, allocations: 2.006 MB / 0.5008 GB, free: 15.68 MB / 382.1 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: 4.560067574493587]
Failed to read output from testmodel.py, exit status != 0:
0.15266327373683453 0.16827228000000002 0.035201662
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fcb49d657b0>