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.001037/0.001037, allocations: 107.8 kB / 16.45 MB, free: 6.445 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.001114/0.001114, allocations: 186.4 kB / 17.39 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.281/1.281, allocations: 222.9 MB / 241.1 MB, free: 15.08 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.05547/0.05547, allocations: 12.04 MB / 303.3 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 63.91 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08224/0.08336, allocations: 52.31 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputJoystick): time 0.003684/0.08709, allocations: 2.278 MB / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002797/0.0874, allocations: 131.5 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.865e-05/0.08749, allocations: 4 kB / 474.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.08768, allocations: 31.78 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.08779, allocations: 7.938 kB / 474.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.088, allocations: 54.94 kB / 474.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.08814, allocations: 67.83 kB / 474.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.08825, allocations: 28.2 kB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.671e-05/0.08831, allocations: 23.86 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.08842, allocations: 47.83 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.08845, allocations: 11.98 kB / 474.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.95e-05/0.08854, allocations: 35.94 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.547e-05/0.08861, allocations: 43.84 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.013e-05/0.08869, allocations: 71.41 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.08893, allocations: 179.3 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.08894, allocations: 0 / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08895, allocations: 0 / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.08897, allocations: 7.938 kB / 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.0006098/0.08958, allocations: 0.5136 MB / 475.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.08962, allocations: 12.03 kB / 475.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.67e-05/0.08967, allocations: 58.72 kB / 475.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.254e-05/0.08972, allocations: 16.66 kB / 475.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.08997, allocations: 216 kB / 475.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.09, allocations: 8.375 kB / 475.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.09002, allocations: 4.375 kB / 475.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006119/0.09064, allocations: 0.5654 MB / 476.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.09066, allocations: 3.938 kB / 476.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.09067, allocations: 0 / 476.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.09068, allocations: 0 / 476.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000171/0.09086, allocations: 136.4 kB / 476.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003451/0.09121, allocations: 341.7 kB / 476.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.0916, allocations: 350.1 kB / 477.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.09177, allocations: 174.6 kB / 477.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.0918, allocations: 4 kB / 477.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.09183, allocations: 46.5 kB / 477.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.323e-06/0.09184, allocations: 0 / 477.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.0006212/0.09247, allocations: 0.5509 MB / 477.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.09255, allocations: 141.4 kB / 478 MB, free: 6.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.0927, allocations: 154 kB / 478.1 MB, free: 6.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.09272, allocations: 29.7 kB / 478.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.121e-05/0.09278, allocations: 101.1 kB / 478.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.09281, allocations: 31.81 kB / 478.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.825e-05/0.09291, allocations: 90.12 kB / 478.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.578e-05/0.09301, allocations: 334.8 kB / 478.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.09313, allocations: 80.81 kB / 478.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002831/0.09342, allocations: 376 kB / 479.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/0.09388, allocations: 0.5822 MB / 479.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.09389, allocations: 4 kB / 479.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005778/0.09447, allocations: 488.9 kB / 480.2 MB, free: 4.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.077e-05/0.09452, allocations: 63.41 kB / 480.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.09454, allocations: 12 kB / 480.3 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.09457, allocations: 12 kB / 480.3 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.09478, allocations: 95.78 kB / 480.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.0948, allocations: 19.92 kB / 480.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.09496, allocations: 39.69 kB / 480.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.095, allocations: 28 kB / 480.5 MB, free: 4.039 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.09519, allocations: 257.3 kB / 480.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003112/0.09551, allocations: 315.1 kB / 481.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.537e-05/0.09557, allocations: 14.62 kB / 481.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.09558, allocations: 11.98 kB / 481.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.09559, allocations: 144 / 481.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.0956, allocations: 3.984 kB / 481.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001832/0.09578, allocations: 229.2 kB / 481.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.0958, allocations: 3.984 kB / 481.3 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.394e-05/0.09587, allocations: 12 kB / 481.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.09587, allocations: 0 / 481.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.09589, allocations: 8 kB / 481.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.0959, allocations: 0 / 481.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.09591, allocations: 0 / 481.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004619/0.09637, allocations: 0.5137 MB / 481.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.09643, allocations: 96.8 kB / 481.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.09646, allocations: 7.984 kB / 481.9 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.297e-05/0.09653, allocations: 8 kB / 482 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.474e-05/0.09656, allocations: 0 / 482 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.09658, allocations: 4 kB / 482 MB, free: 2.449 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.795e-05/0.09665, allocations: 117.9 kB / 482.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09666, allocations: 8 kB / 482.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000389/0.09706, allocations: 47.91 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.001121/0.09818, allocations: 1.242 MB / 483.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004467/0.09864, allocations: 423.9 kB / 483.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.09866, allocations: 4.438 kB / 483.8 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.138e-05/0.09874, allocations: 122.8 kB / 483.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005101/0.09925, allocations: 285.5 kB / 484.2 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.1019, allocations: 2.977 MB / 487.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.1023, allocations: 0.7794 MB / 487.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.979e-05/0.1023, allocations: 29.72 kB / 488 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.22e-05/0.1024, allocations: 59.36 kB / 488 MB, free: 11.95 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1024, allocations: 0 / 488 MB, free: 11.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.1217, allocations: 4.756 MB / 492.8 MB, free: 7.344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.353/7.474, allocations: 15.56 kB / 492.8 MB, free: 7.328 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 & /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)