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.001394/0.001394, allocations: 106.5 kB / 16.45 MB, free: 6.496 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.002192/0.002192, allocations: 189.5 kB / 17.39 MB, free: 5.688 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.415/1.415, allocations: 222.9 MB / 241.1 MB, free: 15.07 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.06218/0.06218, allocations: 12.04 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 71.88 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09904, allocations: 52.32 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.004265/0.1034, allocations: 2.281 MB / 474.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003456/0.1037, allocations: 135.5 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.277e-05/0.1038, allocations: 4 kB / 474.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.104, allocations: 27.8 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.1041, allocations: 11.91 kB / 474.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.1043, allocations: 54.52 kB / 474.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.1045, allocations: 75.83 kB / 474.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.1046, allocations: 16.22 kB / 474.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.686e-05/0.1047, allocations: 39.83 kB / 474.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.1048, allocations: 39.78 kB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.92e-05/0.1048, allocations: 8 kB / 474.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.172e-05/0.1049, allocations: 35.98 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.542e-05/0.105, allocations: 43.84 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.21e-05/0.1051, allocations: 75.41 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002662/0.1054, allocations: 183.3 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1054, allocations: 0 / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1054, allocations: 0 / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1054, allocations: 0 / 474.9 MB, free: 10.32 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.0007251/0.1061, allocations: 0.5213 MB / 475.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1062, allocations: 8.031 kB / 475.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.65e-05/0.1062, allocations: 50.73 kB / 475.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.787e-05/0.1063, allocations: 24.75 kB / 475.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002936/0.1066, allocations: 220 kB / 475.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.1066, allocations: 8.375 kB / 475.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.1066, allocations: 8.375 kB / 475.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.1074, allocations: 0.5615 MB / 476.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.1074, allocations: 3.938 kB / 476.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.1074, allocations: 0 / 476.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.1074, allocations: 4 kB / 476.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.1076, allocations: 132.4 kB / 476.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005358/0.1082, allocations: 345.8 kB / 476.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/0.1086, allocations: 343 kB / 477.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.1089, allocations: 170.6 kB / 477.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.1089, allocations: 4 kB / 477.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.1089, allocations: 42.5 kB / 477.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.643e-06/0.109, allocations: 3.938 kB / 477.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0007622/0.1097, allocations: 0.5588 MB / 477.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.1098, allocations: 133.4 kB / 478 MB, free: 6.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.11, allocations: 158 kB / 478.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.1101, allocations: 33.7 kB / 478.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.41e-05/0.1102, allocations: 105.1 kB / 478.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.856e-05/0.1102, allocations: 31.86 kB / 478.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.1104, allocations: 86.12 kB / 478.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1106, allocations: 338.8 kB / 478.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.1107, allocations: 68.83 kB / 478.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003618/0.1111, allocations: 380 kB / 479.2 MB, free: 5.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005902/0.1117, allocations: 0.59 MB / 479.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.1117, allocations: 4 kB / 479.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007082/0.1124, allocations: 489.1 kB / 480.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.843e-05/0.1125, allocations: 59.41 kB / 480.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.1125, allocations: 12 kB / 480.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.1125, allocations: 19.98 kB / 480.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.1128, allocations: 91.78 kB / 480.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.931e-05/0.1128, allocations: 19.94 kB / 480.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.113, allocations: 39.77 kB / 480.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.113, allocations: 28 kB / 480.5 MB, free: 4.02 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.0002462/0.1133, allocations: 257.1 kB / 480.8 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003737/0.1136, allocations: 307.3 kB / 481.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.346e-05/0.1137, allocations: 22.61 kB / 481.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.1137, allocations: 0 / 481.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1137, allocations: 8 kB / 481.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-06/0.1137, allocations: 144 / 481.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.114, allocations: 237.2 kB / 481.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.114, allocations: 4 kB / 481.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.762e-05/0.1141, allocations: 8 kB / 481.3 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.1141, allocations: 4 kB / 481.3 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.1141, allocations: 0 / 481.3 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1141, allocations: 0 / 481.3 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.1141, allocations: 7.984 kB / 481.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006046/0.1147, allocations: 0.5139 MB / 481.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.511e-05/0.1148, allocations: 104.8 kB / 482 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.1148, allocations: 4 kB / 482 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.273e-05/0.1149, allocations: 4 kB / 482 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.1149, allocations: 4 kB / 482 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.115, allocations: 4 kB / 482 MB, free: 2.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.375e-05/0.1151, allocations: 114 kB / 482.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1151, allocations: 0 / 482.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003952/0.1155, allocations: 47.94 kB / 482.1 MB, free: 2.27 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.001643/0.1171, allocations: 1.267 MB / 483.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005741/0.1177, allocations: 420.1 kB / 483.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.1177, allocations: 4.25 kB / 483.8 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.748e-05/0.1178, allocations: 122.8 kB / 483.9 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005847/0.1184, allocations: 282.5 kB / 484.2 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00367/0.1221, allocations: 2.985 MB / 487.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.1226, allocations: 0.7756 MB / 488 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.99e-05/0.1227, allocations: 29.53 kB / 488 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.688e-05/0.1228, allocations: 59.41 kB / 488.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1228, allocations: 0 / 488.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.1502, allocations: 4.75 MB / 492.8 MB, free: 7.316 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.921/8.071, allocations: 19.12 kB / 492.8 MB, free: 7.301 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)