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.001162/0.001162, allocations: 106.8 kB / 17.07 MB, free: 5.68 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.001121/0.001121, allocations: 194.9 kB / 18.01 MB, free: 5.02 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.223/1.223, allocations: 222.9 MB / 241.7 MB, free: 15.15 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.05268/0.05268, allocations: 12.04 MB / 303.9 MB, free: 3.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 59.89 kB / 367.9 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1846, allocations: 52.33 MB / 420.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.002922/0.1876, allocations: 2.275 MB / 422.5 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002236/0.1878, allocations: 135 kB / 422.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.886e-05/0.1879, allocations: 4 kB / 422.7 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.188, allocations: 27.78 kB / 422.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.502e-05/0.1881, allocations: 7.938 kB / 422.7 MB, free: 18.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001699/0.1883, allocations: 51.81 kB / 422.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.1884, allocations: 71.77 kB / 422.8 MB, free: 18.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.126e-05/0.1885, allocations: 28.16 kB / 422.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.563e-05/0.1886, allocations: 23.86 kB / 422.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.225e-05/0.1887, allocations: 45.52 kB / 422.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.1887, allocations: 7.938 kB / 422.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.291e-05/0.1888, allocations: 35.98 kB / 422.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.557e-05/0.1888, allocations: 47.84 kB / 423 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.032e-05/0.1889, allocations: 63.48 kB / 423.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.1891, allocations: 187.2 kB / 423.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.1891, allocations: 0 / 423.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1891, allocations: 0 / 423.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.1891, allocations: 0 / 423.2 MB, free: 17.94 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.000506/0.1896, allocations: 0.5117 MB / 423.8 MB, free: 17.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.1896, allocations: 12.03 kB / 423.8 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.928e-05/0.1897, allocations: 20.66 kB / 423.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.1899, allocations: 219.9 kB / 424 MB, free: 17.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.1899, allocations: 4.375 kB / 424 MB, free: 17.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.1899, allocations: 12.38 kB / 424 MB, free: 17.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.1904, allocations: 0.554 MB / 424.6 MB, free: 16.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.1904, allocations: 192 / 424.6 MB, free: 16.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.1904, allocations: 15.94 kB / 424.6 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1905, allocations: 0 / 424.6 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.1906, allocations: 136.4 kB / 424.7 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002822/0.1909, allocations: 345.7 kB / 425.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.1912, allocations: 339 kB / 425.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1913, allocations: 170.6 kB / 425.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.1913, allocations: 0 / 425.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.33e-05/0.1913, allocations: 42.5 kB / 425.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.062e-06/0.1914, allocations: 0 / 425.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.0005121/0.1919, allocations: 0.5549 MB / 426.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.1919, allocations: 137.4 kB / 426.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.183e-05/0.192, allocations: 163.8 kB / 426.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.192, allocations: 25.7 kB / 426.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.582e-05/0.1921, allocations: 105 kB / 426.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.1921, allocations: 31.88 kB / 426.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.536e-05/0.1922, allocations: 86.12 kB / 426.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.257e-05/0.1922, allocations: 342.8 kB / 427 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.647e-05/0.1923, allocations: 68.83 kB / 427.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.1925, allocations: 376.1 kB / 427.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.1928, allocations: 0.5862 MB / 428 MB, free: 12.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.1928, allocations: 4.094 kB / 428 MB, free: 12.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004607/0.1933, allocations: 497.1 kB / 428.5 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.1933, allocations: 67.39 kB / 428.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1933, allocations: 8 kB / 428.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.1934, allocations: 23.97 kB / 428.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1935, allocations: 91.78 kB / 428.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.1936, allocations: 23.92 kB / 428.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.1937, allocations: 35.69 kB / 428.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.1937, allocations: 28 kB / 428.8 MB, free: 11.71 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.0001486/0.1939, allocations: 260.9 kB / 429.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/0.1942, allocations: 311.1 kB / 429.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.883e-05/0.1942, allocations: 22.61 kB / 429.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.1942, allocations: 4 kB / 429.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1942, allocations: 0 / 429.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1942, allocations: 0 / 429.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.1944, allocations: 229.3 kB / 429.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.1944, allocations: 0 / 429.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.866e-05/0.1945, allocations: 16 kB / 429.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1945, allocations: 0 / 429.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.1945, allocations: 3.984 kB / 429.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1945, allocations: 4 kB / 429.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1945, allocations: 0 / 429.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003521/0.1949, allocations: 0.5059 MB / 430.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.1949, allocations: 104.8 kB / 430.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.1949, allocations: 8 kB / 430.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.862e-05/0.195, allocations: 0 / 430.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.426e-05/0.195, allocations: 8 kB / 430.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.1951, allocations: 4 kB / 430.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.407e-05/0.1951, allocations: 109.5 kB / 430.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1951, allocations: 0 / 430.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.1955, allocations: 44 kB / 430.4 MB, free: 9.98 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.0004973/0.196, allocations: 325.4 kB / 430.7 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003472/0.1964, allocations: 428.1 kB / 431.1 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1964, allocations: 0 / 431.1 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.574e-05/0.1964, allocations: 118.8 kB / 431.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.1969, allocations: 290.4 kB / 431.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004598/0.1973, allocations: 462.3 kB / 432 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.1975, allocations: 0.7754 MB / 432.8 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.545e-05/0.1976, allocations: 33.66 kB / 432.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.395e-05/0.1976, allocations: 19.44 kB / 432.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1976, allocations: 0 / 432.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of Templates: time 0.004153/0.2018, allocations: 2.369 MB / 435.2 MB, free: 5.168 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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)