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.0008267/0.000827, allocations: 102.1 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.0008673/0.0008674, allocations: 181.5 kB / 16.97 MB, free: 6.879 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.246/1.246, allocations: 223.3 MB / 241 MB, free: 5.348 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.1665/0.1665, allocations: 12.03 MB / 304.2 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002878, allocations: 12 kB / 368.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.09115, allocations: 53.35 MB / 421.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.002611/0.0938, allocations: 1.979 MB / 423.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002401/0.09406, allocations: 123.6 kB / 423.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.119e-05/0.09412, allocations: 0 / 423.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001486/0.09428, allocations: 31.84 kB / 423.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.863e-05/0.09437, allocations: 3.938 kB / 423.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000179/0.09456, allocations: 39.94 kB / 423.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.09467, allocations: 71.77 kB / 424 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.175e-05/0.09477, allocations: 16.22 kB / 424 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.129e-05/0.09482, allocations: 27.92 kB / 424 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.09493, allocations: 39.72 kB / 424.1 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.09496, allocations: 4 kB / 424.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.018e-05/0.09503, allocations: 35.97 kB / 424.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.048e-05/0.0951, allocations: 35.86 kB / 424.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.338e-05/0.09519, allocations: 89.19 kB / 424.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.09538, allocations: 163.4 kB / 424.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.09539, allocations: 0 / 424.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0954, allocations: 0 / 424.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.09541, allocations: 0 / 424.4 MB, free: 0.918 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.0005879/0.096, allocations: 0.4947 MB / 424.9 MB, free: 368 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.09605, allocations: 12.03 kB / 424.9 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.916e-05/0.09612, allocations: 50.73 kB / 424.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.021e-05/0.09616, allocations: 16.66 kB / 425 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.09639, allocations: 227.8 kB / 425.2 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.0964, allocations: 4.375 kB / 425.2 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1545/0.2509, allocations: 12.33 kB / 425.2 MB, free: 39.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.2517, allocations: 0.5524 MB / 425.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.2517, allocations: 0.625 kB / 425.8 MB, free: 39.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.2517, allocations: 5.188 kB / 425.8 MB, free: 39.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.2517, allocations: 4.203 kB / 425.8 MB, free: 39.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.2519, allocations: 140 kB / 425.9 MB, free: 39.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003629/0.2523, allocations: 333.2 kB / 426.2 MB, free: 39.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003222/0.2526, allocations: 338.2 kB / 426.6 MB, free: 38.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.2528, allocations: 174.6 kB / 426.7 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.2528, allocations: 4.125 kB / 426.7 MB, free: 38.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/0.2528, allocations: 34.84 kB / 426.8 MB, free: 38.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.695e-06/0.2528, allocations: 1.375 kB / 426.8 MB, free: 38.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0005949/0.2534, allocations: 0.5603 MB / 427.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.2535, allocations: 141.4 kB / 427.5 MB, free: 38.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.778e-05/0.2536, allocations: 162.3 kB / 427.6 MB, free: 38.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.2536, allocations: 25.7 kB / 427.6 MB, free: 38.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.2537, allocations: 110.4 kB / 427.8 MB, free: 38.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.2537, allocations: 27.95 kB / 427.8 MB, free: 38.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.2538, allocations: 56.84 kB / 427.8 MB, free: 38.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.575e-05/0.2538, allocations: 337.4 kB / 428.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.554e-05/0.2539, allocations: 71.67 kB / 428.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.2541, allocations: 374.8 kB / 428.6 MB, free: 37.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.2544, allocations: 0.5869 MB / 429.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2544, allocations: 2.625 kB / 429.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004657/0.2549, allocations: 495.1 kB / 429.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/0.2549, allocations: 66.95 kB / 429.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.255, allocations: 10.56 kB / 429.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.255, allocations: 14.75 kB / 429.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.2552, allocations: 89.52 kB / 429.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.2552, allocations: 23.97 kB / 429.9 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.2554, allocations: 39.81 kB / 429.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.2554, allocations: 30.09 kB / 429.9 MB, free: 36.79 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.0001898/0.2556, allocations: 257.9 kB / 430.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/0.2559, allocations: 309.5 kB / 430.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.624e-05/0.2559, allocations: 19.83 kB / 430.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.2559, allocations: 2.969 kB / 430.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.2559, allocations: 8.5 kB / 430.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2559, allocations: 0 / 430.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000152/0.2561, allocations: 223.7 kB / 430.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.2561, allocations: 0.8125 kB / 430.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.902e-05/0.2562, allocations: 14.89 kB / 430.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.2562, allocations: 2.562 kB / 430.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.2562, allocations: 7.594 kB / 430.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2562, allocations: 0 / 430.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2562, allocations: 4.875 kB / 430.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003631/0.2566, allocations: 0.5134 MB / 431.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.935e-05/0.2566, allocations: 102.3 kB / 431.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.2567, allocations: 2.844 kB / 431.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.008e-05/0.2567, allocations: 6.469 kB / 431.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.168e-05/0.2568, allocations: 10.06 kB / 431.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.2568, allocations: 3 kB / 431.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.742e-05/0.2568, allocations: 112.9 kB / 431.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2568, allocations: 0 / 431.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003709/0.2572, allocations: 42.31 kB / 431.6 MB, free: 35.88 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.0009466/0.2582, allocations: 1.256 MB / 432.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000348/0.2585, allocations: 424.1 kB / 433.2 MB, free: 34.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2585, allocations: 384 / 433.2 MB, free: 34.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.9e-05/0.2586, allocations: 126.8 kB / 433.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004811/0.2591, allocations: 283.6 kB / 433.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.2611, allocations: 3.029 MB / 436.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.2613, allocations: 0.7737 MB / 437.4 MB, free: 31.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.365e-05/0.2614, allocations: 28 kB / 437.5 MB, free: 31.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.968e-05/0.2614, allocations: 60.19 kB / 437.5 MB, free: 31.79 MB / 350.1 MB Notification: Performance of SimCode: time 4.9e-07/0.2614, allocations: 0 / 437.5 MB, free: 31.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01281/0.2742, allocations: 4.371 MB / 441.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/0.2744, allocations: 281.6 kB / 442.2 MB, free: 31.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/1.958, allocations: 0 / 442.2 MB, free: 31.02 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)