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.001361/0.001361, allocations: 108.3 kB / 19.75 MB, free: 1.879 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.001837/0.001837, allocations: 217.1 kB / 23.03 MB, free: 5.016 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.372/1.372, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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.06207/0.06207, allocations: 12.21 MB / 325.4 MB, free: 7.074 MB / 254.1 MB " [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 0.001924/0.001924, allocations: 71.89 kB / 453.8 MB, free: 8.359 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1081, allocations: 56.4 MB / 0.4982 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.004483/0.1125, allocations: 2.396 MB / 0.5006 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003264/0.1129, allocations: 131.5 kB / 0.5007 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.601e-05/0.1129, allocations: 0 / 0.5007 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1131, allocations: 27.78 kB / 0.5007 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.1132, allocations: 15.92 kB / 0.5007 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.1134, allocations: 39.89 kB / 0.5008 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.1137, allocations: 79.77 kB / 0.5008 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.1138, allocations: 12.17 kB / 0.5009 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.452e-05/0.1138, allocations: 35.84 kB / 0.5009 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.1139, allocations: 47.77 kB / 0.5009 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.878e-05/0.114, allocations: 4 kB / 0.5009 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.033e-05/0.1141, allocations: 35.98 kB / 0.501 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.6e-05/0.1141, allocations: 43.8 kB / 0.501 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.376e-05/0.1142, allocations: 51.59 kB / 0.5011 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.1145, allocations: 187 kB / 0.5012 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1145, allocations: 0 / 0.5012 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1145, allocations: 0 / 0.5012 GB, free: 12.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.1145, allocations: 0 / 0.5012 GB, free: 12.75 MB / 382.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.000723/0.1153, allocations: 456.7 kB / 0.5017 GB, free: 12.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1153, allocations: 12.02 kB / 0.5017 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.616e-05/0.1154, allocations: 20.8 kB / 0.5017 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.1157, allocations: 158.2 kB / 0.5019 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.1157, allocations: 12.36 kB / 0.5019 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.1157, allocations: 12.38 kB / 0.5019 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008015/0.1165, allocations: 0.6064 MB / 0.5025 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.1165, allocations: 192 / 0.5025 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.1166, allocations: 7.938 kB / 0.5025 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.1166, allocations: 8 kB / 0.5025 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002295/0.1168, allocations: 187.8 kB / 0.5027 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004206/0.1172, allocations: 257.6 kB / 0.5029 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000419/0.1176, allocations: 283.7 kB / 0.5032 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.1178, allocations: 182 kB / 0.5034 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.1179, allocations: 0 / 0.5034 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.1179, allocations: 42.5 kB / 0.5034 GB, free: 10.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 1.493e-06/0.1179, allocations: 0 / 0.5034 GB, free: 10.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.0008597/0.1188, allocations: 0.667 MB / 0.5041 GB, free: 9.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.1189, allocations: 141.4 kB / 0.5042 GB, free: 9.461 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.119, allocations: 162 kB / 0.5043 GB, free: 9.289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.1191, allocations: 25.7 kB / 0.5044 GB, free: 9.258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.392e-05/0.1191, allocations: 101.1 kB / 0.5045 GB, free: 9.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.064e-05/0.1192, allocations: 39.86 kB / 0.5045 GB, free: 9.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1193, allocations: 82.12 kB / 0.5046 GB, free: 9.027 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1194, allocations: 334.8 kB / 0.5049 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.1196, allocations: 124.2 kB / 0.505 GB, free: 8.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.12, allocations: 439.4 kB / 0.5054 GB, free: 7.965 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006882/0.1207, allocations: 0.5822 MB / 0.506 GB, free: 7.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.1207, allocations: 4.031 kB / 0.506 GB, free: 7.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007961/0.1215, allocations: 0.5388 MB / 0.5065 GB, free: 6.633 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.679e-05/0.1216, allocations: 68.34 kB / 0.5066 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.1216, allocations: 12 kB / 0.5066 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.1216, allocations: 12 kB / 0.5066 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.1219, allocations: 99.77 kB / 0.5067 GB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.927e-05/0.1219, allocations: 15.94 kB / 0.5067 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.1221, allocations: 43.73 kB / 0.5068 GB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.1221, allocations: 28 kB / 0.5068 GB, free: 6.348 MB / 382.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.0002673/0.1224, allocations: 260.9 kB / 0.507 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003921/0.1228, allocations: 311.3 kB / 0.5073 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.949e-05/0.1228, allocations: 26.61 kB / 0.5074 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1228, allocations: 0 / 0.5074 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1228, allocations: 0 / 0.5074 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1228, allocations: 0 / 0.5074 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001777/0.123, allocations: 149 kB / 0.5075 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.123, allocations: 0 / 0.5075 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.005e-05/0.1231, allocations: 12 kB / 0.5075 GB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1231, allocations: 0 / 0.5075 GB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1231, allocations: 11.98 kB / 0.5075 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.1231, allocations: 0 / 0.5075 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1231, allocations: 144 / 0.5075 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000605/0.1237, allocations: 0.5679 MB / 0.5081 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.853e-05/0.1238, allocations: 27.73 kB / 0.5081 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.718e-05/0.1238, allocations: 8 kB / 0.5081 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.362e-05/0.1239, allocations: 0 / 0.5081 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.1239, allocations: 7.984 kB / 0.5081 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.1239, allocations: 12 kB / 0.5081 GB, free: 4.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.266e-05/0.124, allocations: 109.3 kB / 0.5082 GB, free: 4.766 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.124, allocations: 0 / 0.5082 GB, free: 4.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004223/0.1244, allocations: 51.92 kB / 0.5083 GB, free: 4.715 MB / 382.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.0009415/0.1254, allocations: 329.8 kB / 0.5086 GB, free: 4.477 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006776/0.1261, allocations: 0.5134 MB / 0.5091 GB, free: 3.914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1261, allocations: 0 / 0.5091 GB, free: 3.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.1262, allocations: 170.2 kB / 0.5093 GB, free: 3.711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.1268, allocations: 258.1 kB / 0.5095 GB, free: 3.453 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008152/0.1276, allocations: 0.5052 MB / 0.51 GB, free: 2.906 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001797/0.1277, allocations: 164.2 kB / 0.5102 GB, free: 2.727 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.407e-05/0.1278, allocations: 33.75 kB / 0.5102 GB, free: 2.695 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.757e-05/0.1279, allocations: 15.44 kB / 0.5102 GB, free: 2.68 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1279, allocations: 0 / 0.5102 GB, free: 2.68 MB / 382.1 MB Notification: Performance of Templates: time 0.007133/0.135, allocations: 2.589 MB / 0.5127 GB, free: 124 kB / 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.612066984176636] Failed to read output from testmodel.py, exit status != 0: 0.39681699872016907 0.40775407100000005 0.290767586 Calling exit ...