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.0007325/0.0007325, allocations: 102.7 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007593/0.0007593, allocations: 183.1 kB / 16.97 MB, free: 6.875 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.196/1.196, allocations: 223.2 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1565/0.1565, allocations: 12.03 MB / 304.1 MB, free: 1.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002704, allocations: 8.188 kB / 368.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09032, allocations: 53.35 MB / 421.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.002514/0.09287, allocations: 1.971 MB / 423.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002511/0.09314, allocations: 127.6 kB / 423.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.93e-05/0.09321, allocations: 8 kB / 423.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.09336, allocations: 23.86 kB / 423.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.448e-05/0.09346, allocations: 11.92 kB / 423.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.09365, allocations: 35.97 kB / 423.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.09376, allocations: 67.77 kB / 424 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.0939, allocations: 28.2 kB / 424 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.134e-05/0.09395, allocations: 15.92 kB / 424 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.09405, allocations: 43.78 kB / 424.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.09408, allocations: 0 / 424.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.699e-05/0.09415, allocations: 35.91 kB / 424.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.938e-05/0.09422, allocations: 47.84 kB / 424.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.429e-05/0.09431, allocations: 85.19 kB / 424.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.0945, allocations: 155.4 kB / 424.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.09452, allocations: 4 kB / 424.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09452, allocations: 0 / 424.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.09453, allocations: 0 / 424.4 MB, free: 0.9141 MB / 350.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.0005447/0.09508, allocations: 0.4986 MB / 424.9 MB, free: 360 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.09512, allocations: 12.02 kB / 424.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.624e-05/0.09517, allocations: 50.73 kB / 424.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.09522, allocations: 24.66 kB / 425 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.09543, allocations: 219.8 kB / 425.2 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1472/0.2426, allocations: 6.109 kB / 425.2 MB, free: 39.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.82e-05/0.2427, allocations: 7.688 kB / 425.2 MB, free: 39.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000721/0.2434, allocations: 0.5542 MB / 425.7 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.2435, allocations: 1.219 kB / 425.7 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.2435, allocations: 6 kB / 425.8 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.2435, allocations: 1.531 kB / 425.8 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.2437, allocations: 135.3 kB / 425.9 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003673/0.244, allocations: 336.2 kB / 426.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.2444, allocations: 339.1 kB / 426.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.2445, allocations: 173.7 kB / 426.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.2446, allocations: 4.594 kB / 426.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.348e-05/0.2446, allocations: 32.84 kB / 426.8 MB, free: 38.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.552e-06/0.2446, allocations: 0 / 426.8 MB, free: 38.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0005505/0.2451, allocations: 0.5627 MB / 427.3 MB, free: 38.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.2452, allocations: 139.5 kB / 427.5 MB, free: 38.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.436e-05/0.2453, allocations: 163.9 kB / 427.6 MB, free: 38.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.2453, allocations: 25.7 kB / 427.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.839e-05/0.2454, allocations: 109.3 kB / 427.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.46e-05/0.2454, allocations: 28.05 kB / 427.8 MB, free: 38.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-05/0.2454, allocations: 54.48 kB / 427.8 MB, free: 38.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.715e-05/0.2455, allocations: 333.5 kB / 428.2 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.072e-05/0.2456, allocations: 72.17 kB / 428.2 MB, free: 37.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.2457, allocations: 380.6 kB / 428.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.246, allocations: 0.5806 MB / 429.2 MB, free: 37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.2461, allocations: 3.062 kB / 429.2 MB, free: 37 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004753/0.2465, allocations: 494.3 kB / 429.7 MB, free: 36.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.2466, allocations: 65.8 kB / 429.7 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.2466, allocations: 16.31 kB / 429.7 MB, free: 36.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.2466, allocations: 19.16 kB / 429.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.2468, allocations: 90.98 kB / 429.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.2469, allocations: 19.78 kB / 429.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.247, allocations: 35.02 kB / 429.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.247, allocations: 31.55 kB / 429.9 MB, free: 36.73 MB / 350.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.000168/0.2472, allocations: 256.2 kB / 430.2 MB, free: 36.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/0.2475, allocations: 313.9 kB / 430.5 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.2475, allocations: 19.66 kB / 430.5 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2476, allocations: 7.641 kB / 430.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.2476, allocations: 0 / 430.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2476, allocations: 2.656 kB / 430.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.2477, allocations: 224.3 kB / 430.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.2477, allocations: 3.141 kB / 430.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.724e-05/0.2478, allocations: 11.81 kB / 430.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.2478, allocations: 0 / 430.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.2478, allocations: 6.281 kB / 430.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.2478, allocations: 4.812 kB / 430.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2478, allocations: 6.938 kB / 430.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003532/0.2482, allocations: 0.5082 MB / 431.3 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.2482, allocations: 107.7 kB / 431.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.2482, allocations: 6.078 kB / 431.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.812e-05/0.2483, allocations: 7.438 kB / 431.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.65e-05/0.2484, allocations: 3 kB / 431.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.2484, allocations: 7.094 kB / 431.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.467e-05/0.2484, allocations: 108.5 kB / 431.5 MB, free: 35.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2484, allocations: 0 / 431.5 MB, free: 35.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.2488, allocations: 43 kB / 431.6 MB, free: 35.82 MB / 350.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.0009402/0.2497, allocations: 1.259 MB / 432.8 MB, free: 35.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003812/0.2501, allocations: 423.4 kB / 433.2 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2501, allocations: 0 / 433.2 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.942e-05/0.2502, allocations: 126.4 kB / 433.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.2507, allocations: 291.8 kB / 433.6 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/0.2527, allocations: 3.026 MB / 436.7 MB, free: 32.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/0.2529, allocations: 0.7684 MB / 437.4 MB, free: 31.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.963e-05/0.253, allocations: 35.89 kB / 437.5 MB, free: 31.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.834e-05/0.253, allocations: 62.14 kB / 437.5 MB, free: 31.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.253, allocations: 0 / 437.5 MB, free: 31.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01252/0.2656, allocations: 4.368 MB / 441.9 MB, free: 31.31 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/0.2657, allocations: 277.1 kB / 442.2 MB, free: 30.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/1.886, allocations: 0 / 442.2 MB, free: 30.95 MB / 350.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)