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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009877/0.0009877, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 222.9 MB / 240.3 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009108/0.0009108, allocations: 109.4 kB / 290.6 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05151/0.05151, allocations: 12.03 MB / 352.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009683/0.0009683, allocations: 56.47 kB / 415.8 MB, free: 53.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07744/0.07842, allocations: 52.33 MB / 468.2 MB, free: 1.574 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003141/0.0816, allocations: 2.317 MB / 470.5 MB, free: 15.24 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002348/0.08186, allocations: 131.5 kB / 470.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.791e-05/0.08193, allocations: 0 / 470.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.08211, allocations: 35.78 kB / 470.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.996e-05/0.08222, allocations: 7.922 kB / 470.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001956/0.08242, allocations: 35.97 kB / 470.7 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.08254, allocations: 67.83 kB / 470.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.08264, allocations: 32.19 kB / 470.8 MB, free: 14.93 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.647e-05/0.0827, allocations: 23.86 kB / 470.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.08281, allocations: 43.83 kB / 470.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.08284, allocations: 15.92 kB / 470.9 MB, free: 14.85 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.08291, allocations: 28 kB / 470.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.661e-05/0.08299, allocations: 43.78 kB / 470.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.889e-05/0.08306, allocations: 63.48 kB / 471 MB, free: 14.71 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.0833, allocations: 167.4 kB / 471.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.08331, allocations: 0 / 471.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.08332, allocations: 0 / 471.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.08333, allocations: 0 / 471.2 MB, free: 14.55 MB / 314.7 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.0006482/0.08398, allocations: 0.5142 MB / 471.7 MB, free: 13.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.08402, allocations: 8.031 kB / 471.7 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.08408, allocations: 20.66 kB / 471.7 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/0.08433, allocations: 214.5 kB / 471.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.08436, allocations: 8.375 kB / 471.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.08438, allocations: 16.3 kB / 471.9 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006008/0.08499, allocations: 0.5564 MB / 472.5 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.08501, allocations: 4.172 kB / 472.5 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.08503, allocations: 3.938 kB / 472.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.08504, allocations: 0 / 472.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.08522, allocations: 140.4 kB / 472.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003846/0.08561, allocations: 345.7 kB / 473 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003622/0.08598, allocations: 335 kB / 473.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.08617, allocations: 170.6 kB / 473.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.08621, allocations: 3.984 kB / 473.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.08624, allocations: 42.5 kB / 473.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 1.303e-06/0.08625, allocations: 0 / 473.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.0007167/0.08697, allocations: 0.5549 MB / 474.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.352e-05/0.08706, allocations: 141.3 kB / 474.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.0872, allocations: 158 kB / 474.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.08722, allocations: 25.7 kB / 474.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.047e-05/0.08729, allocations: 101 kB / 474.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.08733, allocations: 39.91 kB / 474.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.373e-05/0.08742, allocations: 82.12 kB / 474.6 MB, free: 10.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.08753, allocations: 338.8 kB / 474.9 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.08764, allocations: 72.83 kB / 475 MB, free: 10.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002663/0.08792, allocations: 372.1 kB / 475.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004467/0.08837, allocations: 0.5861 MB / 476 MB, free: 9.125 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.08838, allocations: 4 kB / 476 MB, free: 9.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005717/0.08896, allocations: 485 kB / 476.4 MB, free: 8.629 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.639e-05/0.08902, allocations: 67.41 kB / 476.5 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.08904, allocations: 19.97 kB / 476.5 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.08906, allocations: 12 kB / 476.5 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.08928, allocations: 87.84 kB / 476.6 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.0893, allocations: 23.86 kB / 476.6 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.08946, allocations: 39.69 kB / 476.7 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.08949, allocations: 28 kB / 476.7 MB, free: 8.344 MB / 314.7 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.0002159/0.08971, allocations: 265.2 kB / 477 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003099/0.09003, allocations: 315.1 kB / 477.3 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.01e-05/0.09009, allocations: 22.56 kB / 477.3 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.0901, allocations: 0 / 477.3 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.09011, allocations: 4 kB / 477.3 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.09011, allocations: 0 / 477.3 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.09029, allocations: 229.2 kB / 477.5 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.0903, allocations: 0 / 477.5 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.334e-05/0.09037, allocations: 16 kB / 477.5 MB, free: 7.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.09038, allocations: 0 / 477.5 MB, free: 7.441 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.0904, allocations: 8 kB / 477.5 MB, free: 7.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.09041, allocations: 3.984 kB / 477.6 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.09041, allocations: 0 / 477.6 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00077/0.09119, allocations: 1.231 MB / 478.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.662e-05/0.09125, allocations: 100.8 kB / 478.9 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.09128, allocations: 8 kB / 478.9 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.794e-05/0.09135, allocations: 0 / 478.9 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.788e-05/0.09138, allocations: 7.938 kB / 478.9 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.0914, allocations: 8.188 kB / 478.9 MB, free: 5.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.717e-05/0.09147, allocations: 117.8 kB / 479 MB, free: 5.867 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09148, allocations: 3.938 kB / 479 MB, free: 5.863 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000453/0.09194, allocations: 40 kB / 479.1 MB, free: 5.824 MB / 314.7 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.0006197/0.09256, allocations: 314.9 kB / 479.4 MB, free: 5.594 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004479/0.09302, allocations: 420.1 kB / 479.8 MB, free: 5.164 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.09304, allocations: 0 / 479.8 MB, free: 5.164 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.685e-05/0.09312, allocations: 118.8 kB / 479.9 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.09363, allocations: 291.5 kB / 480.2 MB, free: 4.734 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008818/0.09452, allocations: 0.8235 MB / 481 MB, free: 3.863 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.09485, allocations: 0.7951 MB / 481.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.886e-05/0.09495, allocations: 29.53 kB / 481.8 MB, free: 3.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.689e-05/0.09498, allocations: 19.44 kB / 481.8 MB, free: 2.996 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09499, allocations: 0 / 481.8 MB, free: 2.996 MB / 314.7 MB Notification: Performance of Templates: time 0.005026/0.1, allocations: 2.407 MB / 484.3 MB, free: 0.5859 MB / 314.7 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)