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.001132/0.001132, allocations: 102.7 kB / 16.03 MB, free: 6.316 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.001147/0.001147, allocations: 195.4 kB / 16.95 MB, free: 6.141 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.163/1.163, allocations: 222.9 MB / 240.6 MB, free: 13.73 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.05128/0.05128, allocations: 12.05 MB / 302.8 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 59.84 kB / 366.1 MB, free: 3.777 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1688, allocations: 52.32 MB / 418.4 MB, free: 21.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.002687/0.1715, allocations: 2.323 MB / 420.7 MB, free: 18.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000189/0.1717, allocations: 123.5 kB / 420.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.357e-05/0.1718, allocations: 4 kB / 420.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.172, allocations: 23.86 kB / 420.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.649e-05/0.1721, allocations: 11.98 kB / 420.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001611/0.1722, allocations: 43.84 kB / 420.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.879e-05/0.1723, allocations: 71.62 kB / 421 MB, free: 18.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.503e-05/0.1724, allocations: 32.2 kB / 421 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.63e-05/0.1725, allocations: 23.86 kB / 421 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.564e-05/0.1726, allocations: 51.77 kB / 421.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.1726, allocations: 8 kB / 421.1 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.757e-05/0.1727, allocations: 31.98 kB / 421.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.056e-05/0.1727, allocations: 47.78 kB / 421.2 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.599e-05/0.1728, allocations: 71.42 kB / 421.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.1729, allocations: 163.4 kB / 421.4 MB, free: 18.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1729, allocations: 4 kB / 421.4 MB, free: 18.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1729, allocations: 0 / 421.4 MB, free: 18.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.173, allocations: 4 kB / 421.4 MB, free: 18.21 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.0004695/0.1734, allocations: 0.5161 MB / 421.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.1735, allocations: 12.03 kB / 421.9 MB, free: 17.62 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.199e-05/0.1735, allocations: 58.72 kB / 422 MB, free: 17.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.1735, allocations: 20.66 kB / 422 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.1737, allocations: 204.1 kB / 422.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.1737, allocations: 16.3 kB / 422.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.1737, allocations: 8.375 kB / 422.2 MB, free: 17.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004858/0.1742, allocations: 0.5579 MB / 422.8 MB, free: 16.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.1743, allocations: 3.938 kB / 422.8 MB, free: 16.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1743, allocations: 4 kB / 422.8 MB, free: 16.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1743, allocations: 7.938 kB / 422.8 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.1744, allocations: 136.4 kB / 422.9 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002566/0.1747, allocations: 333.8 kB / 423.3 MB, free: 16.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.175, allocations: 346.9 kB / 423.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.1751, allocations: 170.6 kB / 423.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.1751, allocations: 0 / 423.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.1751, allocations: 38.56 kB / 423.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.603e-06/0.1751, allocations: 3.984 kB / 423.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.0004984/0.1756, allocations: 0.551 MB / 424.4 MB, free: 15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.1757, allocations: 145.3 kB / 424.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.254e-05/0.1758, allocations: 158 kB / 424.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.1758, allocations: 29.7 kB / 424.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.532e-05/0.1758, allocations: 101 kB / 424.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.1759, allocations: 31.86 kB / 424.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.546e-05/0.1759, allocations: 90.12 kB / 424.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.118e-05/0.176, allocations: 334.8 kB / 425.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.466e-05/0.1761, allocations: 80.81 kB / 425.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.1762, allocations: 372.1 kB / 425.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.1765, allocations: 0.5822 MB / 426.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1765, allocations: 4 kB / 426.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004347/0.177, allocations: 488.3 kB / 426.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.177, allocations: 72.31 kB / 426.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.177, allocations: 8 kB / 426.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.177, allocations: 20 kB / 426.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1772, allocations: 83.84 kB / 426.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.1772, allocations: 27.86 kB / 427 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.1774, allocations: 39.69 kB / 427 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.1774, allocations: 28 kB / 427 MB, free: 11.93 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.0001371/0.1776, allocations: 260.9 kB / 427.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/0.1778, allocations: 307.2 kB / 427.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.966e-05/0.1778, allocations: 18.62 kB / 427.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1779, allocations: 11.92 kB / 427.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1779, allocations: 0 / 427.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1779, allocations: 3.938 kB / 427.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.178, allocations: 225.3 kB / 427.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.178, allocations: 0 / 427.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.593e-05/0.1781, allocations: 19.98 kB / 427.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1781, allocations: 0 / 427.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1781, allocations: 4.141 kB / 427.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1781, allocations: 4 kB / 427.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1781, allocations: 0 / 427.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.1785, allocations: 0.5137 MB / 428.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/0.1785, allocations: 96.8 kB / 428.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.1785, allocations: 4 kB / 428.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.931e-05/0.1786, allocations: 11.98 kB / 428.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.593e-05/0.1786, allocations: 4 kB / 428.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.1786, allocations: 4 kB / 428.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.361e-05/0.1787, allocations: 113.1 kB / 428.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1787, allocations: 0 / 428.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003539/0.179, allocations: 36 kB / 428.6 MB, free: 10.2 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.0008598/0.1799, allocations: 1.27 MB / 429.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003575/0.1803, allocations: 446.6 kB / 430.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1803, allocations: 4 kB / 430.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.355e-05/0.1803, allocations: 120.6 kB / 430.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.1808, allocations: 286.5 kB / 430.7 MB, free: 8.086 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.1827, allocations: 3.027 MB / 433.8 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.1828, allocations: 0.7794 MB / 434.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.419e-05/0.1829, allocations: 33.47 kB / 434.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.421e-05/0.183, allocations: 59.36 kB / 434.6 MB, free: 3.758 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.183, allocations: 0 / 434.6 MB, free: 3.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01258/0.1956, allocations: 4.621 MB / 439.3 MB, free: 15.31 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002349/0.1958, allocations: 280.6 kB / 439.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/1.887, allocations: 64 / 439.5 MB, free: 14.94 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)