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.001113/0.001113, allocations: 104.2 kB / 16.45 MB, free: 6.441 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.001111/0.001111, allocations: 186.4 kB / 17.38 MB, free: 5.668 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.381/1.381, allocations: 222.9 MB / 241.1 MB, free: 15.13 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.05662/0.05662, allocations: 12.05 MB / 303.3 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 64.84 kB / 419.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09071/0.0919, allocations: 52.32 MB / 471.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003845/0.09578, allocations: 2.278 MB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002928/0.0961, allocations: 135.5 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.797e-05/0.0962, allocations: 0 / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.09642, allocations: 31.78 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.09653, allocations: 11.88 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000228/0.09677, allocations: 47.88 kB / 474.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.09693, allocations: 71.84 kB / 474.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.09706, allocations: 28.19 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.392e-05/0.09712, allocations: 31.84 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.09725, allocations: 43.78 kB / 474.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.09729, allocations: 4 kB / 474.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.027e-05/0.09738, allocations: 35.97 kB / 474.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.517e-05/0.09746, allocations: 47.78 kB / 474.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.441e-05/0.09755, allocations: 71.42 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.09781, allocations: 183.3 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.09782, allocations: 0 / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.09783, allocations: 4 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.09784, allocations: 0 / 474.9 MB, free: 10.33 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.0006442/0.09849, allocations: 0.5174 MB / 475.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.09853, allocations: 8.031 kB / 475.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.438e-05/0.09859, allocations: 58.66 kB / 475.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.267e-05/0.09864, allocations: 28.75 kB / 475.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.09889, allocations: 212.1 kB / 475.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.09891, allocations: 8.375 kB / 475.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.09893, allocations: 8.375 kB / 475.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006312/0.09957, allocations: 0.5537 MB / 476.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.09959, allocations: 3.938 kB / 476.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.09961, allocations: 7.984 kB / 476.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-06/0.09962, allocations: 4 kB / 476.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.09981, allocations: 144.3 kB / 476.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003825/0.1002, allocations: 333.9 kB / 476.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003918/0.1006, allocations: 354.3 kB / 477.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.1008, allocations: 166.6 kB / 477.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.1008, allocations: 3.984 kB / 477.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.1009, allocations: 42.5 kB / 477.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.033e-06/0.1009, allocations: 0 / 477.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0007018/0.1016, allocations: 0.551 MB / 477.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.647e-05/0.1017, allocations: 141.4 kB / 478 MB, free: 6.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.1018, allocations: 164.4 kB / 478.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.1019, allocations: 29.7 kB / 478.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.266e-05/0.102, allocations: 97.09 kB / 478.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.102, allocations: 31.86 kB / 478.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.332e-05/0.1021, allocations: 90.12 kB / 478.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1022, allocations: 334.8 kB / 478.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1023, allocations: 80.75 kB / 478.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002845/0.1026, allocations: 384 kB / 479.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004776/0.1031, allocations: 0.5783 MB / 479.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1031, allocations: 4 kB / 479.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005869/0.1037, allocations: 488.4 kB / 480.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/0.1038, allocations: 63.41 kB / 480.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.1038, allocations: 12.81 kB / 480.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.1038, allocations: 16.09 kB / 480.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.1041, allocations: 95.78 kB / 480.4 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/0.1041, allocations: 23.92 kB / 480.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.1042, allocations: 39.78 kB / 480.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.1043, allocations: 28 kB / 480.5 MB, free: 4.027 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.0002116/0.1045, allocations: 261.1 kB / 480.8 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.1048, allocations: 311.3 kB / 481.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.1049, allocations: 14.62 kB / 481.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1049, allocations: 4 kB / 481.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1049, allocations: 0 / 481.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1049, allocations: 3.984 kB / 481.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/0.1051, allocations: 237.3 kB / 481.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.1051, allocations: 0 / 481.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.464e-05/0.1052, allocations: 15.98 kB / 481.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1052, allocations: 4 kB / 481.3 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.1052, allocations: 4 kB / 481.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1053, allocations: 4 kB / 481.4 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1053, allocations: 3.938 kB / 481.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000487/0.1057, allocations: 0.5022 MB / 481.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.415e-05/0.1058, allocations: 104.8 kB / 482 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.1058, allocations: 4 kB / 482 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.021e-05/0.1059, allocations: 8 kB / 482 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.106, allocations: 7.984 kB / 482 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.106, allocations: 7.938 kB / 482 MB, free: 2.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.403e-05/0.1061, allocations: 103.3 kB / 482.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1061, allocations: 0 / 482.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.1065, allocations: 43.98 kB / 482.1 MB, free: 2.281 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.001195/0.1077, allocations: 1.263 MB / 483.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004676/0.1082, allocations: 426.8 kB / 483.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1082, allocations: 0 / 483.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.476e-05/0.1083, allocations: 122.8 kB / 483.9 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005307/0.1088, allocations: 287.2 kB / 484.2 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.1116, allocations: 2.985 MB / 487.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.1119, allocations: 0.7756 MB / 488 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.865e-05/0.112, allocations: 33.66 kB / 488 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.086e-05/0.1121, allocations: 55.42 kB / 488.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1121, allocations: 4 kB / 488.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.133, allocations: 4.739 MB / 492.8 MB, free: 7.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.515/7.648, allocations: 26.09 kB / 492.8 MB, free: 7.312 MB / 366.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 & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputJoystick.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick.pipe 2>&1)