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.0008753/0.0008753, allocations: 93.3 kB / 16.71 MB, free: 6.141 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.0009339/0.0009339, allocations: 184.3 kB / 17.62 MB, free: 5.855 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.233/1.233, allocations: 223.3 MB / 241.7 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05437/0.05437, allocations: 12.05 MB / 304.8 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002721/0.0002721, allocations: 12 kB / 368.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1653, allocations: 53.36 MB / 422.3 MB, free: 20.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.001874/0.1672, allocations: 1.977 MB / 424.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001953/0.1674, allocations: 126.9 kB / 424.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.027e-05/0.1675, allocations: 0 / 424.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.1676, allocations: 27.91 kB / 424.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.019e-05/0.1677, allocations: 15.86 kB / 424.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001577/0.1679, allocations: 39.91 kB / 424.5 MB, free: 18.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.755e-05/0.1679, allocations: 63.78 kB / 424.5 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.433e-05/0.168, allocations: 36.19 kB / 424.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.327e-05/0.1681, allocations: 21.58 kB / 424.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.284e-05/0.1682, allocations: 39.84 kB / 424.6 MB, free: 18.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.738e-05/0.1682, allocations: 0 / 424.6 MB, free: 18.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.572e-05/0.1683, allocations: 31.97 kB / 424.7 MB, free: 18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.957e-05/0.1683, allocations: 45.84 kB / 424.7 MB, free: 17.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.701e-05/0.1684, allocations: 89.12 kB / 424.8 MB, free: 17.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.1685, allocations: 123.7 kB / 424.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1685, allocations: 0 / 424.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1685, allocations: 0 / 424.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.1685, allocations: 0 / 424.9 MB, free: 17.74 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.0004142/0.1689, allocations: 0.4923 MB / 425.4 MB, free: 17.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.726e-05/0.169, allocations: 8.031 kB / 425.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.827e-05/0.169, allocations: 20.66 kB / 425.4 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.1692, allocations: 208.1 kB / 425.6 MB, free: 16.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.1692, allocations: 8.375 kB / 425.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.1692, allocations: 12.38 kB / 425.7 MB, free: 16.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/0.1697, allocations: 0.5673 MB / 426.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1697, allocations: 192 / 426.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.1698, allocations: 7.938 kB / 426.2 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1698, allocations: 4 kB / 426.2 MB, free: 16.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000141/0.1699, allocations: 140.3 kB / 426.4 MB, free: 16.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002607/0.1702, allocations: 337.8 kB / 426.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.1705, allocations: 331 kB / 427 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.1706, allocations: 182.5 kB / 427.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.1707, allocations: 4 kB / 427.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.229e-05/0.1707, allocations: 34.55 kB / 427.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.352e-06/0.1707, allocations: 0 / 427.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.0005387/0.1712, allocations: 0.5587 MB / 427.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.1713, allocations: 133.4 kB / 427.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.885e-05/0.1714, allocations: 165.2 kB / 428.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.1714, allocations: 29.7 kB / 428.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.195e-05/0.1714, allocations: 105 kB / 428.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.1715, allocations: 27.88 kB / 428.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/0.1715, allocations: 53.69 kB / 428.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.001e-05/0.1715, allocations: 342.8 kB / 428.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.18e-05/0.1716, allocations: 68.92 kB / 428.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.1718, allocations: 384 kB / 429.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.1721, allocations: 0.5783 MB / 429.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.1721, allocations: 4 kB / 429.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004907/0.1726, allocations: 496.6 kB / 430.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.1727, allocations: 63.39 kB / 430.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.1727, allocations: 12 kB / 430.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1727, allocations: 16 kB / 430.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.1729, allocations: 87.84 kB / 430.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.1729, allocations: 20.45 kB / 430.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.1731, allocations: 35.69 kB / 430.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.1731, allocations: 36 kB / 430.4 MB, free: 11.58 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.0001455/0.1733, allocations: 269 kB / 430.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002591/0.1735, allocations: 311.2 kB / 431 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.441e-05/0.1736, allocations: 18.62 kB / 431 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1736, allocations: 0 / 431 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1736, allocations: 0 / 431 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.1736, allocations: 4 kB / 431 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001388/0.1737, allocations: 229.3 kB / 431.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.1738, allocations: 0 / 431.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.218e-05/0.1738, allocations: 15.94 kB / 431.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1738, allocations: 0 / 431.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.1738, allocations: 7.984 kB / 431.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1739, allocations: 0 / 431.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1739, allocations: 7.938 kB / 431.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003624/0.1742, allocations: 0.506 MB / 431.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.747e-05/0.1743, allocations: 108.7 kB / 431.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.1743, allocations: 0 / 431.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.499e-05/0.1744, allocations: 4 kB / 431.9 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.585e-05/0.1744, allocations: 11.98 kB / 431.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.1744, allocations: 4 kB / 431.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.487e-05/0.1745, allocations: 107.3 kB / 432 MB, free: 9.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.22e-07/0.1745, allocations: 0 / 432 MB, free: 9.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003873/0.1749, allocations: 47.92 kB / 432 MB, free: 9.836 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.0004806/0.1754, allocations: 309.3 kB / 432.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003656/0.1757, allocations: 415.7 kB / 432.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1757, allocations: 4 kB / 432.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.964e-05/0.1758, allocations: 119.5 kB / 432.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004792/0.1763, allocations: 293.2 kB / 433.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005659/0.1769, allocations: 0.5694 MB / 433.7 MB, free: 8.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.177, allocations: 0.7836 MB / 434.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.221e-05/0.177, allocations: 15.44 kB / 434.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.177, allocations: 3.938 kB / 434.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of Templates: time 0.00351/0.1806, allocations: 2.731 MB / 437.3 MB, free: 4.57 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)