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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 102.7 kB / 16.56 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 193.9 kB / 17.48 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05335/0.05335, allocations: 12.02 MB / 303.3 MB, free: 3.445 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 59.91 kB / 366.4 MB, free: 4.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1888, allocations: 52.32 MB / 418.8 MB, free: 21.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003217/0.1921, allocations: 2.313 MB / 421.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002076/0.1923, allocations: 143.5 kB / 421.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.894e-05/0.1924, allocations: 3.938 kB / 421.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.1926, allocations: 23.92 kB / 421.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.726e-05/0.1927, allocations: 11.92 kB / 421.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.1928, allocations: 35.95 kB / 421.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.953e-05/0.1929, allocations: 71.77 kB / 421.4 MB, free: 18.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.193, allocations: 16.23 kB / 421.4 MB, free: 18.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.098e-05/0.1931, allocations: 23.86 kB / 421.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.984e-05/0.1932, allocations: 51.75 kB / 421.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.1932, allocations: 8 kB / 421.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.545e-05/0.1933, allocations: 28 kB / 421.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.966e-05/0.1934, allocations: 43.78 kB / 421.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.351e-05/0.1934, allocations: 67.47 kB / 421.6 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.1936, allocations: 127.7 kB / 421.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1936, allocations: 0 / 421.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1936, allocations: 0 / 421.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1936, allocations: 0 / 421.7 MB, free: 18.38 MB / 302.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.0005242/0.1941, allocations: 0.5082 MB / 422.2 MB, free: 17.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.1942, allocations: 12.02 kB / 422.2 MB, free: 17.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.697e-05/0.1942, allocations: 20.66 kB / 422.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.1944, allocations: 211.9 kB / 422.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.1944, allocations: 8.375 kB / 422.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.1944, allocations: 8.375 kB / 422.5 MB, free: 17.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/0.195, allocations: 0.5618 MB / 423 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.195, allocations: 192 / 423 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.195, allocations: 7.938 kB / 423 MB, free: 16.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.195, allocations: 0 / 423 MB, free: 16.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001467/0.1952, allocations: 140.4 kB / 423.2 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003054/0.1955, allocations: 337.7 kB / 423.5 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002936/0.1958, allocations: 346.9 kB / 423.8 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.1959, allocations: 170.6 kB / 424 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.196, allocations: 3.984 kB / 424 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.621e-05/0.196, allocations: 38.56 kB / 424.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.004e-06/0.196, allocations: 0 / 424.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.0005649/0.1966, allocations: 0.5587 MB / 424.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.1966, allocations: 137.4 kB / 424.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1967, allocations: 161.9 kB / 424.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.1968, allocations: 29.7 kB / 424.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.475e-05/0.1968, allocations: 105 kB / 425 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.1968, allocations: 27.88 kB / 425.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.112e-05/0.1969, allocations: 86.12 kB / 425.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.152e-05/0.197, allocations: 338.8 kB / 425.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.281e-05/0.1971, allocations: 72.83 kB / 425.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.1972, allocations: 376.1 kB / 425.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003023/0.1976, allocations: 0.5861 MB / 426.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1976, allocations: 0 / 426.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004624/0.198, allocations: 489 kB / 427 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.1981, allocations: 71.39 kB / 427.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.1981, allocations: 8 kB / 427.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.1981, allocations: 16 kB / 427.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.1983, allocations: 87.88 kB / 427.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.1983, allocations: 27.86 kB / 427.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/0.1985, allocations: 43.69 kB / 427.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.1985, allocations: 28 kB / 427.3 MB, free: 12.16 MB / 302.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.0001713/0.1987, allocations: 257 kB / 427.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002523/0.1989, allocations: 311.1 kB / 427.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.441e-05/0.199, allocations: 22.62 kB / 427.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.199, allocations: 4 kB / 427.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.199, allocations: 4 kB / 427.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.199, allocations: 144 / 427.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.1992, allocations: 221.3 kB / 428.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.1992, allocations: 7.984 kB / 428.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-05/0.1993, allocations: 11.98 kB / 428.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1993, allocations: 4 kB / 428.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1993, allocations: 4 kB / 428.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1993, allocations: 7.938 kB / 428.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1993, allocations: 0 / 428.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.1997, allocations: 0.5098 MB / 428.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.782e-05/0.1997, allocations: 100.8 kB / 428.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.1997, allocations: 4 kB / 428.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.936e-05/0.1998, allocations: 4 kB / 428.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/0.1998, allocations: 7.984 kB / 428.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.1998, allocations: 4 kB / 428.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.786e-05/0.1999, allocations: 109.7 kB / 428.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1999, allocations: 0 / 428.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.2003, allocations: 43.98 kB / 428.9 MB, free: 10.43 MB / 302.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.0005168/0.2008, allocations: 321.5 kB / 429.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.2012, allocations: 418.6 kB / 429.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2012, allocations: 0 / 429.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.222e-05/0.2012, allocations: 128.5 kB / 429.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.2017, allocations: 284.1 kB / 430 MB, free: 9.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006125/0.2023, allocations: 0.5756 MB / 430.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.2025, allocations: 0.7681 MB / 431.3 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.2025, allocations: 23.42 kB / 431.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2025, allocations: 4 kB / 431.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of Templates: time 0.003565/0.2061, allocations: 2.749 MB / 434.1 MB, free: 5.145 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.makefile (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)