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: "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 102.9 kB / 16.31 MB, free: 5.879 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.001139/0.001138, allocations: 189.7 kB / 17.24 MB, free: 5.539 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.314/1.314, allocations: 222.9 MB / 240.9 MB, free: 15.16 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.0573/0.0573, allocations: 12.04 MB / 303.1 MB, free: 3.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 67.89 kB / 366.6 MB, free: 3.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.1946, allocations: 52.32 MB / 418.9 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.002927/0.1975, allocations: 2.286 MB / 421.2 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002028/0.1977, allocations: 123.5 kB / 421.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.705e-05/0.1978, allocations: 0 / 421.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.198, allocations: 31.78 kB / 421.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.894e-05/0.1981, allocations: 11.94 kB / 421.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001714/0.1982, allocations: 43.88 kB / 421.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.1984, allocations: 75.77 kB / 421.5 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.1985, allocations: 28.2 kB / 421.5 MB, free: 18.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.323e-05/0.1985, allocations: 27.86 kB / 421.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1986, allocations: 43.78 kB / 421.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.1987, allocations: 4 kB / 421.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.398e-05/0.1987, allocations: 43.97 kB / 421.6 MB, free: 18.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.256e-05/0.1988, allocations: 43.84 kB / 421.6 MB, free: 18.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.423e-05/0.1989, allocations: 59.48 kB / 421.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.1991, allocations: 179.4 kB / 421.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1991, allocations: 0 / 421.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1991, allocations: 0 / 421.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1991, allocations: 0 / 421.9 MB, free: 18.09 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.0005037/0.1996, allocations: 0.5161 MB / 422.4 MB, free: 17.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.1996, allocations: 8.031 kB / 422.4 MB, free: 17.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.239e-05/0.1997, allocations: 50.73 kB / 422.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.1997, allocations: 20.66 kB / 422.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.1999, allocations: 212 kB / 422.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.1999, allocations: 12.38 kB / 422.7 MB, free: 17.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.1999, allocations: 8.375 kB / 422.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005177/0.2005, allocations: 0.5618 MB / 423.3 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2005, allocations: 11.81 kB / 423.3 MB, free: 16.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.2005, allocations: 4 kB / 423.3 MB, free: 16.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.2005, allocations: 4 kB / 423.3 MB, free: 16.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.2007, allocations: 132.4 kB / 423.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003292/0.201, allocations: 349.7 kB / 423.8 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003056/0.2013, allocations: 335 kB / 424.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.2014, allocations: 170.6 kB / 424.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.2015, allocations: 7.984 kB / 424.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.2015, allocations: 34.5 kB / 424.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.443e-06/0.2015, allocations: 0 / 424.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.0005558/0.2021, allocations: 0.5549 MB / 424.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.2021, allocations: 141.4 kB / 425 MB, free: 14.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.761e-05/0.2022, allocations: 159.7 kB / 425.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.2023, allocations: 25.7 kB / 425.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.547e-05/0.2023, allocations: 105 kB / 425.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.2023, allocations: 35.88 kB / 425.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.629e-05/0.2024, allocations: 82.12 kB / 425.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.186e-05/0.2025, allocations: 342.8 kB / 425.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.008e-05/0.2026, allocations: 68.83 kB / 425.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.2028, allocations: 380.1 kB / 426.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.2031, allocations: 0.5822 MB / 426.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2031, allocations: 4 kB / 426.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004576/0.2036, allocations: 488.5 kB / 427.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.2036, allocations: 63.41 kB / 427.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.2036, allocations: 12 kB / 427.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.2036, allocations: 12 kB / 427.3 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.2038, allocations: 100.5 kB / 427.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.2038, allocations: 15.94 kB / 427.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.204, allocations: 39.69 kB / 427.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.204, allocations: 31.98 kB / 427.5 MB, free: 11.82 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.0001453/0.2042, allocations: 269 kB / 427.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/0.2044, allocations: 307.2 kB / 428 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.2044, allocations: 22.61 kB / 428.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.2045, allocations: 0 / 428.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2045, allocations: 0 / 428.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2045, allocations: 0 / 428.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.2046, allocations: 233.2 kB / 428.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.2046, allocations: 0 / 428.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.801e-05/0.2047, allocations: 12.19 kB / 428.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2047, allocations: 0 / 428.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.2047, allocations: 7.938 kB / 428.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2047, allocations: 4 kB / 428.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2047, allocations: 4 kB / 428.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003616/0.2051, allocations: 0.5137 MB / 428.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.9e-05/0.2051, allocations: 100.8 kB / 428.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.2051, allocations: 4 kB / 428.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.967e-05/0.2052, allocations: 4 kB / 428.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.674e-05/0.2053, allocations: 4 kB / 428.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.2053, allocations: 8 kB / 429 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.275e-05/0.2053, allocations: 113.7 kB / 429.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2053, allocations: 0 / 429.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003722/0.2057, allocations: 40 kB / 429.1 MB, free: 10.07 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.0009526/0.2067, allocations: 1.275 MB / 430.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003738/0.2071, allocations: 451.5 kB / 430.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2071, allocations: 0 / 430.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.77e-05/0.2071, allocations: 122.8 kB / 430.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.2076, allocations: 280.8 kB / 431.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.2094, allocations: 2.945 MB / 434.2 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.2096, allocations: 0.7756 MB / 434.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.503e-05/0.2097, allocations: 29.52 kB / 435 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.45e-05/0.2097, allocations: 59.42 kB / 435 MB, free: 3.727 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2097, allocations: 0 / 435 MB, free: 3.727 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.2281, allocations: 4.661 MB / 439.7 MB, free: 15.19 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.041/7.27, allocations: 23.58 kB / 439.7 MB, free: 15.17 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)